mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2024-12-01 13:43:28 +01:00
Add %owneruuid% support to DynmapProvider for sponge.
This commit is contained in:
parent
7d8af02aac
commit
bdcfc6b76c
@ -67,6 +67,7 @@ public class DynmapCategory {
|
|||||||
public String infoWindowBasic = "<div class=\"infowindow\">"
|
public String infoWindowBasic = "<div class=\"infowindow\">"
|
||||||
+ "Name: <span style=\"font-weight:bold;\">%claimname%</span><br/>"
|
+ "Name: <span style=\"font-weight:bold;\">%claimname%</span><br/>"
|
||||||
+ "Owner: <span style=\"font-weight:bold;\">%owner%</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/>"
|
+ "Type: <span style=\"font-weight:bold;\">%gdtype%</span><br/>"
|
||||||
+ "Last Seen: <span style=\"font-weight:bold;\">%lastseen%</span><br/>"
|
+ "Last Seen: <span style=\"font-weight:bold;\">%lastseen%</span><br/>"
|
||||||
+ "Permission Trust: <span style=\"font-weight:bold;\">%managers%</span><br/>"
|
+ "Permission Trust: <span style=\"font-weight:bold;\">%managers%</span><br/>"
|
||||||
|
@ -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: 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.")
|
+ "\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;
|
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.")
|
+ "\n(Default: false)\nNote: This setting can only be used if 'economy-mode' is true.")
|
||||||
public boolean useClaimBlockTask = false;
|
public boolean useClaimBlockTask = false;
|
||||||
@Setting(value = "bank-system", comment = "Whether to enable the bank system for claims. Set to true to enable.")
|
@Setting(value = "bank-system", comment = "Whether to enable the bank system for claims. Set to true to enable.")
|
||||||
|
@ -91,6 +91,7 @@ private String getWindowInfo(Claim claim, AreaMarker marker) {
|
|||||||
info = "<div class=\"regioninfo\">" + this.cfg.infoWindowBasic + "</div>";
|
info = "<div class=\"regioninfo\">" + this.cfg.infoWindowBasic + "</div>";
|
||||||
}
|
}
|
||||||
info = info.replace("%owner%", ((GDClaim) claim).getOwnerName());
|
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("%area%", Integer.toString(claim.getArea()));
|
||||||
info = info.replace("%claimname%",
|
info = info.replace("%claimname%",
|
||||||
claim.getData().getName().isPresent()
|
claim.getData().getName().isPresent()
|
||||||
|
Loading…
Reference in New Issue
Block a user