Create a Minecraft Paper/Spigot plugin called **DonutSMP** with additional features:
### Goal:
Design a feature-rich Donut SMP plugin, adding not only basic team-based mechanics and events but also advanced features like an auction house, bounty system, shop, leaderboards, selling, and spawner shop. This plugin should enhance the Donut SMP experience, adding more ways for players to interact, compete, and earn rewards.
### Features:
1. **Donut SMP Theme**:
- The server will be a fun, community-focused SMP with custom features like team-based survival, mini-games, and events. Players will join in "Donut Teams" with different colors (e.g., Pink, Blue, Yellow, etc.).
- Players should be able to join teams, complete events, and build together while having fun and earning custom currency (Donut Coins).
- Display a welcome message: "Welcome to Donut SMP!" when players log in.
2. **Core Features**:
- **Donut Teams**:
- Players can create, join, and leave teams.
- Teams are color-coded (customizable) and have special permissions (e.g., leader role, team-only areas, etc.).
- Custom chat formatting for team members (colored chat names, team prefixes).
- **Currency System - Donut Coins**:
- Add **Donut Coins** as a custom currency.
- Players can earn Donut Coins by completing tasks, challenges, and events.
- Players can trade Donut Coins, spend them in the auction house, or purchase items from the shop.
- Include commands like `/coins` to check balance, `/coins give `, and `/coins spend `.
3. **Auction House**:
- Allow players to list their items in an **auction house** where other players can bid Donut Coins.
- Command `/auction` โ Opens the auction house.
- Auction house should have a timed listing system, and players can place bids on items.
- Once the auction ends, the highest bidder wins the item.
- Include `/auction list` to see current and past auctions, `/auction bid - ` to place a bid.
4. **Shop**:
- A **Donut Shop** where players can buy and sell items using Donut Coins.
- The shop should sell items like enchanted gear, rare resources, and consumables.
- Add `/shop` to access the shop menu.
- Players can sell items to the shop for Donut Coins.
- Example shop items:
- **Spawner Eggs** (e.g., Zombie, Skeleton, Creeper)
- **Rare Materials** (e.g., Enchanted Books, Diamonds, Netherite)
- **Cosmetics** (e.g., Hats, Pets, Trails)
5. **Bounty System**:
- Players can place **bounties** on other players, and the first to kill them gets the reward.
- Command `/bounty ` โ Place a bounty on a player.
- Command `/bounty list` โ View all active bounties.
- Players who kill a player with a bounty get Donut Coins as a reward.
- Display bounty alerts in chat when a player with a bounty is killed.
6. **Sell System**:
- Players can sell items in bulk using the `/sell` command.
- Add `/sell all` to sell all items in the player's inventory.
- The value of the items is based on the Donut Shopโs current pricing for each item.
- For example: `/sell all diamond` sells all diamonds in the player's inventory for a set price.
7. **Leaderboard System**:
- **Leaderboards** will track the top players in several categories, including:
- **Top Donut Coin Earners**: Players who earn the most Donut Coins.
- **Top PvP Killers**: Players who have the most kills in PvP events.
- **Top Builders**: Players who have completed the most building challenges or events.
- Display leaderboards in the server with the command `/leaderboard`.
- Optionally display leaderboards in the tab list or the scoreboard for easy reference.
8. **Spawner Shop**:
- Add a **Spawner Shop** where players can buy spawners (e.g., Zombie, Skeleton, Creeper) using Donut Coins.
- Command `/spawnershop` opens the spawner purchase menu.
- Players can purchase spawners directly from the shop to place in their bases for mob farming.
- Include a customizable list of available spawners in the `config.yml`.
9. **Custom Commands**:
- `/team create ` โ Create a new team.
- `/team join ` โ Join a team.
- `/team leave` โ Leave your current team.
- `/event signup ` โ Sign up for an event (e.g., Build Battle, PvP Battle).
- `/bounty ` โ Place a bounty on a player.
- `/shop` โ Opens the Donut Shop interface.
- `/auction` โ Opens the auction house interface.
- `/sell all` โ Sells all items in your inventory for Donut Coins.
- `/leaderboard` โ View the current leaderboard.
- `/spawnershop` โ Opens the Spawner Shop.
10. **Configurable Settings**:
- Create a `config.yml` to manage settings, such as:
```yaml
enabled: true
default-team-color: pink
currency-name: "Donut Coins"
shop-items:
- "Spawner Egg: Zombie"
- "Enchanted Sword"
bounty-system-enabled: true
auction-house-enabled: true
leaderboard-enabled: true
spawner-shop-enabled: true
```
- Allow customization of team colors, event types, and shop prices.
11. **Code Quality**:
- Use Java for plugin development.
- Use Maven or Gradle for dependency management.
- Include proper exception handling, especially for commands and player actions.
- Keep the code modular and extensible, supporting potential future expansions like new events, shops, or ranking systems.
- Avoid performance bottlenecks and ensure the plugin is lightweight and optimized.
### Deliverables:
- Full source code of the plugin.
- plugin.yml file.
- Example `config.yml` file with default settings.
- README.md with installation and setup instructions.
- Example commands and usage.
The final plugin should create a lively, engaging community where players can compete in various events, trade and sell items, place bounties on each other, and earn rewards through leaderboards and currency systems.