Few more style cleanups

This commit is contained in:
Nathan Adams
2011-10-11 02:16:44 +01:00
parent 1791bdeb2a
commit 5700db0ea7
7 changed files with 34 additions and 28 deletions

View File

@@ -21,11 +21,13 @@ public class SayCommand extends VanillaCommand {
return false;
}
String message = "";
for (int i = 0; i < args.length; i++) {
if (i > 0) message += " ";
message += args[i];
StringBuilder message = new StringBuilder();
if (args.length > 0) {
message.append(args[0]);
for (int i = 1; i < args.length; i++) {
message.append(" ");
message.append(args[i]);
}
}
if (!(sender instanceof ConsoleCommandSender)) {