Begin 1.16 support

This commit is contained in:
DroppingAnvil 2020-06-25 13:23:52 -05:00
parent 11ea9bc1aa
commit 09f1df49a9
2 changed files with 6 additions and 1 deletions

View File

@ -577,7 +577,7 @@ public class Conf {
safeZoneNerfedCreatureTypes.add(EntityType.ENDERMAN);
safeZoneNerfedCreatureTypes.add(EntityType.GHAST);
safeZoneNerfedCreatureTypes.add(EntityType.MAGMA_CUBE);
safeZoneNerfedCreatureTypes.add(EntityType.PIG_ZOMBIE);
if (!FactionsPlugin.getInstance().mc116) safeZoneNerfedCreatureTypes.add(EntityType.PIG_ZOMBIE);
safeZoneNerfedCreatureTypes.add(EntityType.SILVERFISH);
safeZoneNerfedCreatureTypes.add(EntityType.SKELETON);
safeZoneNerfedCreatureTypes.add(EntityType.SPIDER);

View File

@ -81,6 +81,7 @@ public class FactionsPlugin extends MPlugin {
public boolean mc113 = false;
public boolean mc114 = false;
public boolean mc115 = false;
public boolean mc116 = false;
public boolean useNonPacketParticles = false;
public List<String> itemList = getConfig().getStringList("fchest.Items-Not-Allowed");
SkriptAddon skriptAddon;
@ -167,6 +168,10 @@ public class FactionsPlugin extends MPlugin {
FactionsPlugin.instance.log("Minecraft Version 1.15 found.");
mc115 = true;
break;
case 16:
FactionsPlugin.instance.log("Minecraft Version 1.16 found.");
mc116 = true;
break;
}
migrateFPlayerLeaders();
log("==== End Setup ====");