Add %owneruuid% support to DynmapProvider for sponge.

This commit is contained in:
bloodshot 2020-12-02 02:11:12 -05:00
parent 7d8af02aac
commit bdcfc6b76c
3 changed files with 3 additions and 1 deletions

View File

@ -67,6 +67,7 @@ public class DynmapCategory {
public String infoWindowBasic = "<div class=\"infowindow\">"
+ "Name: <span style=\"font-weight:bold;\">%claimname%</span><br/>"
+ "Owner: <span style=\"font-weight:bold;\">%owner%</span><br/>"
+ "OwnerUUID: <span style=\"font-weight:bold;\">%owneruuid%</span><br/>"
+ "Type: <span style=\"font-weight:bold;\">%gdtype%</span><br/>"
+ "Last Seen: <span style=\"font-weight:bold;\">%lastseen%</span><br/>"
+ "Permission Trust: <span style=\"font-weight:bold;\">%managers%</span><br/>"

View File

@ -38,7 +38,7 @@ public class EconomyCategory extends ConfigCategory {
+ "\nNote: Using this mode disables the '/buyblocks' command as claim creation will pull funds directly from a player's economy balance."
+ "\nNote: If players have existing claimblocks from past configurations, an admin must use the '/ecomigrateblocks' command to convert remainder to currency.")
public boolean economyMode = false;
@Setting(value = "use-claim-block-task", comment = "Claim blocks earned will be converted to economy based on 'claim-block-cost'."
@Setting(value = "use-claim-block-task", comment = "Claim blocks earned will be converted to economy based on 'economy-block-cost'."
+ "\n(Default: false)\nNote: This setting can only be used if 'economy-mode' is true.")
public boolean useClaimBlockTask = false;
@Setting(value = "bank-system", comment = "Whether to enable the bank system for claims. Set to true to enable.")

View File

@ -91,6 +91,7 @@ private String getWindowInfo(Claim claim, AreaMarker marker) {
info = "<div class=\"regioninfo\">" + this.cfg.infoWindowBasic + "</div>";
}
info = info.replace("%owner%", ((GDClaim) claim).getOwnerName());
info = info.replace("%owneruuid%", claim.getOwnerUniqueId().toString());
info = info.replace("%area%", Integer.toString(claim.getArea()));
info = info.replace("%claimname%",
claim.getData().getName().isPresent()