diff options
author | bobby29831 <me@bobby29831.com> | 2022-05-14 22:25:24 -0500 |
---|---|---|
committer | bobby29831 <me@bobby29831.com> | 2022-05-14 22:25:24 -0500 |
commit | d6f1cce234aa2a0b1628e3fbebec8ec40b258e78 (patch) | |
tree | 1b6b1bd472760d19317d8ea48cd9533e4032bd5e /src/main/java/net/tylermurphy/hideAndSeek | |
parent | refactor: clean up typos, improperly named variables (diff) | |
download | kenshinshideandseek-d6f1cce234aa2a0b1628e3fbebec8ec40b258e78.tar.gz kenshinshideandseek-d6f1cce234aa2a0b1628e3fbebec8ec40b258e78.tar.bz2 kenshinshideandseek-d6f1cce234aa2a0b1628e3fbebec8ec40b258e78.zip |
refactor: simplify Locations.java class
Diffstat (limited to 'src/main/java/net/tylermurphy/hideAndSeek')
-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 bde5456..ff44546 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 @@ -2,22 +2,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) { |