mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-26 18:47:40 +01:00
Merge pull request #2841 from paulstraw/feature/worldborderlabel
Add `worldborderlabel` configuration.txt setting
This commit is contained in:
commit
7f7ab08fe5
@ -25,6 +25,7 @@ public class MarkersComponent extends ClientComponent {
|
|||||||
private MarkerSignManager signmgr;
|
private MarkerSignManager signmgr;
|
||||||
private MarkerIcon spawnicon;
|
private MarkerIcon spawnicon;
|
||||||
private String spawnlbl;
|
private String spawnlbl;
|
||||||
|
private String worldborderlbl;
|
||||||
private MarkerSet offlineset;
|
private MarkerSet offlineset;
|
||||||
private MarkerIcon offlineicon;
|
private MarkerIcon offlineicon;
|
||||||
private MarkerSet spawnbedset;
|
private MarkerSet spawnbedset;
|
||||||
@ -57,6 +58,9 @@ public class MarkersComponent extends ClientComponent {
|
|||||||
spawnicon = api.getMarkerIcon(MarkerIcon.WORLD);
|
spawnicon = api.getMarkerIcon(MarkerIcon.WORLD);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (showBorder) {
|
||||||
|
worldborderlbl = configuration.getString("worldborderlabel", "Border");
|
||||||
|
}
|
||||||
if (showSpawn || showBorder) {
|
if (showSpawn || showBorder) {
|
||||||
/* Add listener for world loads */
|
/* Add listener for world loads */
|
||||||
WorldEventListener wel = new WorldEventListener() {
|
WorldEventListener wel = new WorldEventListener() {
|
||||||
@ -280,7 +284,7 @@ public class MarkersComponent extends ClientComponent {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (am == null) {
|
if (am == null) {
|
||||||
am = ms.createAreaMarker(borderid, "Border", false, w.getName(), x, z, false);
|
am = ms.createAreaMarker(borderid, worldborderlbl, false, w.getName(), x, z, false);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
am.setCornerLocations(x, z);
|
am.setCornerLocations(x, z);
|
||||||
|
@ -127,6 +127,7 @@ components:
|
|||||||
spawnbedformat: "%name%'s bed"
|
spawnbedformat: "%name%'s bed"
|
||||||
# (optional) Show world border (vanilla 1.8+)
|
# (optional) Show world border (vanilla 1.8+)
|
||||||
showworldborder: true
|
showworldborder: true
|
||||||
|
worldborderlabel: "Border"
|
||||||
|
|
||||||
- class: org.dynmap.ClientComponent
|
- class: org.dynmap.ClientComponent
|
||||||
type: chat
|
type: chat
|
||||||
|
@ -127,6 +127,7 @@ components:
|
|||||||
spawnbedformat: "%name%'s bed"
|
spawnbedformat: "%name%'s bed"
|
||||||
# (optional) Show world border (vanilla 1.8+)
|
# (optional) Show world border (vanilla 1.8+)
|
||||||
showworldborder: true
|
showworldborder: true
|
||||||
|
worldborderlabel: "Border"
|
||||||
|
|
||||||
- class: org.dynmap.ClientComponent
|
- class: org.dynmap.ClientComponent
|
||||||
type: chat
|
type: chat
|
||||||
|
@ -127,6 +127,7 @@ components:
|
|||||||
spawnbedformat: "%name%'s bed"
|
spawnbedformat: "%name%'s bed"
|
||||||
# (optional) Show world border (vanilla 1.8+)
|
# (optional) Show world border (vanilla 1.8+)
|
||||||
showworldborder: true
|
showworldborder: true
|
||||||
|
worldborderlabel: "Border"
|
||||||
|
|
||||||
- class: org.dynmap.ClientComponent
|
- class: org.dynmap.ClientComponent
|
||||||
type: chat
|
type: chat
|
||||||
|
@ -127,6 +127,7 @@ components:
|
|||||||
spawnbedformat: "%name%'s bed"
|
spawnbedformat: "%name%'s bed"
|
||||||
# (optional) Show world border (vanilla 1.8+)
|
# (optional) Show world border (vanilla 1.8+)
|
||||||
showworldborder: true
|
showworldborder: true
|
||||||
|
worldborderlabel: "Border"
|
||||||
|
|
||||||
- class: org.dynmap.ClientComponent
|
- class: org.dynmap.ClientComponent
|
||||||
type: chat
|
type: chat
|
||||||
|
@ -127,6 +127,7 @@ components:
|
|||||||
spawnbedformat: "%name%'s bed"
|
spawnbedformat: "%name%'s bed"
|
||||||
# (optional) Show world border (vanilla 1.8+)
|
# (optional) Show world border (vanilla 1.8+)
|
||||||
showworldborder: true
|
showworldborder: true
|
||||||
|
worldborderlabel: "Border"
|
||||||
|
|
||||||
- class: org.dynmap.ClientComponent
|
- class: org.dynmap.ClientComponent
|
||||||
type: chat
|
type: chat
|
||||||
|
@ -127,6 +127,7 @@ components:
|
|||||||
spawnbedformat: "%name%'s bed"
|
spawnbedformat: "%name%'s bed"
|
||||||
# (optional) Show world border (vanilla 1.8+)
|
# (optional) Show world border (vanilla 1.8+)
|
||||||
showworldborder: true
|
showworldborder: true
|
||||||
|
worldborderlabel: "Border"
|
||||||
|
|
||||||
- class: org.dynmap.ClientComponent
|
- class: org.dynmap.ClientComponent
|
||||||
type: chat
|
type: chat
|
||||||
|
@ -128,6 +128,7 @@ components:
|
|||||||
spawnbedformat: "%name%'s bed"
|
spawnbedformat: "%name%'s bed"
|
||||||
# (optional) show world border (vanilla 1.8+)
|
# (optional) show world border (vanilla 1.8+)
|
||||||
showworldborder: true
|
showworldborder: true
|
||||||
|
worldborderlabel: "Border"
|
||||||
|
|
||||||
- class: org.dynmap.ClientComponent
|
- class: org.dynmap.ClientComponent
|
||||||
type: chat
|
type: chat
|
||||||
|
Loading…
Reference in New Issue
Block a user