This commit is contained in:
Brianna O'Keefe 2018-09-27 02:36:19 -04:00
parent e5733f8dac
commit c46ad338fb

View File

@ -219,6 +219,7 @@ public class EpicSpawnersPlugin extends JavaPlugin implements EpicSpawners {
for (String entityKillsKey : row.get("entitykills").asString().split(";")) {
if (entityKillsKey == null) continue;
String[] entityKills2 = entityKillsKey.split(":");
if (entityKills2[0] == null) continue;
EntityType entityType = EntityType.valueOf(entityKills2[0]);
int amt = Integer.parseInt(entityKills2[1]);
entityKills.put(entityType, amt);