From 11ea9bc1aab1d3981fa05b947f63c289b29c74e5 Mon Sep 17 00:00:00 2001 From: DroppingAnvil Date: Tue, 16 Jun 2020 11:59:45 -0500 Subject: [PATCH] Allow non-relational show --- src/main/java/com/massivecraft/factions/cmd/CmdShow.java | 2 +- src/main/resources/config.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/massivecraft/factions/cmd/CmdShow.java b/src/main/java/com/massivecraft/factions/cmd/CmdShow.java index 6de26d8a..ad9d375c 100644 --- a/src/main/java/com/massivecraft/factions/cmd/CmdShow.java +++ b/src/main/java/com/massivecraft/factions/cmd/CmdShow.java @@ -88,7 +88,7 @@ public class CmdShow extends FCommand { Faction finalFaction = faction; instance.getServer().getScheduler().runTaskAsynchronously(instance, () -> { for (String raw : finalShow) { - String parsed = TagUtil.parsePlain(finalFaction, context.fPlayer, raw); // use relations + String parsed = instance.getConfig().getBoolean("relational-show", true) ? TagUtil.parsePlain(finalFaction, context.fPlayer, raw) : TagUtil.parsePlain(finalFaction, raw); // use relations if (parsed == null) { continue; // Due to minimal f show. } diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index acea80da..22a193c3 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -294,6 +294,7 @@ show: - '&4* &cBans: &f{faction-bancount}' - '&8&m----------------------------------------' # For a /f show that does not display fancy messages that are essentially empty, use minimal-show +relational-show: true minimal-show: false # Factions that should be exempt from /f show, case sensitive, useful for a