mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 18:45:29 +01:00
method name change
This commit is contained in:
parent
be42d64c19
commit
4c8ccdcba2
Binary file not shown.
@ -123,7 +123,7 @@ public class NPCCommands {
|
||||
@Requirements(ownership = true)
|
||||
public void selectNPC(CommandContext args, Player player, NPC npc) {
|
||||
NPC toSelect = npcManager.getNPC(args.getInteger(1));
|
||||
if (toSelect == null || !toSelect.getTrait(Spawned.class).isSpawned()) {
|
||||
if (toSelect == null || !toSelect.getTrait(Spawned.class).shouldSpawn()) {
|
||||
Messaging.sendError(player, "No NPC with the ID '" + args.getInteger(1) + "' is spawned.");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user