Whitespace + general cleanup

By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
CraftBukkit/Spigot
2011-05-14 16:29:42 +02:00
parent 045c14c210
commit 776b9efd3e
21 changed files with 101 additions and 102 deletions

View File

@@ -267,7 +267,7 @@ public final class CraftServer implements Server {
// NOTE: Should only be called from MinecraftServer.b()
public boolean dispatchCommand(CommandSender sender, ServerCommand serverCommand) {
if ( commandMap.dispatch(sender, serverCommand.command) ) {
if (commandMap.dispatch(sender, serverCommand.command)) {
return true;
}
return console.consoleCommandHandler.handle(serverCommand);
@@ -279,7 +279,7 @@ public final class CraftServer implements Server {
return true;
}
if ( ! sender.isOp() ) {
if (!sender.isOp()) {
return false;
}
@@ -457,7 +457,7 @@ public final class CraftServer implements Server {
private final String prefix;
CommandListener(CommandSender commandSender) {
this.commandSender = commandSender;
String[] parts = commandSender.getClass().getName().split( "\\." );
String[] parts = commandSender.getClass().getName().split("\\.");
this.prefix = parts[parts.length-1];
}