From 77e048471e8b65b8b28b3061fa17988f775137af Mon Sep 17 00:00:00 2001 From: bm01 Date: Fri, 1 Feb 2013 06:51:02 +0100 Subject: [PATCH] Forgot to use the ShareHandler enum here --- .../java/com/gmail/nossr50/party/commands/PartyCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/party/commands/PartyCommand.java b/src/main/java/com/gmail/nossr50/party/commands/PartyCommand.java index 5554c1d1b..a35f2c6b7 100644 --- a/src/main/java/com/gmail/nossr50/party/commands/PartyCommand.java +++ b/src/main/java/com/gmail/nossr50/party/commands/PartyCommand.java @@ -372,13 +372,13 @@ public class PartyCommand implements CommandExecutor { if (party.getLeader().equals(playerName)) { if (args[1].equalsIgnoreCase("none") || args[1].equalsIgnoreCase("false")) { - party.setXpShareMode(ShareHandler.XpShareMode.getFromString("NONE")); + party.setXpShareMode(ShareHandler.XpShareMode.NONE); for (Player onlineMembers : party.getOnlineMembers()) { onlineMembers.sendMessage(LocaleLoader.getString("Commands.Party.SetSharing", new Object[] {LocaleLoader.getString("Party.ShareType.Exp"), LocaleLoader.getString("Party.ShareMode.NoShare")})); } } else if (args[1].equalsIgnoreCase("equal") || args[1].equalsIgnoreCase("even")) { - party.setXpShareMode(ShareHandler.XpShareMode.getFromString("EQUAL")); + party.setXpShareMode(ShareHandler.XpShareMode.EQUAL); for (Player onlineMembers : party.getOnlineMembers()) { onlineMembers.sendMessage(LocaleLoader.getString("Commands.Party.SetSharing", new Object[] {LocaleLoader.getString("Party.ShareType.Exp"), LocaleLoader.getString("Party.ShareMode.Equal")}));