From 9bd193df720dbafd632dc260f617668b2e8f5169 Mon Sep 17 00:00:00 2001 From: Trent Hensler Date: Sat, 10 Feb 2018 16:57:18 -0800 Subject: [PATCH] Separately customizable f map tooltips --- .../factions/zcore/persist/MemoryBoard.java | 2 +- src/main/resources/config.yml | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/massivecraft/factions/zcore/persist/MemoryBoard.java b/src/main/java/com/massivecraft/factions/zcore/persist/MemoryBoard.java index 1fab3c4d..428f5a95 100644 --- a/src/main/java/com/massivecraft/factions/zcore/persist/MemoryBoard.java +++ b/src/main/java/com/massivecraft/factions/zcore/persist/MemoryBoard.java @@ -320,7 +320,7 @@ public abstract class MemoryBoard extends Board { private List getToolTip(Faction faction, FPlayer to) { List ret = new ArrayList<>(); - List show = P.p.getConfig().getStringList("show"); + List show = P.p.getConfig().getStringList("map"); if (!faction.isNormal()) { String tag = faction.getTag(to); diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 47330f18..51f13a77 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -250,6 +250,25 @@ minimal-show: false show-exempt: - Put_faction_tag_here + +# THIS IS FOR /f map tool tips. + +# You can use any variable here, including fancy messages. Color codes and or tags work fine. +# Lines that arent defined wont be sent (home not set, faction not peaceful / permanent, dtr freeze) +map: + # First line can be {header} for default header, or any string (we recommend &m for smooth lines ;p) + - '{header}' + - 'Description: {description}' + - 'Joining: {joining} {peaceful}' + - 'Land / Power / Maxpower: {chunks}/{power}/{maxPower}' + - 'Founded: {create-date}' + - 'This faction is permanent, remaining even with no members.' # only shows if faction is permanent + - 'Land value: {land-value} {land-refund}' + - 'Balance: {balance}' + - 'Allies({allies}/{max-allies}): {allies-list} ' + - 'Online: ({online}/{members}): {online-list}' + - 'Offline: ({offline}/{members}): {offline-list}' + ############################################################ # +------------------------------------------------------+ # # | Configurable /f list | #