diff options
author | Tyler Murphy <tylermurphy534@gmail.com> | 2022-08-16 20:10:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-16 20:10:36 -0400 |
commit | 725db2875c3ddb7829ebe8f7e68886eec83337f9 (patch) | |
tree | 12d39d7e1e2c09e0db81c7c3d1313ec79b01991a /src/main/java/net/tylermurphy/hideAndSeek/configuration/Config.java | |
parent | Merge pull request #72 from tylermurphy534/1.6.0 (diff) | |
parent | delayed respawn (diff) | |
download | kenshinshideandseek-725db2875c3ddb7829ebe8f7e68886eec83337f9.tar.gz kenshinshideandseek-725db2875c3ddb7829ebe8f7e68886eec83337f9.tar.bz2 kenshinshideandseek-725db2875c3ddb7829ebe8f7e68886eec83337f9.zip |
Merge pull request #76 from tylermurphy534/1.6.1
1.6.1
Diffstat (limited to '')
-rw-r--r-- | src/main/java/net/tylermurphy/hideAndSeek/configuration/Config.java | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/main/java/net/tylermurphy/hideAndSeek/configuration/Config.java b/src/main/java/net/tylermurphy/hideAndSeek/configuration/Config.java index 4130ec7..a71369f 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/configuration/Config.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/configuration/Config.java @@ -50,6 +50,7 @@ public class Config { gameOverPrefix, warningPrefix, spawnWorld, + seekerLobbyWorld, exitWorld, lobbyWorld, locale, @@ -67,6 +68,7 @@ public class Config { spawnPosition, lobbyPosition, exitPosition, + seekerLobbyPosition, worldBorderPosition; public static boolean @@ -91,7 +93,8 @@ public class Config { mapSaveEnabled, allowNaturalCauses, saveInventory, - blockhuntEnabled; + blockhuntEnabled, + delayedRespawn; public static int minPlayers, @@ -116,7 +119,9 @@ public class Config { lobbyItemLeavePosition, lobbyItemStartPosition, flightToggleItemPosition, - teleportItemPosition; + teleportItemPosition, + solidifyTime, + delayedRespawnDelay; public static float seekerPingLeadingVolume, @@ -184,6 +189,14 @@ public class Config { ); lobbyWorld = config.getString("spawns.lobby.world"); + ///Seeker Lobby + seekerLobbyPosition = new Vector( + config.getDouble("spawns.seeker.x"), + Math.max(Main.getInstance().supports(18) ? -64 : 0, Math.min(255, config.getDouble("spawns.seeker.y"))), + config.getDouble("spawns.seeker.z") + ); + seekerLobbyWorld = config.getString("spawns.seeker.world"); + announceMessagesToNonPlayers = config.getBoolean("announceMessagesToNonPlayers"); exitPosition = new Vector( @@ -304,6 +317,7 @@ public class Config { } } } + solidifyTime = Math.max(20,config.getInt("blockhunt.solidifyTime")); //Leaderboard LOBBY_TITLE = leaderboard.getString("lobby.title"); @@ -353,6 +367,10 @@ public class Config { Main.getInstance().getLogger().warning("databaseType: "+databaseType+" is not a valid configuration option!"); databaseType = "SQLITE"; } + + delayedRespawn = config.getBoolean("delayedRespawn.enabled"); + delayedRespawnDelay = Math.max(0,config.getInt("delayedRespawn.delay")); + } public static void addToConfig(String path, Object value) { |