BattlePass Plugin
A Minecraft plugin that implements a battle pass system similar to Fortnite. Players earn XP by killing mobs, level up, and unlock rewards such as extra health and weapons.
Features
- Earn XP by killing mobs
- Level up system with GUI to view progress
- Unlock rewards at certain levels:
- Level 5: Extra health (+4 hearts)
- Level 10: Diamond Sword
- Level 15: More extra health (+6 hearts total)
- Level 20: Diamond Chestplate
- Persistent player data stored in YAML files
Installation
- Build the plugin using Maven:
mvn package
- Copy the generated JAR file (
target/battlepass-1.0.0.jar) to your server's plugins folder.
- Restart the server.
Usage
- Players automatically gain XP when killing mobs.
- Use the
/battlepass command to open the battle pass GUI and view progress.
Requirements
- Minecraft 1.20.4
- Spigot or Paper server
- Java 17
Building
This project uses Maven for building. Run mvn compile to compile or mvn package to build the JAR.