diff options
author | Thinkofdeath <thinkofdeath@spigotmc.org> | 2014-12-11 00:40:25 +0000 |
---|---|---|
committer | Thinkofdeath <thinkofdeath@spigotmc.org> | 2014-12-11 00:40:25 +0000 |
commit | 14d69f15139058170cba855c99af059bc62b3b85 (patch) | |
tree | 0a9fdf97eee517f692bfa96a12c5b1d01e029213 /src/main | |
parent | d5c9a3c990f79121ba9b10f6839ae606dd67da6a (diff) | |
download | craftbukkit-14d69f15139058170cba855c99af059bc62b3b85.tar craftbukkit-14d69f15139058170cba855c99af059bc62b3b85.tar.gz craftbukkit-14d69f15139058170cba855c99af059bc62b3b85.tar.lz craftbukkit-14d69f15139058170cba855c99af059bc62b3b85.tar.xz craftbukkit-14d69f15139058170cba855c99af059bc62b3b85.zip |
Remove old dev comments
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java | 10 | ||||
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/scoreboard/CraftScoreboard.java | 4 |
2 files changed, 2 insertions, 12 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java b/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java index 0319bf3b..a6131d6b 100644 --- a/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java +++ b/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java @@ -45,9 +45,6 @@ public final class VanillaCommandWrapper extends VanillaCommand { MinecraftServer.getServer().worldServer = new WorldServer[]{(WorldServer) icommandlistener.getWorld()}; try { vanillaCommand.execute(icommandlistener, args); - // PAIL fake throws - if (false) throw new ExceptionUsage(null, null); - if (false) throw new CommandException(null, null); } catch (ExceptionUsage exceptionusage) { ChatMessage chatmessage = new ChatMessage("commands.generic.usage", new Object[] {new ChatMessage(exceptionusage.getMessage(), exceptionusage.getArgs())}); chatmessage.getChatModifier().setColor(EnumChatFormat.RED); @@ -100,9 +97,6 @@ public final class VanillaCommandWrapper extends VanillaCommand { as[i] = entity.getUniqueID().toString(); vanillaCommand.execute(icommandlistener, as); j++; - // PAIL fake throws - if (false) throw new ExceptionUsage(null, null); - if (false) throw new CommandException(null, null); } catch (ExceptionUsage exceptionusage) { ChatMessage chatmessage = new ChatMessage("commands.generic.usage", new Object[] { new ChatMessage(exceptionusage.getMessage(), exceptionusage.getArgs())}); chatmessage.getChatModifier().setColor(EnumChatFormat.RED); @@ -124,10 +118,6 @@ public final class VanillaCommandWrapper extends VanillaCommand { chatmessage.getChatModifier().setColor(EnumChatFormat.RED); icommandlistener.sendMessage(chatmessage); } - // PAIL start: fix compile error - if (false) throw new ExceptionUsage(null, null); - if (false) throw new CommandException(null, null); - // PAIL end } catch (ExceptionUsage exceptionusage) { ChatMessage chatmessage1 = new ChatMessage("commands.generic.usage", new Object[] { new ChatMessage(exceptionusage.getMessage(), exceptionusage.getArgs()) }); chatmessage1.getChatModifier().setColor(EnumChatFormat.RED); diff --git a/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftScoreboard.java b/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftScoreboard.java index 62bb8a36..6fdad6e6 100644 --- a/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftScoreboard.java +++ b/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftScoreboard.java @@ -98,7 +98,7 @@ public final class CraftScoreboard implements org.bukkit.scoreboard.Scoreboard { Validate.notNull(player, "OfflinePlayer cannot be null"); for (CraftObjective objective : objectives.values()) { - board.resetPlayerScores(player.getName(), objective.getHandle()); // PAIL: check me + board.resetPlayerScores(player.getName(), objective.getHandle()); } } @@ -106,7 +106,7 @@ public final class CraftScoreboard implements org.bukkit.scoreboard.Scoreboard { Validate.notNull(entry, "Entry cannot be null"); for (CraftObjective objective : objectives.values()) { - board.resetPlayerScores(entry, objective.getHandle()); // PAIL: check me + board.resetPlayerScores(entry, objective.getHandle()); } } |