Merge pull request #55 from bobby29831/1.4.3
refactor: simplify Locations.java class
This commit is contained in:
commit
4a89df97d7
1 changed files with 6 additions and 11 deletions
|
@ -5,22 +5,17 @@ package net.tylermurphy.hideAndSeek.command.location.util;
|
||||||
*/
|
*/
|
||||||
public enum Locations {
|
public enum Locations {
|
||||||
|
|
||||||
GAME("spawns.game", "GAME_SPAWN"),
|
GAME("spawns.game"),
|
||||||
LOBBY("spawns.lobby", "LOBBY_SPAWN"),
|
LOBBY("spawns.lobby"),
|
||||||
EXIT("spawns.exit", "EXIT_SPAWN");
|
EXIT("spawns.exit");
|
||||||
|
|
||||||
private final String path, message;
|
private final String path;
|
||||||
Locations(String path, String message) {
|
Locations(String path) {
|
||||||
this.path = path;
|
this.path = path;
|
||||||
this.message = message;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String message() {
|
public String message() {
|
||||||
return message;
|
return this + "_SPAWN";
|
||||||
}
|
|
||||||
|
|
||||||
public String path() {
|
|
||||||
return path;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String path(String additive) {
|
public String path(String additive) {
|
||||||
|
|
Loading…
Reference in a new issue