Class Settings

java.lang.Object
studio.magemonkey.genesis.settings.Settings

public class Settings extends Object
  • Field Details

    • HIDE_ITEMS_PLAYERS_DONT_HAVE_PERMISSIONS_FOR

      public static final int HIDE_ITEMS_PLAYERS_DONT_HAVE_PERMISSIONS_FOR
      See Also:
    • ALLOW_UNSAFE_ENCHANTMENTS

      public static final int ALLOW_UNSAFE_ENCHANTMENTS
      See Also:
    • ALLOW_SELLING_GREATER_ENCHANTS

      public static final int ALLOW_SELLING_GREATER_ENCHANTS
      See Also:
    • CLOSE_SHOP_AFTER_PURCHASE

      public static final int CLOSE_SHOP_AFTER_PURCHASE
      See Also:
    • CLICK_DELAY

      public static final int CLICK_DELAY
      See Also:
    • SOUND_SHOPITEM_PURCHASE

      public static final int SOUND_SHOPITEM_PURCHASE
      See Also:
    • SOUND_SHOPITEM_CLICK

      public static final int SOUND_SHOPITEM_CLICK
      See Also:
    • SOUND_SHOPITEM_NOPERMISSION

      public static final int SOUND_SHOPITEM_NOPERMISSION
      See Also:
    • SOUND_SHOPITEM_NOTENOUGHMONEY

      public static final int SOUND_SHOPITEM_NOTENOUGHMONEY
      See Also:
    • SOUND_SHOP_OPEN

      public static final int SOUND_SHOP_OPEN
      See Also:
    • SOUND_SHOP_CLOSE

      public static final int SOUND_SHOP_CLOSE
      See Also:
    • SOUND_SHOP_CHANGE_PAGE

      public static final int SOUND_SHOP_CHANGE_PAGE
      See Also:
    • SOUND_SHOP_CHANGE_SHOP

      public static final int SOUND_SHOP_CHANGE_SHOP
      See Also:
  • Constructor Details

    • Settings

      public Settings()
  • Method Details

    • loadConfig

      public void loadConfig(org.bukkit.configuration.ConfigurationSection config)
      Load configuration settings from config
      Parameters:
      config - config to load from
    • update

      public void update(Object o)
      Update a config
      Parameters:
      o - config
    • update

      public void update()
      Update config
    • getProperty

      public SettingsProperty getProperty(int id)
      Get property
      Parameters:
      id - id of property
      Returns:
      property
    • getPropertyBoolean

      public boolean getPropertyBoolean(int id, Object input)
      Get property boolean
      Parameters:
      id - id of property
      input - object to get
      Returns:
      boolean
    • getPropertyInt

      public int getPropertyInt(int id, Object input, int def)
      Get property int
      Parameters:
      id - id of property
      input - object to get
      def - default
      Returns:
      int
    • getPropertyString

      public String getPropertyString(int id, Object input, String def)
      Get property string
      Parameters:
      id - id of property
      input - object to get
      def - default
      Returns:
      string
    • setPurchaseAsyncEnabled

      public void setPurchaseAsyncEnabled(boolean b)
    • setServerPingingEnabled

      public void setServerPingingEnabled(boolean b)
    • getMetricsEnabled

      public boolean getMetricsEnabled()
    • setMetricsEnabled

      public void setMetricsEnabled(boolean b)
    • getShopCommandsEnabled

      public boolean getShopCommandsEnabled()
    • setShopCommandsEnabled

      public void setShopCommandsEnabled(boolean b)
    • getSignsEnabled

      public boolean getSignsEnabled()
    • setSignsEnabled

      public void setSignsEnabled(boolean b)
    • getMoneyEnabled

      public boolean getMoneyEnabled()
    • getPointsEnabled

      public boolean getPointsEnabled()
    • getVaultEnabled

      public boolean getVaultEnabled()
    • getPermissionsEnabled

      public boolean getPermissionsEnabled()
    • getPurchaseAsync

      public boolean getPurchaseAsync()
    • getExpUseLevel

      public boolean getExpUseLevel()
    • getBungeeCordServerEnabled

      public boolean getBungeeCordServerEnabled()
    • getBalanceVariableEnabled

      public boolean getBalanceVariableEnabled()
    • setBalanceVariableEnabled

      public void setBalanceVariableEnabled(boolean b)
    • getBalancePointsVariableEnabled

      public boolean getBalancePointsVariableEnabled()
    • setBalancePointsVariableEnabled

      public void setBalancePointsVariableEnabled(boolean b)
    • getTransactionLogEnabled

      public boolean getTransactionLogEnabled()
    • getServerPingingEnabled

      public boolean getServerPingingEnabled(boolean checkIfLoadedAlready)
    • getServerPingingFixConnector

      public boolean getServerPingingFixConnector()
    • getInventoryFullDropItems

      public boolean getInventoryFullDropItems()
    • getLoadSubFoldersEnabled

      public boolean getLoadSubFoldersEnabled()
    • getCheckStackSize

      public boolean getCheckStackSize()
    • getItemAllShowFinalReward

      public boolean getItemAllShowFinalReward()
    • getAllowSellingDamagedItems

      public boolean getAllowSellingDamagedItems()
    • getReloadAfterCreateShop

      public boolean getReloadAfterCreateShop()