Removed unused PlayerSpawnProtectionAllowedItems config.
This commit is contained in:
@ -258,7 +258,6 @@ public final class Config
|
||||
public static int UNSTUCK_INTERVAL;
|
||||
public static int TELEPORT_WATCHDOG_TIMEOUT;
|
||||
public static int PLAYER_SPAWN_PROTECTION;
|
||||
public static List<Integer> SPAWN_PROTECTION_ALLOWED_ITEMS;
|
||||
public static int PLAYER_TELEPORT_PROTECTION;
|
||||
public static boolean RANDOM_RESPAWN_IN_TOWN_ENABLED;
|
||||
public static boolean OFFSET_ON_TELEPORT_ENABLED;
|
||||
@ -1761,24 +1760,6 @@ public final class Config
|
||||
UNSTUCK_INTERVAL = character.getInt("UnstuckInterval", 300);
|
||||
TELEPORT_WATCHDOG_TIMEOUT = character.getInt("TeleportWatchdogTimeout", 0);
|
||||
PLAYER_SPAWN_PROTECTION = character.getInt("PlayerSpawnProtection", 0);
|
||||
final String[] items = character.getString("PlayerSpawnProtectionAllowedItems", "0").split(",");
|
||||
SPAWN_PROTECTION_ALLOWED_ITEMS = new ArrayList<>(items.length);
|
||||
for (String item : items)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!item.isEmpty())
|
||||
{
|
||||
SPAWN_PROTECTION_ALLOWED_ITEMS.add(Integer.parseInt(item));
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
{
|
||||
LOGGER.warning("Player Spawn Protection: Wrong ItemId passed: " + item);
|
||||
LOGGER.warning(nfe.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
PLAYER_TELEPORT_PROTECTION = character.getInt("PlayerTeleportProtection", 0);
|
||||
RANDOM_RESPAWN_IN_TOWN_ENABLED = character.getBoolean("RandomRespawnInTownEnabled", true);
|
||||
OFFSET_ON_TELEPORT_ENABLED = character.getBoolean("OffsetOnTeleportEnabled", true);
|
||||
|
Reference in New Issue
Block a user