From 377ed9e8e5d29214846f56b28da95b88109d11ae Mon Sep 17 00:00:00 2001 From: GJ Date: Wed, 17 Apr 2013 07:07:54 -0400 Subject: [PATCH] Fix not being able to change party owners. --- .../gmail/nossr50/commands/party/PartyChangeOwnerCommand.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/party/PartyChangeOwnerCommand.java b/src/main/java/com/gmail/nossr50/commands/party/PartyChangeOwnerCommand.java index 6099bbf56..d11dd5a93 100644 --- a/src/main/java/com/gmail/nossr50/commands/party/PartyChangeOwnerCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/party/PartyChangeOwnerCommand.java @@ -4,7 +4,6 @@ import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; -import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.datatypes.party.Party; import com.gmail.nossr50.locale.LocaleLoader; import com.gmail.nossr50.party.PartyManager; @@ -17,7 +16,7 @@ public class PartyChangeOwnerCommand implements CommandExecutor { case 2: Party playerParty = UserManager.getPlayer(sender.getName()).getParty(); - if (!playerParty.getMembers().contains(mcMMO.p.getServer().getOfflinePlayer(args[1]))) { + if (!playerParty.getMembers().contains(args[1])) { sender.sendMessage(LocaleLoader.getString("Party.NotInYourParty", args[1])); return true; }