diff options
author | Tyler Murphy <tylermurphy534@gmail.com> | 2022-05-15 06:37:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-15 06:37:37 -0400 |
commit | 4a89df97d7f31a5c36452487989b4d8c7b50a6cd (patch) | |
tree | 644a3745e322f9ce32cd455250ef8241436f7fed /src/main/java | |
parent | debug menu and 1.8/1.14 fixes (diff) | |
parent | Merge branch 'tylermurphy534:1.4.3' into 1.4.3 (diff) | |
download | kenshinshideandseek-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')
-rw-r--r-- | src/main/java/net/tylermurphy/hideAndSeek/command/location/util/Locations.java | 17 |
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) { |