Class RewardFileData

java.lang.Object
com.bencodez.advancedcore.api.rewards.RewardFileData

public class RewardFileData extends Object
The Class RewardFileData.
  • Constructor Details

    • RewardFileData

      public RewardFileData(Reward reward, org.bukkit.configuration.ConfigurationSection section)
    • RewardFileData

      public RewardFileData(Reward reward, File rewardFolder)
      Instantiates a new reward file data.
      Parameters:
      reward - the reward
      rewardFolder - the reward folder
  • Method Details

    • createSection

      public void createSection(String path)
    • getChance

      public double getChance()
      Gets the chance.
      Returns:
      the chance
    • getChoices

      public Set<String> getChoices()
    • getChoicesItem

      public org.bukkit.configuration.ConfigurationSection getChoicesItem(String choice)
    • getChoicesRewardsPath

      public String getChoicesRewardsPath(String choice)
    • getCommandsConsole

      public ArrayList<String> getCommandsConsole()
      Gets the commands console.
      Returns:
      the commands console
    • getCommandsPlayer

      public ArrayList<String> getCommandsPlayer()
      Gets the commands player.
      Returns:
      the commands player
    • getConfigData

      public org.bukkit.configuration.ConfigurationSection getConfigData()
    • getDataFile

      public File getDataFile()
      Returns:
      the dFile
    • getDelayedEnabled

      public boolean getDelayedEnabled()
      Gets the delayed enabled.
      Returns:
      the delayed enabled
    • getDelayedHours

      public int getDelayedHours()
      Gets the delayed hours.
      Returns:
      the delayed hours
    • getDelayedMilliSeconds

      public int getDelayedMilliSeconds()
    • getDelayedMinutes

      public int getDelayedMinutes()
      Gets the delayed minutes.
      Returns:
      the delayed minutes
    • getDelayedSeconds

      public int getDelayedSeconds()
    • getDisplayItem

      public org.bukkit.configuration.ConfigurationSection getDisplayItem()
      Gets the data.
      Returns:
      the data
    • getEnableChoices

      public boolean getEnableChoices()
      Gets the choice rewards enabled.
      Returns:
      the choice rewards enabled
    • getFileData

      public org.bukkit.configuration.file.FileConfiguration getFileData()
    • getForceOffline

      public boolean getForceOffline()
    • getItemAmount

      @Deprecated public int getItemAmount(String item)
      Deprecated.
      Gets the item amount.
      Parameters:
      item - the item
      Returns:
      the item amount
    • getItemData

      @Deprecated public int getItemData(String item)
      Deprecated.
      Gets the item data.
      Parameters:
      item - the item
      Returns:
      the item data
    • getItemDurability

      @Deprecated public int getItemDurability(String item)
      Deprecated.
      Gets the item durability.
      Parameters:
      item - the item
      Returns:
      the item durability
    • getItemEnchants

      @Deprecated public Set<String> getItemEnchants(String item)
      Deprecated.
      Gets the item enchants.
      Parameters:
      item - the item
      Returns:
      the item enchants
    • getItemEnchantsLevel

      @Deprecated public int getItemEnchantsLevel(String item, String enchant)
      Deprecated.
      Gets the item enchants level.
      Parameters:
      item - the item
      enchant - the enchant
      Returns:
      the item enchants level
    • getItemLore

      @Deprecated public ArrayList<String> getItemLore(String item)
      Deprecated.
      Gets the item lore.
      Parameters:
      item - the item
      Returns:
      the item lore
    • getItemMaterial

      @Deprecated public String getItemMaterial(String item)
      Deprecated.
      Gets the item material.
      Parameters:
      item - the item
      Returns:
      the item material
    • getItemMaxAmount

      @Deprecated public int getItemMaxAmount(String item)
      Deprecated.
      Gets the item max amount.
      Parameters:
      item - the item
      Returns:
      the item max amount
    • getItemMinAmount

      @Deprecated public int getItemMinAmount(String item)
      Deprecated.
      Gets the item min amount.
      Parameters:
      item - the item
      Returns:
      the item min amount
    • getItemName

      @Deprecated public String getItemName(String item)
      Deprecated.
      Gets the item name.
      Parameters:
      item - the item
      Returns:
      the item name
    • getItems

      public Set<String> getItems()
      Gets the items.
      Returns:
      the items
    • getItemSection

      public org.bukkit.configuration.ConfigurationSection getItemSection(String item)
    • getItemSkull

      @Deprecated public String getItemSkull(String item)
      Deprecated.
      Gets the item skull.
      Parameters:
      item - the item
      Returns:
      the item skull
    • getPermission

      public String getPermission()
      Gets the permission.
      Returns:
      the permission
    • getPriority

      public ArrayList<String> getPriority()
    • getRequirePermission

      public boolean getRequirePermission()
      Gets the require permission.
      Returns:
      the require permission
    • getRewardType

      public String getRewardType()
      Gets the reward type.
      Returns:
      the reward type
    • getServer

      public String getServer()
    • getTimedEnabled

      public boolean getTimedEnabled()
      Gets the timed enabled.
      Returns:
      the timed enabled
    • getTimedHour

      public int getTimedHour()
      Gets the timed hour.
      Returns:
      the timed hour
    • getTimedMinute

      public int getTimedMinute()
      Gets the timed minute.
      Returns:
      the timed minute
    • getWorlds

      public ArrayList<String> getWorlds()
      Gets the worlds.
      Returns:
      the worlds
    • hasRewardFile

      public boolean hasRewardFile()
    • isDirectlyDefinedReward

      public boolean isDirectlyDefinedReward()
    • isRewardFile

      public boolean isRewardFile()
    • reload

      public void reload()
      Reload.
    • save

      public void save()
    • save

      public void save(org.bukkit.configuration.file.FileConfiguration fileData)
    • set

      public void set(String path, Object value)
      Sets the.
      Parameters:
      path - the path
      value - the value
    • setChance

      public void setChance(double d)
      Sets the chance.
      Parameters:
      d - the new chance
    • setCommandsConsole

      public void setCommandsConsole(ArrayList<String> value)
      Sets the commands console.
      Parameters:
      value - the new commands console
    • setCommandsPlayer

      public void setCommandsPlayer(ArrayList<String> value)
      Sets the commands player.
      Parameters:
      value - the new commands player
    • setConfigData

      public void setConfigData(org.bukkit.configuration.ConfigurationSection configData)
    • setData

      public void setData(org.bukkit.configuration.ConfigurationSection value)
    • setDataFile

      public void setDataFile(File dFile)
      Parameters:
      dFile - the dFile to set
    • setDirectlyDefinedReward

      public void setDirectlyDefinedReward(boolean b)
    • setGiveInEachWorld

      public void setGiveInEachWorld(boolean value)
      Sets the give in each world.
      Parameters:
      value - the new give in each world
    • setItemAmount

      public void setItemAmount(String item, int value)
      Sets the item amount.
      Parameters:
      item - the item
      value - the value
    • setItemData

      public void setItemData(String item, int value)
      Sets the item data.
      Parameters:
      item - the item
      value - the value
    • setItemDurability

      public void setItemDurability(String item, int value)
      Sets the item durability.
      Parameters:
      item - the item
      value - the value
    • setItemEnchant

      public void setItemEnchant(String item, String enchant, int value)
      Sets the item enchant.
      Parameters:
      item - the item
      enchant - the enchant
      value - the value
    • setItemLore

      public void setItemLore(String item, ArrayList<String> value)
      Sets the item lore.
      Parameters:
      item - the item
      value - the value
    • setItemMaterial

      public void setItemMaterial(String item, String value)
      Sets the item material.
      Parameters:
      item - the item
      value - the value
    • setItemMaxAmount

      public void setItemMaxAmount(String item, int value)
      Sets the item max amount.
      Parameters:
      item - the item
      value - the value
    • setItemMinAmount

      public void setItemMinAmount(String item, int value)
      Sets the item min amount.
      Parameters:
      item - the item
      value - the value
    • setItemName

      public void setItemName(String item, String value)
      Sets the item name.
      Parameters:
      item - the item
      value - the value
    • setPermission

      public void setPermission(String perm)
      Sets the permission.
      Parameters:
      perm - the new permission
    • setRequirePermission

      public void setRequirePermission(boolean value)
      Sets the require permission.
      Parameters:
      value - the new require permission
    • setRewardType

      public void setRewardType(String value)
      Sets the reward type.
      Parameters:
      value - the new reward type
    • setup

      public void setup()
      Setup.
    • setWorlds

      public void setWorlds(ArrayList<String> value)
      Sets the worlds.
      Parameters:
      value - the new worlds