summaryrefslogtreewikicommitdiff
path: root/src/main/java/net/tylermurphy/hideAndSeek/command/Setup.java
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2022-05-13 21:17:46 -0400
committerTyler Murphy <tylermurphy534@gmail.com>2022-05-13 21:17:46 -0400
commitea8f76493141717296e1f59fbdab21c39f1937be (patch)
tree3d6ceeb5baf90f857b88d8a09fc9a07caddf75ce /src/main/java/net/tylermurphy/hideAndSeek/command/Setup.java
parentMerge pull request #53 from bobby29831/1.4.3 (diff)
downloadkenshinshideandseek-ea8f76493141717296e1f59fbdab21c39f1937be.tar.gz
kenshinshideandseek-ea8f76493141717296e1f59fbdab21c39f1937be.tar.bz2
kenshinshideandseek-ea8f76493141717296e1f59fbdab21c39f1937be.zip
refactor and encapsulate classes
Diffstat (limited to 'src/main/java/net/tylermurphy/hideAndSeek/command/Setup.java')
-rw-r--r--src/main/java/net/tylermurphy/hideAndSeek/command/Setup.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/net/tylermurphy/hideAndSeek/command/Setup.java b/src/main/java/net/tylermurphy/hideAndSeek/command/Setup.java
index ec932d8..0bedcb5 100644
--- a/src/main/java/net/tylermurphy/hideAndSeek/command/Setup.java
+++ b/src/main/java/net/tylermurphy/hideAndSeek/command/Setup.java
@@ -20,7 +20,6 @@
package net.tylermurphy.hideAndSeek.command;
import net.tylermurphy.hideAndSeek.Main;
-import net.tylermurphy.hideAndSeek.game.Game;
import org.bukkit.command.CommandSender;
import java.io.File;
@@ -52,7 +51,7 @@ public class Setup implements ICommand {
count++;
}
if (mapSaveEnabled) {
- File destenation = new File(Main.root + File.separator + Game.getGameWorld());
+ File destenation = new File(Main.getInstance().getWorldContainer() + File.separator + Main.getInstance().getGame().getGameWorld());
if (!destenation.exists()) {
msg = msg + "\n" + message("SETUP_SAVEMAP");
count++;