Add Permissable interface for f perm compatibility.

Allows Roles and Relations to be permissable, so we can set f perms for both of those in the same map.
This commit is contained in:
Trent Hensler
2018-02-03 12:33:28 -08:00
parent 9e8205b5e2
commit 249770d2cd
6 changed files with 54 additions and 11 deletions

View File

@@ -7,6 +7,7 @@ import com.massivecraft.factions.struct.Role;
import com.massivecraft.factions.util.LazyLocation;
import com.massivecraft.factions.zcore.fperms.Access;
import com.massivecraft.factions.zcore.fperms.Action;
import com.massivecraft.factions.zcore.fperms.Permissable;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.entity.Player;
@@ -138,9 +139,11 @@ public interface Faction extends EconomyParticipator {
public int getDeaths();
public Access getAccess(FPlayer fPlayer, Action perm);
public Access getAccess(Permissable permissable, Action action);
public void setPermission(Relation relation, Action action, Access access);
public Access getAccess(FPlayer player, Action action);
public void setPermission(Permissable permissable, Action action, Access access);
public void resetPerms();