Merge pull request #55 from bobby29831/1.4.3

refactor: simplify Locations.java class
This commit is contained in:
Tyler Murphy 2022-05-15 06:37:37 -04:00 committed by GitHub
commit 4a89df97d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {