Add option to disable territory access change message. Fixes #61
This commit is contained in:
parent
da97ad1119
commit
6eca202694
@ -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);
|
||||||
|
@ -289,6 +289,8 @@ public class MConf extends Entity<MConf>
|
|||||||
|
|
||||||
public String territoryInfoChat = "<i> ~ {relcolor}{name} <i>{desc}";
|
public String territoryInfoChat = "<i> ~ {relcolor}{name} <i>{desc}";
|
||||||
|
|
||||||
|
public boolean territoryAccessShowMessage = true;
|
||||||
|
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
// ASSORTED
|
// ASSORTED
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
Loading…
Reference in New Issue
Block a user