mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-23 02:55:45 +01:00
change to remove command
This commit is contained in:
parent
d3080933ac
commit
8b32f746a4
@ -116,6 +116,10 @@ public class NPCCommands {
|
||||
@Requirements
|
||||
public void remove(CommandContext args, Player player, NPC npc) {
|
||||
if (args.argsLength() == 2) {
|
||||
if (!args.getString(1).equals("all")) {
|
||||
Messaging.sendError(player, "Incorrect syntax. /npc remove (all)");
|
||||
return;
|
||||
}
|
||||
if (!player.hasPermission("citizens.npc.remove.all") && !player.hasPermission("citizens.admin")) {
|
||||
Messaging.sendError(player, "You don't have permission to execute that command.");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user