mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Fix dynmap warp command popup, auto-detect map plugin
This commit is contained in:
1 parent
18c739246b
commit
d158973450
5 files changed
+16
-54
No files matched your search
@@ -15,8 +15,8 @@ public abstract class MapHook extends Hook {
|
||||
protected static final String WARP_MARKER_IMAGE_NAME = "warp";
|
||||
protected static final String PUBLIC_HOME_MARKER_IMAGE_NAME = "public-home";
|
||||
|
||||
protected MapHook(@NotNull HuskHomes plugin, @NotNull MapHook.Plugin type) {
|
||||
super(plugin, type.getDisplayName());
|
||||
protected MapHook(@NotNull HuskHomes plugin, @NotNull String name) {
|
||||
super(plugin, name);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -115,23 +115,4 @@ public abstract class MapHook extends Hook {
|
||||
.orElse("Warps");
|
||||
}
|
||||
|
||||
/**
|
||||
* Identifies types of supported Map plugins
|
||||
*/
|
||||
public enum Plugin {
|
||||
DYNMAP("Dynmap"),
|
||||
BLUEMAP("BlueMap");
|
||||
|
||||
private final String displayName;
|
||||
|
||||
Plugin(@NotNull String displayName) {
|
||||
this.displayName = displayName;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public String getDisplayName() {
|
||||
return displayName;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user