mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-26 20:55:44 +01:00
Fix #552
This commit is contained in:
parent
300ff53dfd
commit
9c93897e2b
@ -1207,7 +1207,7 @@ public class NPCCommands {
|
||||
NPCCommandSelector.Callback callback = new NPCCommandSelector.Callback() {
|
||||
@Override
|
||||
public void run(NPC toSelect) throws CommandException {
|
||||
if (toSelect == null || !toSelect.getTrait(Spawned.class).shouldSpawn())
|
||||
if (toSelect == null)
|
||||
throw new CommandException(Messages.NPC_NOT_FOUND);
|
||||
if (npc != null && toSelect.getId() == npc.getId())
|
||||
throw new CommandException(Messages.NPC_ALREADY_SELECTED);
|
||||
|
Loading…
Reference in New Issue
Block a user