mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Further tweaks to map hook refactoring
This commit is contained in:
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
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user