v1.1.1
Fixes
- Added Info command and use in Help command.
v1.1.0 — Town Info + Anti-XP Exploit Update
🆕 New
- Added /town info <name> command — shows mayor, creation date, and chunk count.
🛠 Fixes & Improvements
- Fixed infinite XP exploit: Players can no longer gain unlimited XP by placing and breaking the same blocks repeatedly.
- New system: Tracks placed blocks to ensure XP is only earned from naturally generated materials.
- Improved XP logic: Refined XP rewards for ores, logs, farming items, and rare blocks.
- Cleaner code structure: Optimized event handling for both placement and breaking detection.
KnightTowns v1.0.0 – First Release
🏙 Town System
- Players can create and delete towns (/town create <name> / /town delete <name>).
- Towns can claim chunks (/town claim) and display borders for 30 seconds.
- Town members have ranks: TownMaster, Mayor, Member, and Visitor.
- Only TownMaster or Mayor can manage members depending on rank.
- Players cannot break, place, or interact with blocks/items in towns they don’t belong to.
- Optional bypass permission knighttowns.bypass for OPs or admins.
⚡ XP & Level System
- Players gain XP from blocks and kills.
- Level-up detection triggers correctly and only for the leveling player.
- Multiple level-ups handled correctly.
- XP and level persist across joins and server restarts.
💬 Commands
- /town create <name> – Create a new town (TownMaster only)
- /town list – List all towns with Mayor info
- /town delete <name> – Delete a town (TownMaster only)
- /town showborder – Show the border of your town for a few seconds
- /town claim – Claim the chunk you are standing on for your town
- /town addmember <player> <rank> – Add a player to your town (Mayor/TownMaster only)
- /town removemember <player> – Remove a player from your town (Mayor/TownMaster only)
🛡 Grief Protection
- Players cannot build, break, or interact in other towns unless allowed.
- Visitors (no rank) cannot modify blocks in any town.
- Town borders prevent accidental griefing.
📝 Persistence & Safety
- Town data saved in towns.yml.
- Player data and XP saved reliably on quit.
- All operations synced between memory and file.
🎨 UX & Feedback
- XP gain messages appear on the action bar.
- Level-up messages are shown only to the leveling player.
- Town commands provide clear success/failure feedback.
- Borders use Glowstone (corner) and Gold Blocks (marking between corners) for visual feedback.



