mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-24 03:25:13 +01:00
Fix /npc select with only 1 argument
This commit is contained in:
parent
f8ccd0b4fd
commit
7aa56a5ffb
@ -624,7 +624,7 @@ public class NPCCommands {
|
||||
@Requirements(ownership = true)
|
||||
public void select(CommandContext args, CommandSender sender, NPC npc) throws CommandException {
|
||||
NPC toSelect = null;
|
||||
if (args.argsLength() == 0) {
|
||||
if (args.argsLength() <= 1) {
|
||||
if (!(sender instanceof Player))
|
||||
throw new ServerCommandException();
|
||||
double range = Math.abs(args.getFlagDouble("r", 10));
|
||||
|
Loading…
Reference in New Issue
Block a user