Allow unclaiming all safezones and warzones in a specific world

This commit is contained in:
Joel Puig Rubio
2017-09-04 22:57:51 +02:00
parent d7a366d764
commit 08c0995741
4 changed files with 47 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
package com.massivecraft.factions;
import com.massivecraft.factions.zcore.persist.json.JSONBoard;
import org.bukkit.World;
import java.util.ArrayList;
import java.util.Set;
@@ -43,6 +44,8 @@ public abstract class Board {
public abstract void unclaimAll(String factionId);
public abstract void unclaimAllInWorld(String factionId, World world);
// Is this coord NOT completely surrounded by coords claimed by the same faction?
// Simpler: Is there any nearby coord with a faction other than the faction here?
public abstract boolean isBorderLocation(FLocation flocation);