The Derpy overrides are MConf for sure.
This commit is contained in:
@ -731,7 +731,7 @@ public class FPlayer extends SenderEntity<FPlayer> implements EconomyParticipato
|
||||
// Checks for WorldGuard regions in the chunk attempting to be claimed
|
||||
error = Txt.parse("<b>This land is protected");
|
||||
}
|
||||
else if (ConfServer.worldsNoClaiming.contains(ps.getWorld()))
|
||||
else if (MConf.get().worldsNoClaiming.contains(ps.getWorld()))
|
||||
{
|
||||
error = Txt.parse("<b>Sorry, this world has land claiming disabled.");
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
package com.massivecraft.factions.entity;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.Set;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
@ -101,5 +102,19 @@ public class MConf extends Entity<MConf>
|
||||
public boolean handleExploitInteractionSpam = true;
|
||||
public boolean handleExploitTNTWaterlog = false;
|
||||
|
||||
// -------------------------------------------- //
|
||||
// DERPY OVERRIDES
|
||||
// -------------------------------------------- //
|
||||
// TODO: Should worldsNoPowerLoss rather be a bukkit permission node?
|
||||
// TODO: These are derpy because they possibly use an invalid design approact.
|
||||
// After universe support is added. Would some of these be removed?
|
||||
// Could it also be more customizeable using some sort of permission lookup map?
|
||||
|
||||
// mainly for other plugins/mods that use a fake player to take actions, which shouldn't be subject to our protections
|
||||
public Set<String> playersWhoBypassAllProtection = new LinkedHashSet<String>();
|
||||
|
||||
public Set<String> worldsNoClaiming = new LinkedHashSet<String>();
|
||||
public Set<String> worldsNoPowerLoss = new LinkedHashSet<String>();
|
||||
public Set<String> worldsIgnorePvP = new LinkedHashSet<String>();
|
||||
|
||||
}
|
Reference in New Issue
Block a user