diff options
author | Myles <mylesandmore9@gmail.com> | 2022-11-27 17:50:58 -0600 |
---|---|---|
committer | Myles <mylesandmore9@gmail.com> | 2022-11-27 17:50:58 -0600 |
commit | d169d27a2140952a08c23017ca98a4b97c09a400 (patch) | |
tree | c204e9a8d9fc2a25102a687d18f5fb1743008409 /src/main/java/com/MylesAndMore/tumble/commands | |
parent | 69b34776f33056febf7817188f4fe72aa9470e49 (diff) | |
download | Tumble-d169d27a2140952a08c23017ca98a4b97c09a400.tar.gz Tumble-d169d27a2140952a08c23017ca98a4b97c09a400.tar.bz2 Tumble-d169d27a2140952a08c23017ca98a4b97c09a400.zip |
more refactoring rel. TumbleManager
Diffstat (limited to 'src/main/java/com/MylesAndMore/tumble/commands')
-rw-r--r-- | src/main/java/com/MylesAndMore/tumble/commands/SetWorldConfig.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/MylesAndMore/tumble/commands/SetWorldConfig.java b/src/main/java/com/MylesAndMore/tumble/commands/SetWorldConfig.java index 5b5b782..d27a5a8 100644 --- a/src/main/java/com/MylesAndMore/tumble/commands/SetWorldConfig.java +++ b/src/main/java/com/MylesAndMore/tumble/commands/SetWorldConfig.java @@ -24,7 +24,7 @@ public class SetWorldConfig implements CommandExecutor { // Check if the world is actually a world on the server if (Bukkit.getWorld(world) != null) { // Check if the world has already been configured - if (!Objects.equals(TumbleManager.getPlugin().getConfig().getString("gameWorld"), world)) { + if (!Objects.equals(TumbleManager.getGameWorld(), world)) { // Set the specified value of the world in the config under lobbyWorld TumbleManager.getPlugin().getConfig().set("lobbyWorld", world); // Save said config @@ -46,7 +46,7 @@ public class SetWorldConfig implements CommandExecutor { // Check if the world type is game else if (Objects.equals(args[1], "game")) { if (Bukkit.getWorld(world) != null) { - if (!Objects.equals(TumbleManager.getPlugin().getConfig().getString("lobbyWorld"), world)) { + if (!Objects.equals(TumbleManager.getLobbyWorld(), world)) { TumbleManager.getPlugin().getConfig().set("gameWorld", world); TumbleManager.getPlugin().saveConfig(); sender.sendMessage(ChatColor.GREEN + "Game world successfully linked: " + ChatColor.GRAY + world); |