mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +01:00
We check the leader elsewhere.
This commit is contained in:
parent
6acfba1315
commit
a60a6355d2
@ -29,11 +29,6 @@ public class PartyExpShareCommand implements CommandExecutor {
|
|||||||
player = (Player) sender;
|
player = (Player) sender;
|
||||||
playerParty = Users.getPlayer(player).getParty();
|
playerParty = Users.getPlayer(player).getParty();
|
||||||
|
|
||||||
if (!playerParty.getLeader().equals(player.getName())) {
|
|
||||||
sender.sendMessage(LocaleLoader.getString("Party.NotOwner"));
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (args[1].equalsIgnoreCase("none") || args[1].equalsIgnoreCase("off") || args[1].equalsIgnoreCase("false")) {
|
if (args[1].equalsIgnoreCase("none") || args[1].equalsIgnoreCase("off") || args[1].equalsIgnoreCase("false")) {
|
||||||
handleChangingShareMode(ShareMode.NONE);
|
handleChangingShareMode(ShareMode.NONE);
|
||||||
}
|
}
|
||||||
|
@ -29,11 +29,6 @@ public class PartyItemShareCommand implements CommandExecutor {
|
|||||||
player = (Player) sender;
|
player = (Player) sender;
|
||||||
playerParty = Users.getPlayer(player).getParty();
|
playerParty = Users.getPlayer(player).getParty();
|
||||||
|
|
||||||
if (!playerParty.getLeader().equals(player.getName())) {
|
|
||||||
sender.sendMessage(LocaleLoader.getString("Party.NotOwner"));
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (args[1].equalsIgnoreCase("none") || args[1].equalsIgnoreCase("off") || args[1].equalsIgnoreCase("false")) {
|
if (args[1].equalsIgnoreCase("none") || args[1].equalsIgnoreCase("off") || args[1].equalsIgnoreCase("false")) {
|
||||||
handleChangingShareMode(ShareMode.NONE);
|
handleChangingShareMode(ShareMode.NONE);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user