Item spray effect doesn't work if the "item-despawn-rate" option in spigot.yml is lowered to 5800
Summary
If the default value for the "item-despawn-rate" option in spigot.yml (default 6000) is set at 5800 ticks the item spray effect will stop working (items despawn istantly)
Steps to reproduce
- Open your spigot.yml file
- Set the "item-despawn-rate" to 5800
- That will be enough to make it stop working. If you, for example, set the value to 5805 the items will despawn after 5 ticks, if you set it to 5810 the items will despawn after 10 ticks, etc.
Current behavior
Currently, the bug is forcing me to set the "item-despawn-rate" to 6000 ticks (5 in-game minutes), rendering the item spray effect impossible to use for me since i have a big server and i have the necessity to set the "item-despawn-rate" value to 2400 to prevent lag.
Intended correct behavior
testsword:
Id: diamond_sword
Display: "&3&lTest &b&lsword"
Lore:
- "I can't spray :("
Skills:
- effect:itemspray{item=stone;a=20;v=1;d=30;y=1} @self ~onTimer:20
This item should spray items for any "item-despawn-rate" value.
Server log file
Debug log snippet
Proposed fixes
Set the default tick age for the items sprayed to a lower value.