From 6eca2026944da3e7beedf434c84cfc62abcbc90a Mon Sep 17 00:00:00 2001 From: Magnus Ulf Date: Sat, 12 Oct 2019 13:12:54 +0200 Subject: [PATCH] Add option to disable territory access change message. Fixes #61 --- src/com/massivecraft/factions/engine/EngineMoveChunk.java | 2 ++ src/com/massivecraft/factions/entity/MConf.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/com/massivecraft/factions/engine/EngineMoveChunk.java b/src/com/massivecraft/factions/engine/EngineMoveChunk.java index 2469a144..1be2d854 100644 --- a/src/com/massivecraft/factions/engine/EngineMoveChunk.java +++ b/src/com/massivecraft/factions/engine/EngineMoveChunk.java @@ -107,6 +107,8 @@ public class EngineMoveChunk extends Engine private static void sendTerritoryAccessMessage(MPlayer mplayer, PS psFrom, PS psTo) { + if (!MConf.get().territoryAccessShowMessage) return; + // Get TerritoryAccess for from & to chunks TerritoryAccess accessFrom = BoardColl.get().getTerritoryAccessAt(psFrom); TerritoryAccess accessTo = BoardColl.get().getTerritoryAccessAt(psTo); diff --git a/src/com/massivecraft/factions/entity/MConf.java b/src/com/massivecraft/factions/entity/MConf.java index 8fae4bbc..f99d71e8 100644 --- a/src/com/massivecraft/factions/entity/MConf.java +++ b/src/com/massivecraft/factions/entity/MConf.java @@ -288,6 +288,8 @@ public class MConf extends Entity public int territoryInfoTitleTicksOut = 5; public String territoryInfoChat = " ~ {relcolor}{name} {desc}"; + + public boolean territoryAccessShowMessage = true; // -------------------------------------------- // // ASSORTED