mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Straighten up PartyitemShare a bit.
This commit is contained in:
parent
294393bd1c
commit
ec12303834
@ -68,7 +68,7 @@ public class PartyItemShareCommand implements CommandExecutor {
|
||||
else {
|
||||
sender.sendMessage(LocaleLoader.getString("Commands.Usage.2", "party", "itemshare", "<loot | mining | herbalism | woodcutting> <true | false>"));
|
||||
}
|
||||
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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user