mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-28 20:17:50 +01:00
Default type to player if not found
This commit is contained in:
parent
e60e889775
commit
32b9f4ff2b
@ -280,7 +280,7 @@ public class Citizens extends JavaPlugin {
|
||||
Messaging.log("Could not find a name for the NPC with ID '" + id + "'.");
|
||||
continue;
|
||||
}
|
||||
String unparsedEntityType = key.getString("traits.type");
|
||||
String unparsedEntityType = key.getString("traits.type", "PLAYER");
|
||||
EntityType type = EntityType.fromName(unparsedEntityType);
|
||||
if (type == null) {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user