Displays bungee markers properly
Some checks failed
EpicKnarvik97/Stargate/pipeline/head There was a failure building this commit

This commit is contained in:
Kristian Knarvik 2022-06-18 16:16:36 +02:00
parent 643a48392b
commit cae34d395b

View File

@ -88,8 +88,14 @@ public final class DynmapManager {
location.getZ())); location.getZ()));
return; return;
} }
String markerDescription = String.format("<b>Name:</b> %s<br /><b>Network:</b> %s<br /><b>Destination:</b> " + String networkPrompt;
"%s<br /><b>Owner:</b> %s<br />", portal.getName(), portal.getNetwork(), if (portal.getOptions().isBungee()) {
networkPrompt = "Server";
} else {
networkPrompt = "Network";
}
String markerDescription = String.format("<b>Name:</b> %s<br /><b>%s:</b> %s<br /><b>Destination:</b> " +
"%s<br /><b>Owner:</b> %s<br />", portal.getName(), networkPrompt, portal.getNetwork(),
portal.getDestinationName(), portal.getOwner().getName()); portal.getDestinationName(), portal.getOwner().getName());
marker.setDescription(markerDescription); marker.setDescription(markerDescription);
marker.setLabel(portal.getName(), true); marker.setLabel(portal.getName(), true);