Default FPerms Fixed
This commit is contained in:
parent
31c50473f0
commit
477041e223
@ -342,7 +342,7 @@ public class Conf {
|
||||
|
||||
|
||||
// Default Options - Is this even shown on the Conf.json?
|
||||
public static transient HashMap<String, DefaultPermissions> defaultFactionPermissions = new HashMap<>();
|
||||
public static HashMap<String, DefaultPermissions> defaultFactionPermissions = new HashMap<>();
|
||||
|
||||
//Cooldown for /f logout in seconds
|
||||
public static long logoutCooldown = 30;
|
||||
|
@ -13,7 +13,6 @@ import com.massivecraft.factions.zcore.fperms.PermissableAction;
|
||||
import com.massivecraft.factions.zcore.fupgrades.UpgradeType;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.Inventory;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
@ -29,10 +28,6 @@ public interface Faction extends EconomyParticipator {
|
||||
|
||||
void deinviteAllAlts();
|
||||
|
||||
|
||||
Map<String, Long> getBoosters();
|
||||
|
||||
|
||||
void altInvite(FPlayer fplayer);
|
||||
|
||||
boolean addAltPlayer(FPlayer fplayer);
|
||||
@ -109,8 +104,6 @@ public interface Faction extends EconomyParticipator {
|
||||
|
||||
HashMap<Integer, String> getRulesMap();
|
||||
|
||||
void setRule(int index, String rule);
|
||||
|
||||
void addRule(String rule);
|
||||
|
||||
void removeRule(int index);
|
||||
|
@ -72,7 +72,7 @@ public abstract class MemoryFaction implements Faction, EconomyParticipator {
|
||||
private long lastDeath;
|
||||
private int strikes = 0;
|
||||
private int points = 0;
|
||||
private Map<String, Long> boosters;
|
||||
|
||||
|
||||
// -------------------------------------------- //
|
||||
// Construct
|
||||
@ -94,7 +94,6 @@ public abstract class MemoryFaction implements Faction, EconomyParticipator {
|
||||
this.foundedDate = System.currentTimeMillis();
|
||||
this.maxVaults = Conf.defaultMaxVaults;
|
||||
this.defaultRole = Role.RECRUIT;
|
||||
boosters = new ConcurrentHashMap<>();
|
||||
resetPerms(); // Reset on new Faction so it has default values.
|
||||
}
|
||||
|
||||
@ -115,7 +114,6 @@ public abstract class MemoryFaction implements Faction, EconomyParticipator {
|
||||
relationWish = old.relationWish;
|
||||
claimOwnership = old.claimOwnership;
|
||||
fplayers = new HashSet<>();
|
||||
boosters = new ConcurrentHashMap<>();
|
||||
alts = new HashSet<>();
|
||||
invites = old.invites;
|
||||
announcements = old.announcements;
|
||||
@ -430,11 +428,6 @@ public abstract class MemoryFaction implements Faction, EconomyParticipator {
|
||||
chest.setContents(contents);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Long> getBoosters() {
|
||||
return this.boosters;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void setBannerPattern(ItemStack banner) {
|
||||
|
Loading…
Reference in New Issue
Block a user