Package me.xxastaspastaxx.dimensions
Class DimensionsSettings
java.lang.Object
me.xxastaspastaxx.dimensions.DimensionsSettings
The class creates the config file with the defined variables inside the class for easier access to the config
-
Field Summary
Modifier and TypeFieldDescriptionstatic boolean
Allow item consumption on portal ignitestatic int
The level of the debug messages in the consolestatic boolean
Enable entities teleporting using portalsstatic boolean
Enable if a fake block is being placed at the feet of the player to play the nether portal effectstatic org.bukkit.World
The world that portals will teleport to when they dont know where to leadstatic boolean
Ignore portals that are already linked to another portalstatic boolean
Allow in order to not serach for safeSpotSearchRadius blocks in height but for the whole world heightstatic int
Radius to search for a safe place to build a portalstatic boolean
Search first for a portal facing the same axis and has the same size as the one used and then search for any portalstatic int
Search radius for nearby portalsstatic boolean
Only search for portals that are facing the same axis as the one usedstatic boolean
Only search for portals that are the same size as the one usedstatic long
Check for entities inside the portal every set ticks -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.configuration.file.FileConfiguration
Get the ./plugins/Dimensions/config.yml instance of FileConfigurationstatic void
Set the World instance of the default world after all worlds have been loaded
-
Field Details
-
searchRadius
public static int searchRadiusSearch radius for nearby portals -
searchSameAxis
public static boolean searchSameAxisOnly search for portals that are facing the same axis as the one used -
searchSameSize
public static boolean searchSameSizeOnly search for portals that are the same size as the one used -
searchFirstClonePortal
public static boolean searchFirstClonePortalSearch first for a portal facing the same axis and has the same size as the one used and then search for any portal -
ignoreLinkedPortals
public static boolean ignoreLinkedPortalsIgnore portals that are already linked to another portal -
safeSpotSearchRadius
public static int safeSpotSearchRadiusRadius to search for a safe place to build a portal -
safeSpotSearchAllY
public static boolean safeSpotSearchAllYAllow in order to not serach for safeSpotSearchRadius blocks in height but for the whole world height -
fallbackWorld
public static org.bukkit.World fallbackWorldThe world that portals will teleport to when they dont know where to lead -
debugLevel
public static int debugLevelThe level of the debug messages in the console -
enableNetherPortalEffect
public static boolean enableNetherPortalEffectEnable if a fake block is being placed at the feet of the player to play the nether portal effect -
consumeItems
public static boolean consumeItemsAllow item consumption on portal ignite -
enableEntitiesTeleport
public static boolean enableEntitiesTeleportEnable entities teleporting using portals -
updateEveryTick
public static long updateEveryTickCheck for entities inside the portal every set ticks
-
-
Constructor Details
-
DimensionsSettings
-
-
Method Details
-
setDefaultWorld
public static void setDefaultWorld()Set the World instance of the default world after all worlds have been loaded -
getConfig
public static org.bukkit.configuration.file.FileConfiguration getConfig()Get the ./plugins/Dimensions/config.yml instance of FileConfiguration
-