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
@@ -30,7 +30,7 @@ public class DynmapHook extends MapHook {
|
||||
private MarkerSet warpsMarkers;
|
||||
|
||||
public DynmapHook(@NotNull HuskHomes plugin) {
|
||||
super(plugin, Plugin.DYNMAP);
|
||||
super(plugin, "Dynmap");
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -75,7 +75,7 @@ public class DynmapHook extends MapHook {
|
||||
.thumbnail(PUBLIC_HOME_MARKER_IMAGE_NAME)
|
||||
.field("Owner", home.getOwner().getUsername())
|
||||
.field("Description", plugin.getLocales().wrapText(home.getMeta().getDescription(), 60))
|
||||
.field("Command", "/phome " + home.getName())
|
||||
.field("Command", "/phome " + home.getOwner().getUsername() + "." + home.getName())
|
||||
.toHtml());
|
||||
});
|
||||
});
|
||||
@@ -116,7 +116,7 @@ public class DynmapHook extends MapHook {
|
||||
.setDescription(MarkerInformationPopup.create(warp.getName())
|
||||
.thumbnail(WARP_MARKER_IMAGE_NAME)
|
||||
.field("Description", plugin.getLocales().wrapText(warp.getMeta().getDescription(), 60))
|
||||
.field("Command", "/phome " + warp.getName())
|
||||
.field("Command", "/warp " + warp.getName())
|
||||
.toHtml());
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user