summaryrefslogtreewikicommitdiff
path: root/src/main/java/net/tylermurphy/hideAndSeek/command
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2022-05-15 06:37:37 -0400
committerGitHub <noreply@github.com>2022-05-15 06:37:37 -0400
commit4a89df97d7f31a5c36452487989b4d8c7b50a6cd (patch)
tree644a3745e322f9ce32cd455250ef8241436f7fed /src/main/java/net/tylermurphy/hideAndSeek/command
parentdebug menu and 1.8/1.14 fixes (diff)
parentMerge branch 'tylermurphy534:1.4.3' into 1.4.3 (diff)
downloadkenshinshideandseek-4a89df97d7f31a5c36452487989b4d8c7b50a6cd.tar.gz
kenshinshideandseek-4a89df97d7f31a5c36452487989b4d8c7b50a6cd.tar.bz2
kenshinshideandseek-4a89df97d7f31a5c36452487989b4d8c7b50a6cd.zip
Merge pull request #55 from bobby29831/1.4.3
refactor: simplify Locations.java class
Diffstat (limited to 'src/main/java/net/tylermurphy/hideAndSeek/command')
-rw-r--r--src/main/java/net/tylermurphy/hideAndSeek/command/location/util/Locations.java17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/main/java/net/tylermurphy/hideAndSeek/command/location/util/Locations.java b/src/main/java/net/tylermurphy/hideAndSeek/command/location/util/Locations.java
index 59e1517..137bc69 100644
--- a/src/main/java/net/tylermurphy/hideAndSeek/command/location/util/Locations.java
+++ b/src/main/java/net/tylermurphy/hideAndSeek/command/location/util/Locations.java
@@ -5,22 +5,17 @@ package net.tylermurphy.hideAndSeek.command.location.util;
*/
public enum Locations {
- GAME("spawns.game", "GAME_SPAWN"),
- LOBBY("spawns.lobby", "LOBBY_SPAWN"),
- EXIT("spawns.exit", "EXIT_SPAWN");
+ GAME("spawns.game"),
+ LOBBY("spawns.lobby"),
+ EXIT("spawns.exit");
- private final String path, message;
- Locations(String path, String message) {
+ private final String path;
+ Locations(String path) {
this.path = path;
- this.message = message;
}
public String message() {
- return message;
- }
-
- public String path() {
- return path;
+ return this + "_SPAWN";
}
public String path(String additive) {