From 876d22cd55a8e7ec8c851725291adb7c87ef6dc2 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 9 Sep 2017 12:51:18 +1000 Subject: [PATCH] SPIGOT-3561: Fix selectors in SuccessCount --- .../org/bukkit/craftbukkit/command/VanillaCommandWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java b/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java index 76125ae9ad..c9510dbc06 100644 --- a/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java +++ b/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java @@ -114,6 +114,7 @@ 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); @@ -135,7 +136,6 @@ public final class VanillaCommandWrapper extends BukkitCommand { } finally { MinecraftServer.getServer().worldServer = prev; } - icommandlistener.a(CommandObjectiveExecutor.EnumCommandResult.SUCCESS_COUNT, j); return j; }