mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-16 20:31:30 +01:00
Change error message
This commit is contained in:
parent
4e245cff4f
commit
7aa5e4bd74
@ -271,7 +271,7 @@ public class Citizens extends JavaPlugin {
|
||||
try {
|
||||
type = EntityType.valueOf(key.getString("traits.type"));
|
||||
} catch (IllegalArgumentException ex) {
|
||||
throw new NPCLoadException("type not recognised");
|
||||
throw new NPCLoadException("NPC type not recognized. Did you spell it correctly?");
|
||||
}
|
||||
}
|
||||
NPC npc = npcManager.createNPC(type, id, key.getString("name"), null);
|
||||
|
Loading…
Reference in New Issue
Block a user