From 9aa676cee123f42967ee90ef08c52101541dee15 Mon Sep 17 00:00:00 2001 From: GJ Date: Mon, 11 Mar 2013 22:51:44 -0400 Subject: [PATCH] We don't need to have two different executors for these commands. --- .../java/com/gmail/nossr50/commands/party/PartyCommand.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/party/PartyCommand.java b/src/main/java/com/gmail/nossr50/commands/party/PartyCommand.java index f79c94987..48813700a 100644 --- a/src/main/java/com/gmail/nossr50/commands/party/PartyCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/party/PartyCommand.java @@ -5,7 +5,7 @@ import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; -import com.gmail.nossr50.commands.chat.PartyChatCommand; +import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.datatypes.player.McMMOPlayer; import com.gmail.nossr50.locale.LocaleLoader; import com.gmail.nossr50.util.Permissions; @@ -31,8 +31,8 @@ public class PartyCommand implements CommandExecutor { private CommandExecutor partyRenameCommand = new PartyRenameCommand(); private CommandExecutor partyInfoCommand = new PartyInfoCommand(); private CommandExecutor partyHelpCommand = new PartyHelpCommand(); - private CommandExecutor partyTeleportCommand = new PtpCommand(); - private CommandExecutor partyChatCommand = new PartyChatCommand(); + private CommandExecutor partyTeleportCommand = mcMMO.p.getCommand("ptp").getExecutor(); + private CommandExecutor partyChatCommand = mcMMO.p.getCommand("partychat").getExecutor(); @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {