New command API, code improvements
- Reworked all command, now all commands using CommandAPI and i don't have duplicates from spigot and paper.
- A really lot of improvements to code, more readbility and clean up.
- Now PlaceholderAPI in spigot version is a softdepend.
- Small bug fix
Improvements
The last update seems stable, but try it on local before production.
- Added more support for versions like 1.16.5, 1.17, 1.18.
- Added last update for spigot version
BIG CHANGES!
VERSION THAT MAY NOT BE STABLE
This version may not be stable, it has been tested but contains many changes, if you have problems join the discord!
- Big changes to battlepass rewards slot and page logic: now you can decide where you can put rewards
- Edited default-battlepass on config.yml adding new rewards logic
- Reworked the default battlepass.yml file with a really default battlepass
- Added new method that check and fix if battlepass files don't have sections
- Updates for the battlepass editor will arrive soon
- This update is currently only in the paper version, once completed it will also arrive for spigot
Startup issue, Weight and improvements
- Fixxed startup issue
- Fixxed weight
- And a lot of improvements and fix to dependencies
Experimental versions support
Added experimental versions support
Free battlepass permission!
- Free battlepass permission: now you can define the permission for take free rewards! set it to none if you don't want it
- Added some comments to default battlepass.yml file
- Translated some parts
- Small improvements
- Added free battlepass permission to battlepassadmin editor.
Fixxed Paper compatibility
Fixxed Paper compatibility
Fixxed spigot support
- Displayitems editor (not finished)
- Spigot support (paperlibs loading bug fix with ShadowJar)
New display-items (alpha), and important bug fix
- Fixxed a several issue that don't give rewards
- Added new section display-items (only file editing actually)
Fixxed battlepass.yml
- Fixxed spaces in rewards section in default battlepass.yml file
- (in 1.0.46 version i have added folia support!)
BACKUP SYSTEM!
- BACKUP SYSTEM!
- Some problems can happen every now and then, which is why I decided to insert a backup system, it will create backups in the backup folder that you will find in the plugin folder and create a backup every 12 hours
Reset bug fix
Fixxed an issue with /battlepassadmin reset <playerName>
Fix rare issue
Fixxed an rare issue on loading files
Exclude items section
- Added exclude item section in battlepass.yml config which allows you to exclude from premium or free rewards from the battlepass
[code=YAML]exclude-rewards:
free:
- 0
- 1
premium:
- 2
- 3[/code]
New placeholders and update
- 1.20.4 (api update spigot and paper)
- Added new placeholder! %albattlepass_exp_<level>% return the require exp of certain level example: %albattlepass_exp_1% return the amount of exp you need to level 1
- Updated HikariCP from 5.0.1 to 5.1.0
Prevent some issues!
- Prevent an issue if you don't have any battlepass as active
- Prevent an issue if you remove the active battlepass file
PlaceholderAPI support in rewards GUI!
PlaceholdersAPI Integration:
- Implemented support for PlaceholdersAPI in the rewards GUI:
- Display Name: Now supports PlaceholdersAPI, enhancing customization.
- Lore: Enhanced with PlaceholdersAPI support, allowing for dynamic content within the rewards GUI.
Enchanted option
- Added enchanted option on items
rewards:
0:
premium:
commands:
- "give %player% paper 1"
displayitem:
material: "PAPER"
customdata: 100
name: "<gray>Level 0 (Premium)"
enchanted: true
lore:
- "<yellow>This is a premium reward"
free:
commands:
- "give %player% paper 1"
displayitem:
material: "PAPER"
customdata: 100
enchanted: false
name: "<gray>Level 0 (Free)"
lore:
- "<gray>This is a free reward"