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"; }