mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-02 13:31:43 +01:00
-o implies -p in /npc command
This commit is contained in:
parent
df2c7689fe
commit
ef03e224c2
@ -308,9 +308,10 @@ public class NPCCommands {
|
||||
if (args.hasValueFlag("permissions")) {
|
||||
perms.addAll(Arrays.asList(args.getFlag("permissions").split(",")));
|
||||
}
|
||||
int id = commands.addCommand(new NPCCommandBuilder(command, hand).addPerms(perms).player(args.hasFlag('p'))
|
||||
.op(args.hasFlag('o')).cooldown(args.getFlagInteger("cooldown", 0)).n(args.getFlagInteger("n", -1))
|
||||
.delay(args.getFlagInteger("delay", 0)));
|
||||
int id = commands.addCommand(
|
||||
new NPCCommandBuilder(command, hand).addPerms(perms).player(args.hasFlag('p') || args.hasFlag('o'))
|
||||
.op(args.hasFlag('o')).cooldown(args.getFlagInteger("cooldown", 0))
|
||||
.n(args.getFlagInteger("n", -1)).delay(args.getFlagInteger("delay", 0)));
|
||||
Messaging.sendTr(sender, Messages.COMMAND_ADDED, command, id);
|
||||
} else if (args.getString(1).equalsIgnoreCase("remove")) {
|
||||
if (args.argsLength() == 2)
|
||||
|
Loading…
Reference in New Issue
Block a user