The Update may not seem much, because it's just adding Cooldown, but it's a lot of work. Trust me
Changelog
- Changed the structure of the Textfiles (Added Item ID's)
- ID's will be added automatically if it not exists
- Old Files still work (Auto Update)
- Added Default Cooldown (200ms)
- Prevents User from spamming
- Cooldown Messages won't show below 1 second
- Added SQLite for Cooldown Storage
- Cooldowns over 10 Minutes get stored in the SQLite Database, so the Database won't get trashed.
- Cooldowns below 10 Minutes get lost on Server Restart or Plugin Reload, but that's fine.
- Added 9 new Messages
- DAYS, HOURS, MINUTES, SECONDS are for the Cooldown Message
- ACTION_STILL_ON_COOLDOWN the Cooldown Message
- DATA_NOT_LOADED, because I load the Data from the Database asynchronously on Player Join.
- ACTION_COOLDOWN_NEGATIVE, ACTION_COOLDOWN_WRONG_UNIT, ACTION_CHANGED_COOLDOWN are Admin Messages for editing the Cooldown.
If you find any Bugs because it's pretty much new Code, Please
private message me. I tested it a lot, but there can always be some Mistakes.