From a60a6355d2c1f12e4dec7df64bd417485a2c58d6 Mon Sep 17 00:00:00 2001 From: GJ Date: Tue, 12 Feb 2013 11:23:48 -0500 Subject: [PATCH] We check the leader elsewhere. --- .../gmail/nossr50/party/commands/PartyExpShareCommand.java | 5 ----- .../gmail/nossr50/party/commands/PartyItemShareCommand.java | 5 ----- 2 files changed, 10 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/party/commands/PartyExpShareCommand.java b/src/main/java/com/gmail/nossr50/party/commands/PartyExpShareCommand.java index ba18b0bcb..bae7e3850 100644 --- a/src/main/java/com/gmail/nossr50/party/commands/PartyExpShareCommand.java +++ b/src/main/java/com/gmail/nossr50/party/commands/PartyExpShareCommand.java @@ -29,11 +29,6 @@ public class PartyExpShareCommand implements CommandExecutor { player = (Player) sender; 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")) { handleChangingShareMode(ShareMode.NONE); } 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 4fc4f2c73..7cbd90c2d 100644 --- a/src/main/java/com/gmail/nossr50/party/commands/PartyItemShareCommand.java +++ b/src/main/java/com/gmail/nossr50/party/commands/PartyItemShareCommand.java @@ -29,11 +29,6 @@ public class PartyItemShareCommand implements CommandExecutor { player = (Player) sender; 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")) { handleChangingShareMode(ShareMode.NONE); }