|
@@ -7,7 +7,6 @@ import org.bukkit.entity.Player;
|
|
|
|
|
|
import com.gmail.nossr50.locale.LocaleLoader;
|
|
import com.gmail.nossr50.locale.LocaleLoader;
|
|
import com.gmail.nossr50.party.Party;
|
|
import com.gmail.nossr50.party.Party;
|
|
-import com.gmail.nossr50.util.Permissions;
|
|
|
|
import com.gmail.nossr50.util.Users;
|
|
import com.gmail.nossr50.util.Users;
|
|
|
|
|
|
public class PartyLockCommand implements CommandExecutor {
|
|
public class PartyLockCommand implements CommandExecutor {
|
|
@@ -56,7 +55,7 @@ public class PartyLockCommand implements CommandExecutor {
|
|
* Handle locking a party.
|
|
* Handle locking a party.
|
|
*/
|
|
*/
|
|
private void lockParty(CommandSender sender, Command command) {
|
|
private void lockParty(CommandSender sender, Command command) {
|
|
- if (!Permissions.hasPermission(sender, "mcmmo.commands.party.lock")) {
|
|
|
|
|
|
+ if (!sender.hasPermission("mcmmo.commands.party.lock")) {
|
|
sender.sendMessage(command.getPermissionMessage());
|
|
sender.sendMessage(command.getPermissionMessage());
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -76,7 +75,7 @@ public class PartyLockCommand implements CommandExecutor {
|
|
* @return true if party is successfully unlocked, false otherwise.
|
|
* @return true if party is successfully unlocked, false otherwise.
|
|
*/
|
|
*/
|
|
private void unlockParty(CommandSender sender, Command command) {
|
|
private void unlockParty(CommandSender sender, Command command) {
|
|
- if (!Permissions.hasPermission(sender, "mcmmo.commands.party.unlock")) {
|
|
|
|
|
|
+ if (!sender.hasPermission("mcmmo.commands.party.unlock")) {
|
|
sender.sendMessage(command.getPermissionMessage());
|
|
sender.sendMessage(command.getPermissionMessage());
|
|
return;
|
|
return;
|
|
}
|
|
}
|