Class DimensionsSettings

java.lang.Object
me.xxastaspastaxx.dimensions.DimensionsSettings

public class DimensionsSettings extends Object
The class creates the config file with the defined variables inside the class for easier access to the config
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static boolean
    Allow item consumption on portal ignite
    static int
    The level of the debug messages in the console
    static boolean
    Enable entities teleporting using portals
    static boolean
    Enable if a fake block is being placed at the feet of the player to play the nether portal effect
    static org.bukkit.World
    The world that portals will teleport to when they dont know where to lead
    static boolean
    Ignore portals that are already linked to another portal
    static boolean
    Allow in order to not serach for safeSpotSearchRadius blocks in height but for the whole world height
    static int
    Radius to search for a safe place to build a portal
    static boolean
    Search first for a portal facing the same axis and has the same size as the one used and then search for any portal
    static int
    Search radius for nearby portals
    static boolean
    Only search for portals that are facing the same axis as the one used
    static boolean
    Only search for portals that are the same size as the one used
    static long
    Check for entities inside the portal every set ticks
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.configuration.file.FileConfiguration
    Get the ./plugins/Dimensions/config.yml instance of FileConfiguration
    static void
    Set the World instance of the default world after all worlds have been loaded

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • searchRadius

      public static int searchRadius
      Search radius for nearby portals
    • searchSameAxis

      public static boolean searchSameAxis
      Only search for portals that are facing the same axis as the one used
    • searchSameSize

      public static boolean searchSameSize
      Only search for portals that are the same size as the one used
    • searchFirstClonePortal

      public static boolean searchFirstClonePortal
      Search 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 ignoreLinkedPortals
      Ignore portals that are already linked to another portal
    • safeSpotSearchRadius

      public static int safeSpotSearchRadius
      Radius to search for a safe place to build a portal
    • safeSpotSearchAllY

      public static boolean safeSpotSearchAllY
      Allow in order to not serach for safeSpotSearchRadius blocks in height but for the whole world height
    • fallbackWorld

      public static org.bukkit.World fallbackWorld
      The world that portals will teleport to when they dont know where to lead
    • debugLevel

      public static int debugLevel
      The level of the debug messages in the console
    • enableNetherPortalEffect

      public static boolean enableNetherPortalEffect
      Enable if a fake block is being placed at the feet of the player to play the nether portal effect
    • consumeItems

      public static boolean consumeItems
      Allow item consumption on portal ignite
    • enableEntitiesTeleport

      public static boolean enableEntitiesTeleport
      Enable entities teleporting using portals
    • updateEveryTick

      public static long updateEveryTick
      Check for entities inside the portal every set ticks
  • Constructor Details

    • DimensionsSettings

      public DimensionsSettings(Dimensions main)
  • 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