summaryrefslogtreewikicommitdiff
path: root/src/main/java/net/tylermurphy/hideAndSeek/command/SetExitLocation.java
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2021-10-22 20:03:15 -0400
committerTyler Murphy <tylermurphy534@gmail.com>2021-10-22 20:03:15 -0400
commit0015592730f936350718ec61cd522c6dea3fe9c1 (patch)
treea148bfa82386a390bb9ee1d9960dc45ed9145640 /src/main/java/net/tylermurphy/hideAndSeek/command/SetExitLocation.java
parent1.3.0 final beta (diff)
downloadkenshinshideandseek-0015592730f936350718ec61cd522c6dea3fe9c1.tar.gz
kenshinshideandseek-0015592730f936350718ec61cd522c6dea3fe9c1.tar.bz2
kenshinshideandseek-0015592730f936350718ec61cd522c6dea3fe9c1.zip
localization
Diffstat (limited to 'src/main/java/net/tylermurphy/hideAndSeek/command/SetExitLocation.java')
-rw-r--r--src/main/java/net/tylermurphy/hideAndSeek/command/SetExitLocation.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/net/tylermurphy/hideAndSeek/command/SetExitLocation.java b/src/main/java/net/tylermurphy/hideAndSeek/command/SetExitLocation.java
index 2808948..e82d0e4 100644
--- a/src/main/java/net/tylermurphy/hideAndSeek/command/SetExitLocation.java
+++ b/src/main/java/net/tylermurphy/hideAndSeek/command/SetExitLocation.java
@@ -1,6 +1,6 @@
package net.tylermurphy.hideAndSeek.command;
-import static net.tylermurphy.hideAndSeek.Config.*;
+import static net.tylermurphy.hideAndSeek.configuration.Config.*;
import java.util.HashMap;
import java.util.Map;
@@ -10,6 +10,7 @@ import org.bukkit.entity.Player;
import org.bukkit.util.Vector;
import net.tylermurphy.hideAndSeek.Main;
+import static net.tylermurphy.hideAndSeek.configuration.Localization.*;
public class SetExitLocation implements ICommand {
@@ -20,11 +21,11 @@ public class SetExitLocation implements ICommand {
newExitPosition.setY(player.getLocation().getBlockY());
newExitPosition.setZ(player.getLocation().getBlockZ());
if(!Main.plugin.status.equals("Standby")) {
- sender.sendMessage(errorPrefix + "Game is currently in session");
+ sender.sendMessage(errorPrefix + message("GAME_INPROGRESS"));
return;
}
exitPosition = newExitPosition;
- sender.sendMessage(messagePrefix + "Set exit position to current location");
+ sender.sendMessage(messagePrefix + message("EXIT_SPAWN"));
Map<String, Object> temp = new HashMap<String,Object>();
temp.put("x", exitPosition.getX());
temp.put("y", exitPosition.getY());