Skip to content

Commit a054023

Browse files
committed
Fix wrong default cooldown
1 parent 2f04a55 commit a054023

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

pvpmanager/src/main/java/me/chancesd/pvpmanager/setting/Conf.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ private static Map<Material, ItemCooldown> loadItemCooldowns(final Configuration
408408
materials.addAll(globalCooldowns.keySet());
409409

410410
for (final Material material : materials) {
411-
itemCooldowns.put(material, new ItemCooldown(combatCooldowns.getOrDefault(material, 0), globalCooldowns.getOrDefault(material, 0)));
411+
itemCooldowns.put(material, new ItemCooldown(combatCooldowns.getOrDefault(material, -1), globalCooldowns.getOrDefault(material, -1)));
412412
}
413413
return itemCooldowns;
414414
}

pvpmanager/src/main/resources/config.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,17 @@ Newbie Protection:
203203
#####################
204204
#### Cooldowns ####
205205
#####################
206-
# Here you can set a cooldown, in seconds, to any item such as golden apples and enchanted golden apples
206+
# Here you can set a cooldown, in seconds, to ANY item, such as golden apples and enchanted golden apples
207207
# You can add other material types from here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
208208
# If the item is not edible the cooldown will only be activated for right clicks
209209
# Combat section sets cooldowns only while in combat, global means cooldowns will always apply
210210
# You can disable the Minecraft builtin cooldown for an item by setting it to 0, like for enderpearls, or -1 for default cooldown
211211
Item Cooldowns:
212212
Combat:
213-
ENDER_PEARL: 10
213+
ENDER_PEARL: 5
214+
WIND_CHARGE: 1
215+
GOLDEN_APPLE: 30
216+
ENCHANTED_GOLDEN_APPLE: 60
214217
Global:
215218
GOLDEN_APPLE: 30
216219
ENCHANTED_GOLDEN_APPLE: 60

0 commit comments

Comments
 (0)