From 89248928c6c0753727627b61886f0db8b20ff613 Mon Sep 17 00:00:00 2001 From: Magnus Ulf Date: Thu, 4 Mar 2021 17:15:51 +0100 Subject: [PATCH] Slightly change rules for pillaging --- .../massivecraft/factions/engine/EngineChunkChange.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/com/massivecraft/factions/engine/EngineChunkChange.java b/src/com/massivecraft/factions/engine/EngineChunkChange.java index 924c5f7e..e9c2309a 100644 --- a/src/com/massivecraft/factions/engine/EngineChunkChange.java +++ b/src/com/massivecraft/factions/engine/EngineChunkChange.java @@ -253,6 +253,14 @@ public class EngineChunkChange extends Engine return; } + // ... and they must actually be claiming ... + if (newFaction.isNone()) + { + mplayer.msg("You can't unclaim land belonging to others."); + event.setCancelled(true); + return; + } + // ... the relation may forbid ... if (oldFaction.getRelationTo(newFaction).isAtLeast(Rel.TRUCE)) {