A Minecraft plugin that calculates the distance between a player and the world border.
WorldBorder is a simple Minecraft plugin to calculate the distance between a player and the world border. This is useful for monitoring when players approach the edge of the world, sending warnings, or restricting access.
- Real-time calculation of player distance to the world border
- Lightweight and low performance impact
- Compatible with Bukkit, Spigot, Paper, and forks
- Download or build the plugin
.jar - Place the
.jarfile into your server’splugins/folder - Start or restart your server
The plugin should now be active.
- On player movement, the plugin can calculate and log/display the distance to the world border
- If commands are implemented, players/admins can query their current distance
- If API hooks are exposed, other plugins may retrieve this value
WorldBorder/
├─ src/main/java/com/yourname/worldborder/
│ ├─ WorldBorder.java # Main plugin class
│ └─ BorderListener.java # Listener handling distance checks
├─ plugin.yml # Plugin metadata
├─ pom.xml / build.gradle # Build configuration
├─ LICENSE
└─ README.md
Possible future config.yml options:
warning-distance: 10 # Alert players when closer than this distance
show-distance-in-hud: true
units: blocks
disable-worlds:
- world_nether
permissions:
worldborder.use- Add commands for players to check distance
- HUD overlay with border distance
- Configurable warnings and notifications
- Multi-world border support
- Fork this repository
- Create a feature branch (
feat/...) or fix branch (fix/...) - Implement and test changes
- Submit a Pull Request
This project is licensed under the Apache License 2.0. See LICENSE for details.