2011-07-18 22:06:02 +02:00
package com.massivecraft.factions ;
2011-02-06 13:36:11 +01:00
2014-12-05 06:04:00 +01:00
import com.google.common.collect.ImmutableMap ;
import com.massivecraft.factions.integration.dynmap.DynmapStyle ;
2014-04-05 22:42:01 +02:00
import org.bukkit.ChatColor ;
import org.bukkit.Material ;
2012-03-09 21:46:46 +01:00
import org.bukkit.entity.EntityType ;
2011-07-18 22:06:02 +02:00
2014-04-04 20:55:21 +02:00
import java.util.* ;
public class Conf {
2014-08-05 17:17:27 +02:00
2017-12-19 11:18:13 +01:00
public static List < String > baseCommandAliases = new ArrayList < > ( ) ;
2014-04-04 20:55:21 +02:00
public static boolean allowNoSlashCommand = true ;
// Colors
public static ChatColor colorMember = ChatColor . GREEN ;
public static ChatColor colorAlly = ChatColor . LIGHT_PURPLE ;
2015-01-23 03:30:40 +01:00
public static ChatColor colorTruce = ChatColor . DARK_PURPLE ;
2014-04-04 20:55:21 +02:00
public static ChatColor colorNeutral = ChatColor . WHITE ;
public static ChatColor colorEnemy = ChatColor . RED ;
public static ChatColor colorPeaceful = ChatColor . GOLD ;
2018-04-04 05:20:30 +02:00
public static ChatColor colorWilderness = ChatColor . GREEN ;
2018-03-20 07:00:47 +01:00
public static ChatColor colorSafezone = ChatColor . GOLD ;
2014-04-04 20:55:21 +02:00
public static ChatColor colorWar = ChatColor . DARK_RED ;
// Power
public static double powerPlayerMax = 10 . 0 ;
public static double powerPlayerMin = - 10 . 0 ;
public static double powerPlayerStarting = 0 . 0 ;
public static double powerPerMinute = 0 . 2 ; // Default health rate... it takes 5 min to heal one power
public static double powerPerDeath = 4 . 0 ; // A death makes you lose 4 power
public static boolean powerRegenOffline = false ; // does player power regenerate even while they're offline?
public static double powerOfflineLossPerDay = 0 . 0 ; // players will lose this much power per day offline
public static double powerOfflineLossLimit = 0 . 0 ; // players will no longer lose power from being offline once their power drops to this amount or less
public static double powerFactionMax = 0 . 0 ; // if greater than 0, the cap on how much power a faction can have (additional power from players beyond that will act as a "buffer" of sorts)
2018-03-26 23:43:15 +02:00
public static String prefixAdmin = " *** " ;
public static String prefixCoLeader = " ** " ;
2014-04-04 20:55:21 +02:00
public static String prefixMod = " * " ;
2018-01-05 02:17:26 +01:00
public static String prefixRecruit = " - " ;
public static String prefixNormal = " + " ;
2014-04-04 20:55:21 +02:00
public static int factionTagLengthMin = 3 ;
public static int factionTagLengthMax = 10 ;
public static boolean factionTagForceUpperCase = false ;
public static boolean newFactionsDefaultOpen = false ;
// when faction membership hits this limit, players will no longer be able to join using /f join; default is 0, no limit
public static int factionMemberLimit = 0 ;
// what faction ID to start new players in when they first join the server; default is 0, "no faction"
public static String newPlayerStartingFactionID = " 0 " ;
public static boolean showMapFactionKey = true ;
public static boolean showNeutralFactionsOnMap = true ;
public static boolean showEnemyFactionsOnMap = true ;
// Disallow joining/leaving/kicking while power is negative
public static boolean canLeaveWithNegativePower = true ;
// Configuration for faction-only chat
public static boolean factionOnlyChat = true ;
// Configuration on the Faction tag in chat messages.
public static boolean chatTagEnabled = true ;
public static transient boolean chatTagHandledByAnotherPlugin = false ;
public static boolean chatTagRelationColored = true ;
public static String chatTagReplaceString = " [FACTION] " ;
public static String chatTagInsertAfterString = " " ;
public static String chatTagInsertBeforeString = " " ;
2015-01-16 17:01:26 +01:00
public static int chatTagInsertIndex = 0 ;
2014-04-04 20:55:21 +02:00
public static boolean chatTagPadBefore = false ;
public static boolean chatTagPadAfter = true ;
public static String chatTagFormat = " %s " + ChatColor . WHITE ;
public static String factionChatFormat = " %s: " + ChatColor . WHITE + " %s " ;
public static String allianceChatFormat = ChatColor . LIGHT_PURPLE + " %s: " + ChatColor . WHITE + " %s " ;
2015-01-23 03:30:40 +01:00
public static String truceChatFormat = ChatColor . DARK_PURPLE + " %s: " + ChatColor . WHITE + " %s " ;
2018-03-05 03:57:27 +01:00
public static String modChatFormat = ChatColor . RED + " %s: " + ChatColor . WHITE + " %s " ;
2014-04-04 20:55:21 +02:00
2018-04-09 05:13:41 +02:00
public static int enemyFlyCheckRadius = 16 ;
public static boolean noEnderpearlsInFly = false ;
2014-04-04 20:55:21 +02:00
public static boolean broadcastDescriptionChanges = false ;
2015-12-11 04:05:42 +01:00
public static boolean broadcastTagChanges = false ;
2014-04-04 20:55:21 +02:00
public static double saveToFileEveryXMinutes = 30 . 0 ;
public static double autoLeaveAfterDaysOfInactivity = 10 . 0 ;
public static double autoLeaveRoutineRunsEveryXMinutes = 5 . 0 ;
public static int autoLeaveRoutineMaxMillisecondsPerTick = 5 ; // 1 server tick is roughly 50ms, so default max 10% of a tick
public static boolean removePlayerDataWhenBanned = true ;
2015-01-27 18:17:43 +01:00
public static boolean autoLeaveDeleteFPlayerData = true ; // Let them just remove player from Faction.
2014-04-04 20:55:21 +02:00
public static boolean worldGuardChecking = false ;
public static boolean worldGuardBuildPriority = false ;
// server logging options
public static boolean logFactionCreate = true ;
public static boolean logFactionDisband = true ;
public static boolean logFactionJoin = true ;
public static boolean logFactionKick = true ;
public static boolean logFactionLeave = true ;
public static boolean logLandClaims = true ;
public static boolean logLandUnclaims = true ;
public static boolean logMoneyTransactions = true ;
public static boolean logPlayerCommands = true ;
// prevent some potential exploits
public static boolean handleExploitObsidianGenerators = true ;
public static boolean handleExploitEnderPearlClipping = true ;
public static boolean handleExploitInteractionSpam = true ;
public static boolean handleExploitTNTWaterlog = false ;
2015-05-12 18:08:42 +02:00
public static boolean handleExploitLiquidFlow = false ;
2014-04-04 20:55:21 +02:00
public static boolean homesEnabled = true ;
public static boolean homesMustBeInClaimedTerritory = true ;
public static boolean homesTeleportToOnDeath = true ;
public static boolean homesRespawnFromNoPowerLossWorlds = true ;
public static boolean homesTeleportCommandEnabled = true ;
public static boolean homesTeleportCommandEssentialsIntegration = true ;
public static boolean homesTeleportCommandSmokeEffectEnabled = true ;
public static float homesTeleportCommandSmokeEffectThickness = 3f ;
public static boolean homesTeleportAllowedFromEnemyTerritory = true ;
public static boolean homesTeleportAllowedFromDifferentWorld = true ;
public static double homesTeleportAllowedEnemyDistance = 32 . 0 ;
public static boolean homesTeleportIgnoreEnemiesIfInOwnTerritory = true ;
public static boolean disablePVPBetweenNeutralFactions = false ;
public static boolean disablePVPForFactionlessPlayers = false ;
public static boolean enablePVPAgainstFactionlessInAttackersLand = false ;
public static int noPVPDamageToOthersForXSecondsAfterLogin = 3 ;
public static boolean peacefulTerritoryDisablePVP = true ;
public static boolean peacefulTerritoryDisableMonsters = false ;
2015-09-08 19:55:42 +02:00
public static boolean peacefulTerritoryDisableBoom = false ;
2014-04-04 20:55:21 +02:00
public static boolean peacefulMembersDisablePowerLoss = true ;
public static boolean permanentFactionsDisableLeaderPromotion = false ;
public static boolean claimsMustBeConnected = false ;
public static boolean claimsCanBeUnconnectedIfOwnedByOtherFaction = true ;
public static int claimsRequireMinFactionMembers = 1 ;
public static int claimedLandsMax = 0 ;
2015-01-23 05:38:46 +01:00
public static int lineClaimLimit = 5 ;
2014-04-04 20:55:21 +02:00
// if someone is doing a radius claim and the process fails to claim land this many times in a row, it will exit
public static int radiusClaimFailureLimit = 9 ;
public static double considerFactionsReallyOfflineAfterXMinutes = 0 . 0 ;
public static int actionDeniedPainAmount = 1 ;
// commands which will be prevented if the player is a member of a permanent faction
2017-12-19 11:18:13 +01:00
public static Set < String > permanentFactionMemberDenyCommands = new LinkedHashSet < > ( ) ;
2014-04-04 20:55:21 +02:00
// commands which will be prevented when in claimed territory of another faction
2017-12-19 11:18:13 +01:00
public static Set < String > territoryNeutralDenyCommands = new LinkedHashSet < > ( ) ;
public static Set < String > territoryEnemyDenyCommands = new LinkedHashSet < > ( ) ;
public static Set < String > territoryAllyDenyCommands = new LinkedHashSet < > ( ) ;
public static Set < String > warzoneDenyCommands = new LinkedHashSet < > ( ) ;
public static Set < String > wildernessDenyCommands = new LinkedHashSet < > ( ) ;
2014-04-04 20:55:21 +02:00
public static boolean territoryDenyBuild = true ;
public static boolean territoryDenyBuildWhenOffline = true ;
public static boolean territoryPainBuild = false ;
public static boolean territoryPainBuildWhenOffline = false ;
public static boolean territoryDenyUseage = true ;
public static boolean territoryEnemyDenyBuild = true ;
public static boolean territoryEnemyDenyBuildWhenOffline = true ;
public static boolean territoryEnemyPainBuild = false ;
public static boolean territoryEnemyPainBuildWhenOffline = false ;
public static boolean territoryEnemyDenyUseage = true ;
public static boolean territoryEnemyProtectMaterials = true ;
public static boolean territoryAllyDenyBuild = true ;
public static boolean territoryAllyDenyBuildWhenOffline = true ;
public static boolean territoryAllyPainBuild = false ;
public static boolean territoryAllyPainBuildWhenOffline = false ;
public static boolean territoryAllyDenyUseage = true ;
public static boolean territoryAllyProtectMaterials = true ;
2015-01-23 03:30:40 +01:00
public static boolean territoryTruceDenyBuild = true ;
public static boolean territoryTruceDenyBuildWhenOffline = true ;
public static boolean territoryTrucePainBuild = false ;
public static boolean territoryTrucePainBuildWhenOffline = false ;
public static boolean territoryTruceDenyUseage = true ;
public static boolean territoryTruceProtectMaterials = true ;
2014-04-04 20:55:21 +02:00
public static boolean territoryBlockCreepers = false ;
public static boolean territoryBlockCreepersWhenOffline = false ;
public static boolean territoryBlockFireballs = false ;
public static boolean territoryBlockFireballsWhenOffline = false ;
public static boolean territoryBlockTNT = false ;
public static boolean territoryBlockTNTWhenOffline = false ;
public static boolean territoryDenyEndermanBlocks = true ;
public static boolean territoryDenyEndermanBlocksWhenOffline = true ;
public static boolean safeZoneDenyBuild = true ;
public static boolean safeZoneDenyUseage = true ;
public static boolean safeZoneBlockTNT = true ;
public static boolean safeZonePreventAllDamageToPlayers = false ;
public static boolean safeZoneDenyEndermanBlocks = true ;
public static boolean warZoneDenyBuild = true ;
public static boolean warZoneDenyUseage = true ;
public static boolean warZoneBlockCreepers = false ;
public static boolean warZoneBlockFireballs = false ;
public static boolean warZoneBlockTNT = true ;
public static boolean warZonePowerLoss = true ;
public static boolean warZoneFriendlyFire = false ;
public static boolean warZoneDenyEndermanBlocks = true ;
public static boolean wildernessDenyBuild = false ;
public static boolean wildernessDenyUseage = false ;
public static boolean wildernessBlockCreepers = false ;
public static boolean wildernessBlockFireballs = false ;
public static boolean wildernessBlockTNT = false ;
public static boolean wildernessPowerLoss = true ;
public static boolean wildernessDenyEndermanBlocks = false ;
// for claimed areas where further faction-member ownership can be defined
public static boolean ownedAreasEnabled = true ;
public static int ownedAreasLimitPerFaction = 0 ;
public static boolean ownedAreasModeratorsCanSet = false ;
public static boolean ownedAreaModeratorsBypass = true ;
public static boolean ownedAreaDenyBuild = true ;
public static boolean ownedAreaPainBuild = false ;
public static boolean ownedAreaProtectMaterials = true ;
public static boolean ownedAreaDenyUseage = true ;
public static boolean ownedMessageOnBorder = true ;
public static boolean ownedMessageInsideTerritory = true ;
public static boolean ownedMessageByChunk = false ;
public static boolean pistonProtectionThroughDenyBuild = true ;
public static Set < Material > territoryProtectedMaterials = EnumSet . noneOf ( Material . class ) ;
public static Set < Material > territoryDenyUseageMaterials = EnumSet . noneOf ( Material . class ) ;
public static Set < Material > territoryProtectedMaterialsWhenOffline = EnumSet . noneOf ( Material . class ) ;
public static Set < Material > territoryDenyUseageMaterialsWhenOffline = EnumSet . noneOf ( Material . class ) ;
public static transient Set < EntityType > safeZoneNerfedCreatureTypes = EnumSet . noneOf ( EntityType . class ) ;
// Economy settings
public static boolean econEnabled = false ;
public static String econUniverseAccount = " " ;
public static double econCostClaimWilderness = 30 . 0 ;
public static double econCostClaimFromFactionBonus = 30 . 0 ;
2015-09-08 19:04:20 +02:00
public static double econOverclaimRewardMultiplier = 0 . 0 ;
2014-04-04 20:55:21 +02:00
public static double econClaimAdditionalMultiplier = 0 . 5 ;
public static double econClaimRefundMultiplier = 0 . 7 ;
public static double econClaimUnconnectedFee = 0 . 0 ;
public static double econCostCreate = 100 . 0 ;
public static double econCostOwner = 15 . 0 ;
public static double econCostSethome = 30 . 0 ;
public static double econCostJoin = 0 . 0 ;
public static double econCostLeave = 0 . 0 ;
public static double econCostKick = 0 . 0 ;
public static double econCostInvite = 0 . 0 ;
public static double econCostHome = 0 . 0 ;
public static double econCostTag = 0 . 0 ;
public static double econCostDesc = 0 . 0 ;
public static double econCostTitle = 0 . 0 ;
public static double econCostList = 0 . 0 ;
public static double econCostMap = 0 . 0 ;
public static double econCostPower = 0 . 0 ;
public static double econCostShow = 0 . 0 ;
2015-05-13 05:16:47 +02:00
public static double econCostStuck = 0 . 0 ;
2014-04-04 20:55:21 +02:00
public static double econCostOpen = 0 . 0 ;
public static double econCostAlly = 0 . 0 ;
2015-01-23 03:30:40 +01:00
public static double econCostTruce = 0 . 0 ;
2014-04-04 20:55:21 +02:00
public static double econCostEnemy = 0 . 0 ;
public static double econCostNeutral = 0 . 0 ;
public static double econCostNoBoom = 0 . 0 ;
2014-12-05 06:04:00 +01:00
// -------------------------------------------- //
// INTEGRATION: DYNMAP
// -------------------------------------------- //
// Should the dynmap intagration be used?
public static boolean dynmapUse = false ;
// Name of the Factions layer
public static String dynmapLayerName = " Factions " ;
// Should the layer be visible per default
public static boolean dynmapLayerVisible = true ;
// Ordering priority in layer menu (low goes before high - default is 0)
public static int dynmapLayerPriority = 2 ;
// (optional) set minimum zoom level before layer is visible (0 = default, always visible)
public static int dynmapLayerMinimumZoom = 0 ;
// Format for popup - substitute values for macros
2014-12-08 22:00:20 +01:00
public static String dynmapDescription =
2018-01-05 02:40:27 +01:00
" <div class= \" infowindow \" > \ n "
+ " <span style= \" font-weight: bold; font-size: 150%; \" >%name%</span><br> \ n "
+ " <span style= \" font-style: italic; font-size: 110%; \" >%description%</span><br> "
+ " <br> \ n "
+ " <span style= \" font-weight: bold; \" >Leader:</span> %players.leader%<br> \ n "
+ " <span style= \" font-weight: bold; \" >Admins:</span> %players.admins.count%<br> \ n "
+ " <span style= \" font-weight: bold; \" >Moderators:</span> %players.moderators.count%<br> \ n "
+ " <span style= \" font-weight: bold; \" >Members:</span> %players.normals.count%<br> \ n "
+ " <span style= \" font-weight: bold; \" >TOTAL:</span> %players.count%<br> \ n "
+ " </br> \ n "
+ " <span style= \" font-weight: bold; \" >Bank:</span> %money%<br> \ n "
+ " <br> \ n "
+ " </div> " ;
2014-12-05 06:04:00 +01:00
// Enable the %money% macro. Only do this if you know your economy manager is thread-safe.
public static boolean dynmapDescriptionMoney = false ;
// Allow players in faction to see one another on Dynmap (only relevant if Dynmap has 'player-info-protected' enabled)
public static boolean dynmapVisibilityByFaction = true ;
// Optional setting to limit which regions to show.
// If empty all regions are shown.
// Specify Faction either by name or UUID.
// To show all regions on a given world, add 'world:<worldname>' to the list.
2017-12-19 11:18:13 +01:00
public static Set < String > dynmapVisibleFactions = new HashSet < > ( ) ;
2014-12-05 06:04:00 +01:00
// Optional setting to hide specific Factions.
// Specify Faction either by name or UUID.
// To hide all regions on a given world, add 'world:<worldname>' to the list.
2017-12-19 11:18:13 +01:00
public static Set < String > dynmapHiddenFactions = new HashSet < > ( ) ;
2014-12-05 06:04:00 +01:00
// Region Style
public static final transient String DYNMAP_STYLE_LINE_COLOR = " #00FF00 " ;
public static final transient double DYNMAP_STYLE_LINE_OPACITY = 0 . 8D ;
public static final transient int DYNMAP_STYLE_LINE_WEIGHT = 3 ;
public static final transient String DYNMAP_STYLE_FILL_COLOR = " #00FF00 " ;
public static final transient double DYNMAP_STYLE_FILL_OPACITY = 0 . 35D ;
public static final transient String DYNMAP_STYLE_HOME_MARKER = " greenflag " ;
public static final transient boolean DYNMAP_STYLE_BOOST = false ;
2014-12-08 22:00:20 +01:00
public static DynmapStyle dynmapDefaultStyle = new DynmapStyle ( )
. setStrokeColor ( DYNMAP_STYLE_LINE_COLOR )
. setLineOpacity ( DYNMAP_STYLE_LINE_OPACITY )
. setLineWeight ( DYNMAP_STYLE_LINE_WEIGHT )
. setFillColor ( DYNMAP_STYLE_FILL_COLOR )
. setFillOpacity ( DYNMAP_STYLE_FILL_OPACITY )
. setHomeMarker ( DYNMAP_STYLE_HOME_MARKER )
. setBoost ( DYNMAP_STYLE_BOOST ) ;
2014-12-05 06:04:00 +01:00
// Optional per Faction style overrides. Any defined replace those in dynmapDefaultStyle.
// Specify Faction either by name or UUID.
2014-12-08 22:00:20 +01:00
public static Map < String , DynmapStyle > dynmapFactionStyles = ImmutableMap . of (
" SafeZone " , new DynmapStyle ( ) . setStrokeColor ( " #FF00FF " ) . setFillColor ( " #FF00FF " ) . setBoost ( false ) ,
" WarZone " , new DynmapStyle ( ) . setStrokeColor ( " #FF0000 " ) . setFillColor ( " #FF0000 " ) . setBoost ( false )
) ;
2014-12-05 06:04:00 +01:00
2014-04-04 20:55:21 +02:00
//Faction banks, to pay for land claiming and other costs instead of individuals paying for them
public static boolean bankEnabled = true ;
public static boolean bankMembersCanWithdraw = false ; //Have to be at least moderator to withdraw or pay money to another faction
public static boolean bankFactionPaysCosts = true ; //The faction pays for faction command costs, such as sethome
public static boolean bankFactionPaysLandCosts = true ; //The faction pays for land claiming costs.
// mainly for other plugins/mods that use a fake player to take actions, which shouldn't be subject to our protections
2017-12-19 11:18:13 +01:00
public static Set < String > playersWhoBypassAllProtection = new LinkedHashSet < > ( ) ;
2014-04-04 20:55:21 +02:00
2017-12-19 11:18:13 +01:00
public static Set < String > worldsNoClaiming = new LinkedHashSet < > ( ) ;
public static Set < String > worldsNoPowerLoss = new LinkedHashSet < > ( ) ;
public static Set < String > worldsIgnorePvP = new LinkedHashSet < > ( ) ;
public static Set < String > worldsNoWildernessProtection = new LinkedHashSet < > ( ) ;
2014-04-04 20:55:21 +02:00
2016-05-31 01:22:45 +02:00
// faction-<factionId>
public static String vaultPrefix = " faction-%s " ;
2016-05-31 02:21:11 +02:00
public static int defaultMaxVaults = 0 ;
2016-05-31 01:22:45 +02:00
2014-10-19 07:37:25 +02:00
public static Backend backEnd = Backend . JSON ;
2018-02-11 01:20:13 +01:00
// Taller and wider for "bigger f map"
2018-02-13 19:55:03 +01:00
public static int mapHeight = 17 ;
public static int mapWidth = 49 ;
2014-10-19 07:37:25 +02:00
public static transient char [ ] mapKeyChrs = " \\ /#$%=&^ABCDEFGHJKLMNOPQRSTUVWXYZ1234567890abcdeghjmnopqrsuvwxyz? " . toCharArray ( ) ;
2014-04-04 20:55:21 +02:00
static {
baseCommandAliases . add ( " f " ) ;
2014-07-01 22:10:18 +02:00
territoryEnemyDenyCommands . add ( " home " ) ;
territoryEnemyDenyCommands . add ( " sethome " ) ;
territoryEnemyDenyCommands . add ( " spawn " ) ;
territoryEnemyDenyCommands . add ( " tpahere " ) ;
territoryEnemyDenyCommands . add ( " tpaccept " ) ;
territoryEnemyDenyCommands . add ( " tpa " ) ;
territoryProtectedMaterials . add ( Material . WOODEN_DOOR ) ;
territoryProtectedMaterials . add ( Material . TRAP_DOOR ) ;
territoryProtectedMaterials . add ( Material . FENCE_GATE ) ;
territoryProtectedMaterials . add ( Material . DISPENSER ) ;
territoryProtectedMaterials . add ( Material . CHEST ) ;
territoryProtectedMaterials . add ( Material . FURNACE ) ;
2014-04-04 20:55:21 +02:00
territoryProtectedMaterials . add ( Material . BURNING_FURNACE ) ;
territoryProtectedMaterials . add ( Material . DIODE_BLOCK_OFF ) ;
2014-07-01 22:10:18 +02:00
territoryProtectedMaterials . add ( Material . DIODE_BLOCK_ON ) ;
territoryProtectedMaterials . add ( Material . JUKEBOX ) ;
2014-04-04 20:55:21 +02:00
territoryProtectedMaterials . add ( Material . BREWING_STAND ) ;
2014-07-01 22:10:18 +02:00
territoryProtectedMaterials . add ( Material . ENCHANTMENT_TABLE ) ;
territoryProtectedMaterials . add ( Material . CAULDRON ) ;
territoryProtectedMaterials . add ( Material . SOIL ) ;
territoryProtectedMaterials . add ( Material . BEACON ) ;
territoryProtectedMaterials . add ( Material . ANVIL ) ;
territoryProtectedMaterials . add ( Material . TRAPPED_CHEST ) ;
territoryProtectedMaterials . add ( Material . DROPPER ) ;
territoryProtectedMaterials . add ( Material . HOPPER ) ;
territoryDenyUseageMaterials . add ( Material . FIREBALL ) ;
territoryDenyUseageMaterials . add ( Material . FLINT_AND_STEEL ) ;
territoryDenyUseageMaterials . add ( Material . BUCKET ) ;
territoryDenyUseageMaterials . add ( Material . WATER_BUCKET ) ;
2014-04-04 20:55:21 +02:00
territoryDenyUseageMaterials . add ( Material . LAVA_BUCKET ) ;
territoryProtectedMaterialsWhenOffline . add ( Material . WOODEN_DOOR ) ;
territoryProtectedMaterialsWhenOffline . add ( Material . TRAP_DOOR ) ;
territoryProtectedMaterialsWhenOffline . add ( Material . FENCE_GATE ) ;
territoryProtectedMaterialsWhenOffline . add ( Material . DISPENSER ) ;
territoryProtectedMaterialsWhenOffline . add ( Material . CHEST ) ;
territoryProtectedMaterialsWhenOffline . add ( Material . FURNACE ) ;
territoryProtectedMaterialsWhenOffline . add ( Material . BURNING_FURNACE ) ;
territoryProtectedMaterialsWhenOffline . add ( Material . DIODE_BLOCK_OFF ) ;
territoryProtectedMaterialsWhenOffline . add ( Material . DIODE_BLOCK_ON ) ;
territoryProtectedMaterialsWhenOffline . add ( Material . JUKEBOX ) ;
territoryProtectedMaterialsWhenOffline . add ( Material . BREWING_STAND ) ;
territoryProtectedMaterialsWhenOffline . add ( Material . ENCHANTMENT_TABLE ) ;
territoryProtectedMaterialsWhenOffline . add ( Material . CAULDRON ) ;
territoryProtectedMaterialsWhenOffline . add ( Material . SOIL ) ;
territoryProtectedMaterialsWhenOffline . add ( Material . BEACON ) ;
territoryProtectedMaterialsWhenOffline . add ( Material . ANVIL ) ;
territoryProtectedMaterialsWhenOffline . add ( Material . TRAPPED_CHEST ) ;
territoryProtectedMaterialsWhenOffline . add ( Material . DROPPER ) ;
territoryProtectedMaterialsWhenOffline . add ( Material . HOPPER ) ;
territoryDenyUseageMaterialsWhenOffline . add ( Material . FIREBALL ) ;
territoryDenyUseageMaterialsWhenOffline . add ( Material . FLINT_AND_STEEL ) ;
territoryDenyUseageMaterialsWhenOffline . add ( Material . BUCKET ) ;
territoryDenyUseageMaterialsWhenOffline . add ( Material . WATER_BUCKET ) ;
territoryDenyUseageMaterialsWhenOffline . add ( Material . LAVA_BUCKET ) ;
2014-07-01 22:10:18 +02:00
safeZoneNerfedCreatureTypes . add ( EntityType . BLAZE ) ;
safeZoneNerfedCreatureTypes . add ( EntityType . CAVE_SPIDER ) ;
safeZoneNerfedCreatureTypes . add ( EntityType . CREEPER ) ;
safeZoneNerfedCreatureTypes . add ( EntityType . ENDER_DRAGON ) ;
safeZoneNerfedCreatureTypes . add ( EntityType . ENDERMAN ) ;
safeZoneNerfedCreatureTypes . add ( EntityType . GHAST ) ;
safeZoneNerfedCreatureTypes . add ( EntityType . MAGMA_CUBE ) ;
safeZoneNerfedCreatureTypes . add ( EntityType . PIG_ZOMBIE ) ;
safeZoneNerfedCreatureTypes . add ( EntityType . SILVERFISH ) ;
safeZoneNerfedCreatureTypes . add ( EntityType . SKELETON ) ;
safeZoneNerfedCreatureTypes . add ( EntityType . SPIDER ) ;
safeZoneNerfedCreatureTypes . add ( EntityType . SLIME ) ;
safeZoneNerfedCreatureTypes . add ( EntityType . WITCH ) ;
safeZoneNerfedCreatureTypes . add ( EntityType . WITHER ) ;
2014-04-04 20:55:21 +02:00
safeZoneNerfedCreatureTypes . add ( EntityType . ZOMBIE ) ;
}
// -------------------------------------------- //
// Persistance
// -------------------------------------------- //
private static transient Conf i = new Conf ( ) ;
public static void load ( ) {
P . p . persist . loadOrSaveDefault ( i , Conf . class , " conf " ) ;
}
public static void save ( ) {
P . p . persist . save ( i ) ;
}
2014-10-19 07:37:25 +02:00
public enum Backend {
JSON ,
//MYSQL, TODO
;
}
2011-02-06 13:36:11 +01:00
}
2011-03-23 12:00:38 +01:00