Add [home] label to home marker
This commit is contained in:
parent
bd59d2ffae
commit
eb0a3ef83f
@ -420,13 +420,14 @@ public class DynmapFactionsPlugin extends JavaPlugin {
|
|||||||
MarkerIcon ico = getMarkerIcon(factname, fact);
|
MarkerIcon ico = getMarkerIcon(factname, fact);
|
||||||
if(ico != null) {
|
if(ico != null) {
|
||||||
Marker home = resmark.remove(markid);
|
Marker home = resmark.remove(markid);
|
||||||
|
String lbl = factname + " [home]";
|
||||||
if(home == null) {
|
if(home == null) {
|
||||||
home = set.createMarker(markid, factname, homeloc.getWorld().getName(),
|
home = set.createMarker(markid, lbl, homeloc.getWorld().getName(),
|
||||||
homeloc.getX(), homeloc.getY(), homeloc.getZ(), ico, false);
|
homeloc.getX(), homeloc.getY(), homeloc.getZ(), ico, false);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
home.setLocation(homeloc.getWorld().getName(), homeloc.getX(), homeloc.getY(), homeloc.getZ());
|
home.setLocation(homeloc.getWorld().getName(), homeloc.getX(), homeloc.getY(), homeloc.getZ());
|
||||||
home.setLabel(factname); /* Update label */
|
home.setLabel(lbl); /* Update label */
|
||||||
home.setMarkerIcon(ico);
|
home.setMarkerIcon(ico);
|
||||||
}
|
}
|
||||||
home.setDescription(formatInfoWindow(fact)); /* Set popup */
|
home.setDescription(formatInfoWindow(fact)); /* Set popup */
|
||||||
|
Loading…
Reference in New Issue
Block a user