Version 0.2 - Enhanced Features & Customization (April 15, 2025)
I'm excited to announce a major update for
PlotPlugin! This update brings new features, improved functionality, and more customization options to make plot management even better for your players. Here's what's new:
New Features
- Customizable Configuration
Added a config.yml file for easy customization:
- Adjust settings like max-plots-per-player, spawn-protection-radius, default-plot-size, expand-size-increment, and expand-cost-emeralds.
- Customize all in-game messages with support for color codes (&). Personalize the prefix, error messages, and more to fit your server's style.
- Plot Expansion with Emeralds
Players can now expand their plots using the /plot expand command:
- Expands the plot by a configurable amount (default: 16 blocks in each direction).
- Costs a configurable number of emeralds (default: 10).
- Players must have enough emeralds in their inventory to expand.
- Plot Block Creation
- Added a new "Plot Block" system for creating plots:
- Craft a Plot Block using 8 diamonds and 1 emerald (shaped recipe: diamonds surrounding an emerald).
- Alternatively, use /plot give (requires plot.give permission, default: op) to obtain a Plot Block.
- Right-click with the Plot Block to create a plot centered at the clicked location.
- Removed the old /plot setpos1 and /plot setpos2 commands in favor of the Plot Block system.
- Spawn Protection
- Plots cannot be created too close to the world spawn (configurable radius, default: 100 blocks).
- Prevents cluttering around the spawn area and ensures a balanced gameplay experience.
- Enhanced Plot Protection
Expanded protection to cover more interactions:
- Prevent unauthorized players from:
- Picking up items on the plot.
- Using vehicles (e.g., minecarts, boats).
- Interacting with item frames.
- Existing protections (block breaking/placing, chest access, mob attacks) remain in place.
- Fixed Plot Size
- Plots are now created with a fixed size (default: 64x64 blocks), configurable in config.yml.
- Ensures consistency and prevents overly large plots from being created accidentally.
️ Improvements
- SQLite Database
- Moved plot storage from config.yml to a lightweight SQLite database (plots.db).
- Improves performance and keeps your server files clean.
- Better Plot Visualization
- Plot boundaries are now visualized using particle effects (Villager Happy particles) when created or shown with /plot show.
- Makes it easier for players to see their plot limits.
- Plot Listing
Added /plot list command to display all plots owned by the player, including their coordinates and world.
Bug Fixes
- Fixed a method clash between getConfig() in PlotPlugin and JavaPlugin by renaming to getCustomConfig(). This resolves compilation issues.
Updated Commands
- /plot create: Now informs players to use a Plot Block to create a plot.
- /plot expand: New command to expand your plot for emeralds.
- /plot give: Gives a Plot Block (permission: plot.give).
- /plot list, /plot show, /plot add <player>, /plot remove <player>, /plot delete: Updated with configurable messages.
Configuration Example
Here's a snippet of the new config.yml:
Code (YAML):
settings:
max-plots-per-player
: 3
spawn-protection-radius
: 100
default-plot-size
: 64
expand-size-increment
: 16
expand-cost-emeralds
: 10
messages:
prefix
:
"&b[PlotPlugin] &r"
plot-created
:
"&aPlot created successfully!"
plot-expanded
:
"&aPlot expanded successfully! Charged {cost} emeralds."
# ... (more messages)
How to Update
- Back up your existing plots.db (if you have one) and config.yml.
- Replace the old PlotPlugin JAR with the new version in your plugins folder.
- Restart your server to generate the updated config.yml.
- Review and customize the new config.yml to your liking.
Notes
- The database schema remains the same, so your existing plots will carry over without issues.
- If you encounter any bugs or have feature suggestions, please let me know in the discussion section or on Discord!
Thank you for using PlotPlugin! I hope this update enhances your server experience.