summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-10-17 21:08:43 +1100
committermd_5 <git@md-5.net>2017-10-17 21:08:43 +1100
commit31d3159f04d02d240d8f6362835774639e052894 (patch)
tree0af79c504c05efa881b7b1bbb8a45cddec270ec4
parentb8f84f375b2c82aa9448c4492cf7a8146cb077aa (diff)
downloadcraftbukkit-31d3159f04d02d240d8f6362835774639e052894.tar
craftbukkit-31d3159f04d02d240d8f6362835774639e052894.tar.gz
craftbukkit-31d3159f04d02d240d8f6362835774639e052894.tar.lz
craftbukkit-31d3159f04d02d240d8f6362835774639e052894.tar.xz
craftbukkit-31d3159f04d02d240d8f6362835774639e052894.zip
SPIGOT-3613: Success count not reset for exceptions.
-rw-r--r--src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java b/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java
index c9510dbc..6247bbda 100644
--- a/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java
+++ b/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java
@@ -114,7 +114,6 @@ public final class VanillaCommandWrapper extends BukkitCommand {
chatmessage.getChatModifier().setColor(EnumChatFormat.RED);
icommandlistener.sendMessage(chatmessage);
}
- icommandlistener.a(CommandObjectiveExecutor.EnumCommandResult.SUCCESS_COUNT, j);
} catch (ExceptionUsage exceptionusage) {
ChatMessage chatmessage1 = new ChatMessage("commands.generic.usage", new Object[] { new ChatMessage(exceptionusage.getMessage(), exceptionusage.getArgs()) });
chatmessage1.getChatModifier().setColor(EnumChatFormat.RED);
@@ -134,6 +133,7 @@ public final class VanillaCommandWrapper extends BukkitCommand {
MinecraftServer.LOGGER.log(Level.WARN, String.format("Unknown CommandBlock failed to handle command"), throwable);
}
} finally {
+ icommandlistener.a(CommandObjectiveExecutor.EnumCommandResult.SUCCESS_COUNT, j);
MinecraftServer.getServer().worldServer = prev;
}
return j;