mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 06:28:49 +00:00
More useful labels on the BlueMap hook
This commit is contained in:
1 parent
1cff7aaafb
commit
0fc56dc758
1 file changed
+2
-2
@@ -70,7 +70,7 @@ public class BlueMapHook extends MapHook {
|
|||||||
.computeIfPresent(home.world.uuid + ":" + PUBLIC_HOMES_MARKER_SET_ID, (s, markerSet) -> {
|
.computeIfPresent(home.world.uuid + ":" + PUBLIC_HOMES_MARKER_SET_ID, (s, markerSet) -> {
|
||||||
markerSet.getMarkers().put(home.uuid.toString(),
|
markerSet.getMarkers().put(home.uuid.toString(),
|
||||||
POIMarker.toBuilder()
|
POIMarker.toBuilder()
|
||||||
.label(home.meta.name)
|
.label("/phome" + home.owner.username + "." + home.meta.name)
|
||||||
.position((int) home.x, (int) home.y, (int) home.z)
|
.position((int) home.x, (int) home.y, (int) home.z)
|
||||||
.icon(publicHomeMarkerIconPath, Vector2i.from(25, 25))
|
.icon(publicHomeMarkerIconPath, Vector2i.from(25, 25))
|
||||||
.maxDistance(5000)
|
.maxDistance(5000)
|
||||||
@@ -99,7 +99,7 @@ public class BlueMapHook extends MapHook {
|
|||||||
.computeIfPresent(warp.world.uuid + ":" + WARPS_MARKER_SET_ID, (s, markerSet) -> {
|
.computeIfPresent(warp.world.uuid + ":" + WARPS_MARKER_SET_ID, (s, markerSet) -> {
|
||||||
markerSet.getMarkers().put(warp.uuid.toString(),
|
markerSet.getMarkers().put(warp.uuid.toString(),
|
||||||
POIMarker.toBuilder()
|
POIMarker.toBuilder()
|
||||||
.label(warp.meta.name)
|
.label("/warp " + warp.meta.name)
|
||||||
.position((int) warp.x, (int) warp.y, (int) warp.z)
|
.position((int) warp.x, (int) warp.y, (int) warp.z)
|
||||||
.icon(warpMarkerIconPath, Vector2i.from(25, 25))
|
.icon(warpMarkerIconPath, Vector2i.from(25, 25))
|
||||||
.maxDistance(10000)
|
.maxDistance(10000)
|
||||||
|
|||||||
Reference in new issue
Block a user