Add SpawnCommand.java

This commit is contained in:
Len
2024-02-05 15:00:37 +01:00
parent 1669a114bc
commit d2e4591c21
4 changed files with 42 additions and 1 deletions
@@ -115,11 +115,13 @@ public class Config {
public static Sound SOUND_FROM;
public static int BACK_COOLDOWN = 60;
public static boolean UNSAFE_ENCHANTMENTS = false;
public static String SPAWN_WORLD = "Skyblock";
private static void settings() {
TELEPORT_REQUEST_TIMEOUT = getInt("teleport-request-timeout", TELEPORT_REQUEST_TIMEOUT);
TELEPORT_REQUEST_TIMEOUT_MESSAGES = getBoolean("teleport-request-timeout-message", TELEPORT_REQUEST_TIMEOUT_MESSAGES);
BACK_ON_DEATH = getBoolean("back-on-death", BACK_ON_DEATH);
TELEPORT_SOUNDS = getBoolean("use-teleport-sounds", TELEPORT_SOUNDS);
SPAWN_WORLD = getString("use-teleport-sounds", SPAWN_WORLD);
try {
SOUND_TO = Sound.valueOf(config.getString("sound-to", "ENTITY_ENDERMAN_TELEPORT"));
} catch (IllegalArgumentException e) {