Class RewardFileData
java.lang.Object
com.bencodez.advancedcore.api.rewards.RewardFileData
The Class RewardFileData.
-
Constructor Summary
ConstructorsConstructorDescriptionRewardFileData(Reward reward, File rewardFolder) Instantiates a new reward file data.RewardFileData(Reward reward, org.bukkit.configuration.ConfigurationSection section) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateSection(String path) doubleGets the chance.org.bukkit.configuration.ConfigurationSectiongetChoicesItem(String choice) getChoicesRewardsPath(String choice) Gets the commands console.Gets the commands player.org.bukkit.configuration.ConfigurationSectionbooleanGets the delayed enabled.intGets the delayed hours.intintGets the delayed minutes.intorg.bukkit.configuration.ConfigurationSectionGets the data.booleanGets the choice rewards enabled.org.bukkit.configuration.file.FileConfigurationbooleanintgetItemAmount(String item) Deprecated.intgetItemData(String item) Deprecated.intgetItemDurability(String item) Deprecated.getItemEnchants(String item) Deprecated.intgetItemEnchantsLevel(String item, String enchant) Deprecated.getItemLore(String item) Deprecated.getItemMaterial(String item) Deprecated.intgetItemMaxAmount(String item) Deprecated.intgetItemMinAmount(String item) Deprecated.getItemName(String item) Deprecated.getItems()Gets the items.org.bukkit.configuration.ConfigurationSectiongetItemSection(String item) getItemSkull(String item) Deprecated.Gets the permission.booleanGets the require permission.Gets the reward type.booleanGets the timed enabled.intGets the timed hour.intGets the timed minute.Gets the worlds.booleanbooleanbooleanvoidreload()Reload.voidsave()voidsave(org.bukkit.configuration.file.FileConfiguration fileData) voidSets the.voidsetChance(double d) Sets the chance.voidsetCommandsConsole(ArrayList<String> value) Sets the commands console.voidsetCommandsPlayer(ArrayList<String> value) Sets the commands player.voidsetConfigData(org.bukkit.configuration.ConfigurationSection configData) voidsetData(org.bukkit.configuration.ConfigurationSection value) voidsetDataFile(File dFile) voidsetDirectlyDefinedReward(boolean b) voidsetGiveInEachWorld(boolean value) Sets the give in each world.voidsetItemAmount(String item, int value) Sets the item amount.voidsetItemData(String item, int value) Sets the item data.voidsetItemDurability(String item, int value) Sets the item durability.voidsetItemEnchant(String item, String enchant, int value) Sets the item enchant.voidsetItemLore(String item, ArrayList<String> value) Sets the item lore.voidsetItemMaterial(String item, String value) Sets the item material.voidsetItemMaxAmount(String item, int value) Sets the item max amount.voidsetItemMinAmount(String item, int value) Sets the item min amount.voidsetItemName(String item, String value) Sets the item name.voidsetPermission(String perm) Sets the permission.voidsetRequirePermission(boolean value) Sets the require permission.voidsetRewardType(String value) Sets the reward type.voidsetup()Setup.voidSets the worlds.
-
Constructor Details
-
RewardFileData
-
RewardFileData
Instantiates a new reward file data.- Parameters:
reward- the rewardrewardFolder- the reward folder
-
-
Method Details
-
createSection
-
getChance
public double getChance()Gets the chance.- Returns:
- the chance
-
getChoices
-
getChoicesItem
-
getChoicesRewardsPath
-
getCommandsConsole
Gets the commands console.- Returns:
- the commands console
-
getCommandsPlayer
Gets the commands player.- Returns:
- the commands player
-
getConfigData
public org.bukkit.configuration.ConfigurationSection getConfigData() -
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.Gets the item amount.- Parameters:
item- the item- Returns:
- the item amount
-
getItemData
Deprecated.Gets the item data.- Parameters:
item- the item- Returns:
- the item data
-
getItemDurability
Deprecated.Gets the item durability.- Parameters:
item- the item- Returns:
- the item durability
-
getItemEnchants
Deprecated.Gets the item enchants.- Parameters:
item- the item- Returns:
- the item enchants
-
getItemEnchantsLevel
Deprecated.Gets the item enchants level.- Parameters:
item- the itemenchant- the enchant- Returns:
- the item enchants level
-
getItemLore
Deprecated.Gets the item lore.- Parameters:
item- the item- Returns:
- the item lore
-
getItemMaterial
Deprecated.Gets the item material.- Parameters:
item- the item- Returns:
- the item material
-
getItemMaxAmount
Deprecated.Gets the item max amount.- Parameters:
item- the item- Returns:
- the item max amount
-
getItemMinAmount
Deprecated.Gets the item min amount.- Parameters:
item- the item- Returns:
- the item min amount
-
getItemName
Deprecated.Gets the item name.- Parameters:
item- the item- Returns:
- the item name
-
getItems
Gets the items.- Returns:
- the items
-
getItemSection
-
getItemSkull
Deprecated.Gets the item skull.- Parameters:
item- the item- Returns:
- the item skull
-
getPermission
Gets the permission.- Returns:
- the permission
-
getPriority
-
getRequirePermission
public boolean getRequirePermission()Gets the require permission.- Returns:
- the require permission
-
getRewardType
Gets the reward type.- Returns:
- the reward type
-
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
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
Sets the.- Parameters:
path- the pathvalue- the value
-
setChance
public void setChance(double d) Sets the chance.- Parameters:
d- the new chance
-
setCommandsConsole
Sets the commands console.- Parameters:
value- the new commands console
-
setCommandsPlayer
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
- 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
Sets the item amount.- Parameters:
item- the itemvalue- the value
-
setItemData
Sets the item data.- Parameters:
item- the itemvalue- the value
-
setItemDurability
Sets the item durability.- Parameters:
item- the itemvalue- the value
-
setItemEnchant
Sets the item enchant.- Parameters:
item- the itemenchant- the enchantvalue- the value
-
setItemLore
Sets the item lore.- Parameters:
item- the itemvalue- the value
-
setItemMaterial
Sets the item material.- Parameters:
item- the itemvalue- the value
-
setItemMaxAmount
Sets the item max amount.- Parameters:
item- the itemvalue- the value
-
setItemMinAmount
Sets the item min amount.- Parameters:
item- the itemvalue- the value
-
setItemName
Sets the item name.- Parameters:
item- the itemvalue- the value
-
setPermission
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
Sets the reward type.- Parameters:
value- the new reward type
-
setup
public void setup()Setup. -
setWorlds
Sets the worlds.- Parameters:
value- the new worlds
-