Skip to content

Commit a77f0c6

Browse files
author
RohitM2019
committed
Updated api version and loot config default
1 parent 69d61e0 commit a77f0c6

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/main/java/com/dumptruckman/chestrestock/DefaultLootConfig.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,13 @@ class DefaultLootConfig implements LootConfig {
3535
+ nl + "chance - the chance at which the section will be picked (as a fraction: 0.25 == 25%). default: 1"
3636
+ nl + "rolls - the number of times the section will be considered. default: 1"
3737
+ nl + "split (true/false) - if true, chance will be used as section weight and only 1 section will be picked. default: false"
38-
+ nl + "id - the item id (number). default: none"
39-
+ nl + "data - the item data value (number). default: none"
38+
+ nl + "id - the item id (See https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html for possibilities). default: none"
39+
+ nl + "damage - the amount the item has been damaged. -1 for unbreakable item. default: 0"
4040
+ nl + "amount - the amount of the item. default: 1"
4141
+ nl + "==================="
4242
+ nl + "enchant - This indicates there is an enchantment for the item selected for this section. The following values must be defined under enchant:"
43-
+ nl + "name - the name of the enchantment. default: none. (possible values: http://jd.bukkit.org/apidocs/org/bukkit/enchantments/Enchantment.html)"
43+
+ nl + "name - the name of the enchantment. default: none. (possible values: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/enchantments/Enchantment.html)"
4444
+ nl + "level - the level of the enchantment. Negative values indicate random level from 1 to -level. default: 1"
45-
+ nl + "safe - whether or not to only allow safe enchantments. default: true. This means only appropriate enchantment/level for the item."
4645
+ nl + "PLEASE NOTE: The enchant section can have all the normal properties but cannot indicate items. This means, you can do random sets of enchants!"
4746
+ nl + "Refer to loot_example.yml for a complete example!");
4847
try {

src/main/resources/plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: ChestRestock
22
main: com.dumptruckman.chestrestock.ChestRestockPlugin
33
version: maven-version-number
44
author: dumptruckman
5-
api-version: 1.13
5+
api-version: 1.15
66
softdepend: [Multiverse-Adventure]
77

88
commands:

0 commit comments

Comments
 (0)