From 5241f917ce5acb49c52bf1750ebdcf67d342f32a Mon Sep 17 00:00:00 2001 From: graywolf336 Date: Sun, 27 Apr 2014 00:29:08 -0500 Subject: [PATCH] Don't double send the message on backwards support for commands. --- src/main/java/com/graywolf336/jail/command/CommandHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/graywolf336/jail/command/CommandHandler.java b/src/main/java/com/graywolf336/jail/command/CommandHandler.java index dca3622..7180192 100644 --- a/src/main/java/com/graywolf336/jail/command/CommandHandler.java +++ b/src/main/java/com/graywolf336/jail/command/CommandHandler.java @@ -70,7 +70,8 @@ public class CommandHandler { args2.add(s); args2.add(a0); - jailmanager.getPlugin().onCommand(sender, null, j, args2.toArray(new String[args2.size()])); + if(jailmanager.getPlugin().onCommand(sender, null, j, args2.toArray(new String[args2.size()]))) + return; } sender.sendMessage(jailmanager.getPlugin().getJailIO().getLanguageString(LangString.UNKNOWNCOMMAND, commandLine));