Add option to disable territory access change message. Fixes #61

This commit is contained in:
Magnus Ulf 2019-10-12 13:12:54 +02:00
parent da97ad1119
commit 6eca202694
2 changed files with 4 additions and 0 deletions

View File

@ -107,6 +107,8 @@ public class EngineMoveChunk extends Engine
private static void sendTerritoryAccessMessage(MPlayer mplayer, PS psFrom, PS psTo) private static void sendTerritoryAccessMessage(MPlayer mplayer, PS psFrom, PS psTo)
{ {
if (!MConf.get().territoryAccessShowMessage) return;
// Get TerritoryAccess for from & to chunks // Get TerritoryAccess for from & to chunks
TerritoryAccess accessFrom = BoardColl.get().getTerritoryAccessAt(psFrom); TerritoryAccess accessFrom = BoardColl.get().getTerritoryAccessAt(psFrom);
TerritoryAccess accessTo = BoardColl.get().getTerritoryAccessAt(psTo); TerritoryAccess accessTo = BoardColl.get().getTerritoryAccessAt(psTo);

View File

@ -288,6 +288,8 @@ public class MConf extends Entity<MConf>
public int territoryInfoTitleTicksOut = 5; public int territoryInfoTitleTicksOut = 5;
public String territoryInfoChat = "<i> ~ {relcolor}{name} <i>{desc}"; public String territoryInfoChat = "<i> ~ {relcolor}{name} <i>{desc}";
public boolean territoryAccessShowMessage = true;
// -------------------------------------------- // // -------------------------------------------- //
// ASSORTED // ASSORTED