Add option to disable flying on pvp
This commit is contained in:
@@ -323,7 +323,10 @@ public class MConf extends Entity<MConf>
|
||||
|
||||
// At what speed can players fly with /f fly?
|
||||
public float flySpeed = 0.1f;
|
||||
|
||||
|
||||
// Will flying be disabled on pvp
|
||||
public boolean flyDisableOnPvp = false;
|
||||
|
||||
// -------------------------------------------- //
|
||||
// DENY COMMANDS
|
||||
// -------------------------------------------- //
|
||||
|
||||
@@ -805,12 +805,7 @@ public class MPlayer extends SenderEntity<MPlayer> implements FactionsParticipat
|
||||
// We clean the chunks further by removing what does not change.
|
||||
// This is also very suggested cleaning of EventFactionsChunksChange input.
|
||||
Iterator<PS> iter = chunks.iterator();
|
||||
while (iter.hasNext())
|
||||
{
|
||||
PS chunk = iter.next();
|
||||
Faction oldFaction = BoardColl.get().getFactionAt(chunk);
|
||||
if (newFaction == oldFaction) iter.remove();
|
||||
}
|
||||
chunks.removeIf(chunk -> BoardColl.get().getFactionAt(chunk) == newFaction);
|
||||
if (chunks.isEmpty())
|
||||
{
|
||||
msg("%s<i> already owns this land.", newFaction.describeTo(this, true));
|
||||
|
||||
Reference in New Issue
Block a user