From 913579c9f4345189c39e23f31533b8f2ccbb6823 Mon Sep 17 00:00:00 2001 From: Miles B Huff Date: Tue, 14 Apr 2020 23:48:11 -0400 Subject: [PATCH 1/2] Improved default town popup text. --- src/main/java/org/dynmap/towny/DynmapTownyPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/dynmap/towny/DynmapTownyPlugin.java b/src/main/java/org/dynmap/towny/DynmapTownyPlugin.java index ec63f89..1bd220d 100644 --- a/src/main/java/org/dynmap/towny/DynmapTownyPlugin.java +++ b/src/main/java/org/dynmap/towny/DynmapTownyPlugin.java @@ -50,7 +50,7 @@ public class DynmapTownyPlugin extends JavaPlugin { private static Logger log; - private static final String DEF_INFOWINDOW = "
%regionname% (%nation%)
Mayor %playerowners%
Associates %playermanagers%
Flags
%flags%
"; + private static final String DEF_INFOWINDOW = "

%regionname%

%board%


Founded: %founded%

Mayor: %playerowners%

Nation: %nation%


Bank: %bank%

Upkeep: %upkeep%

Resident(s): %residentcount%

"; private static final String NATION_NONE = "_none_"; Plugin dynmap; DynmapAPI api; From 46f006527aee92eea9b51a3a7033c079361be47f Mon Sep 17 00:00:00 2001 From: Miles B Huff Date: Tue, 14 Apr 2020 23:53:49 -0400 Subject: [PATCH 2/2] Added the new town popup to the default config --- src/main/resources/config.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index e7d7a48..c62fff2 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -27,7 +27,12 @@ visibility-by-town: true visibility-by-nation: true # Format for popup - substitute values for macros -infowindow: '
%regionname% (%nation%)
Mayor %playerowners%
Associates %playermanagers%
Flags
%flags%
' +infowindow: '

%regionname%

+

%board%


Founded: %founded% +

Mayor: %playerowners%

+ Nation: %nation%


Bank: %bank%

+

Upkeep: %upkeep%

Resident(s): + %residentcount%

' regionstyle: strokeColor: "#FF0000"