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 {
|
else {
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.Usage.2", "party", "itemshare", "<loot | mining | herbalism | woodcutting> <true | false>"));
|
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;
|
return true;
|
||||||
|
|
||||||
default:
|
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";
|
String state = "disabled";
|
||||||
|
|
||||||
if (toggle) {
|
if (toggle) {
|
||||||
state = "enabled";
|
state = "enabled";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user