Update B/CB/S

Closes GH-288
This commit is contained in:
Zach Brown
2016-05-20 17:32:50 -05:00
parent 8bee892ded
commit 143ab568d4
4 changed files with 12 additions and 7 deletions

View File

@@ -71,14 +71,19 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
if (!(sender instanceof EntityPlayer)) {
return ImmutableList.of();
}
@@ -0,0 +0,0 @@ public final class CraftServer implements Server {
List<String> offers;
Player player = ((EntityPlayer) sender).getBukkitEntity();
if (message.startsWith("/")) {
- return tabCompleteCommand(player, message);
+ return tabCompleteCommand(player, message, blockPosition);
- offers = tabCompleteCommand(player, message);
+ offers = tabCompleteCommand(player, message, blockPosition);
} else {
return tabCompleteChat(player, message);
offers = tabCompleteChat(player, message);
}
@@ -0,0 +0,0 @@ public final class CraftServer implements Server {
getPluginManager().callEvent(tabEvent);
return tabEvent.isCancelled() ? Collections.EMPTY_LIST : tabEvent.getCompletions();
+ // Paper end
}