Further tweaks to map hook refactoring

This commit is contained in:
William278 committed 2023-03-22 12:18:34 +00:00
1 parent 98fa779046
commit 4e798a42e8
13 files changed
+50 -24

No files matched your search

@@ -7,8 +7,6 @@ import net.william278.huskhomes.position.Warp;
import net.william278.huskhomes.user.User;
import org.jetbrains.annotations.NotNull;
import java.util.concurrent.CompletableFuture;
/**
* A hook for a mapping plugin, such as Dynmap
*/
@@ -105,6 +103,18 @@ public abstract class MapHook extends Hook {
return plugin.getKey(getName().toLowerCase(), "warps", "markers").toString();
}
@NotNull
protected final String getPublicHomesMarkerSetName() {
return plugin.getLocales().getRawLocale("map_hook_public_homes_marker_set_name")
.orElse("Public Homes");
}
@NotNull
protected final String getWarpsMarkerSetName() {
return plugin.getLocales().getRawLocale("map_hook_warps_marker_set_name")
.orElse("Warps");
}
/**
* Identifies types of supported Map plugins
*/