Added methods to support RemoteBukkit

This means all commands even "default" server commands work within the command structure
returning output to the command sender

Updated default kick command to be compatible with kick + msg used by remote tools that work with hMod
This commit is contained in:
stevenh
2011-03-12 18:23:57 +00:00
parent ca3d0512f3
commit 07c98ea2a4
3 changed files with 120 additions and 37 deletions

View File

@@ -34,7 +34,7 @@ public class MinecraftServer implements Runnable, ICommandListener {
public PropertyManager d;
// public WorldServer e; // CraftBukkit - removed
public ServerConfigurationManager f;
private ConsoleCommandHandler o;
public ConsoleCommandHandler o; // CraftBukkit - made public
private boolean p = true;
public boolean g = false;
int h = 0;
@@ -377,13 +377,8 @@ public class MinecraftServer implements Runnable, ICommandListener {
while (this.r.size() > 0) {
ServerCommand servercommand = (ServerCommand) this.r.remove(0);
// CraftBukkit start
if (server.dispatchCommand(console, servercommand.a)) {
continue;
}
// CraftBukkit end
this.o.a(servercommand);
server.dispatchCommand(console, servercommand); // CraftBukkit
// this.o.a(servercommand); // CraftBukkit - Removed its now called in server.displatchCommand
}
}