Faction Bans

Adds /f ban, /f unban, and /f banlist
Permission: factions.ban - included with factions.kithalfplayer
Also added as a /f perm that can be granted. Otherwise, defaults to faction mods.
Number of bans now shows up in f show
Banning a player will notify your faction and target player. It'll also kick the player from your faction if they are currently in it.
TODO: make /f banlist prettier
This commit is contained in:
Trent Hensler
2018-02-28 20:23:37 -08:00
parent cca207c1a5
commit 151d38fd7b
16 changed files with 360 additions and 12 deletions

View File

@@ -2,6 +2,7 @@ package com.massivecraft.factions;
import com.massivecraft.factions.iface.EconomyParticipator;
import com.massivecraft.factions.iface.RelationParticipator;
import com.massivecraft.factions.struct.BanInfo;
import com.massivecraft.factions.struct.Relation;
import com.massivecraft.factions.struct.Role;
import com.massivecraft.factions.util.LazyLocation;
@@ -56,6 +57,14 @@ public interface Faction extends EconomyParticipator {
public boolean isInvited(FPlayer fplayer);
public void ban(FPlayer target, FPlayer banner);
public void unban(FPlayer player);
public boolean isBanned(FPlayer player);
public Set<BanInfo> getBannedPlayers();
public boolean getOpen();
public void setOpen(boolean isOpen);