Cleanup from removal of leader checks.

This commit is contained in:
GJ 2013-02-12 11:25:56 -05:00
parent a60a6355d2
commit b2575c9b8f
2 changed files with 2 additions and 6 deletions

View File

@ -14,7 +14,6 @@ import com.gmail.nossr50.util.Permissions;
import com.gmail.nossr50.util.Users;
public class PartyExpShareCommand implements CommandExecutor {
private Player player;
private Party playerParty;
@Override
@ -26,8 +25,7 @@ public class PartyExpShareCommand implements CommandExecutor {
switch (args.length) {
case 2:
player = (Player) sender;
playerParty = Users.getPlayer(player).getParty();
playerParty = Users.getPlayer((Player) sender).getParty();
if (args[1].equalsIgnoreCase("none") || args[1].equalsIgnoreCase("off") || args[1].equalsIgnoreCase("false")) {
handleChangingShareMode(ShareMode.NONE);

View File

@ -14,7 +14,6 @@ import com.gmail.nossr50.util.Permissions;
import com.gmail.nossr50.util.Users;
public class PartyItemShareCommand implements CommandExecutor {
private Player player;
private Party playerParty;
@Override
@ -26,8 +25,7 @@ public class PartyItemShareCommand implements CommandExecutor {
switch (args.length) {
case 2:
player = (Player) sender;
playerParty = Users.getPlayer(player).getParty();
playerParty = Users.getPlayer((Player) sender).getParty();
if (args[1].equalsIgnoreCase("none") || args[1].equalsIgnoreCase("off") || args[1].equalsIgnoreCase("false")) {
handleChangingShareMode(ShareMode.NONE);