From ec1230383480c1897cac37820f8a28f92c496952 Mon Sep 17 00:00:00 2001 From: GJ Date: Tue, 26 Feb 2013 22:39:35 -0500 Subject: [PATCH] Straighten up PartyitemShare a bit. --- .../gmail/nossr50/party/commands/PartyItemShareCommand.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/party/commands/PartyItemShareCommand.java b/src/main/java/com/gmail/nossr50/party/commands/PartyItemShareCommand.java index c325b5df9..b63856376 100644 --- a/src/main/java/com/gmail/nossr50/party/commands/PartyItemShareCommand.java +++ b/src/main/java/com/gmail/nossr50/party/commands/PartyItemShareCommand.java @@ -68,7 +68,7 @@ public class PartyItemShareCommand implements CommandExecutor { else { sender.sendMessage(LocaleLoader.getString("Commands.Usage.2", "party", "itemshare", " ")); } - notifyToggleItemShareCategory((Player) sender, args, toggle); + notifyToggleItemShareCategory(args, toggle); return true; default: @@ -86,8 +86,9 @@ public class PartyItemShareCommand implements CommandExecutor { } } - private void notifyToggleItemShareCategory(Player sender, String[] args, boolean toggle) { + private void notifyToggleItemShareCategory(String[] args, boolean toggle) { String state = "disabled"; + if (toggle) { state = "enabled"; }