RedProtect
Original author: Fabio F. Magalhaes (FabioZumbi12) Fork maintained by: Raja Evian Aditya (rajaaditya.my.id) API: Paper 1.21.x (JDK 21). Also runs on newer servers License: GNU General Public License v3.0
Not for publication. This fork is for my own private server use only. It is not published, shared, or available for download, and this page only documents what has been changed.
RA-RedProtect is a modified version of RedProtect, maintained for private server use. The original copyright and license headers are kept in every file, and files changed by this fork carry a "Modified by" marker. For the full list of regular RedProtect features and commands, see the upstream wiki.
What RedProtect Does
RedProtect is an area protection plugin focused on player-managed regions. Players can claim and manage their own protected areas without staff having to set them up. Region owners decide who can build, open chests, use doors, fight, and more by switching flags on or off.
What Is Different From Upstream
| Area | Change |
|---|---|
| Compatibility | Built with JDK 21 against the Paper 1.21.1 API, with api-version: 1.21. It also runs on newer servers. The plugin name (RedProtect), the /rp command, permissions, flags, the PlaceholderAPI identifier, and the Java packages are unchanged, so plugins that integrate with RedProtect keep working |
| Config | Settings are now YAML: config.yml, globalflags.yml, guiconfig.yml, economy.yml, textures.yml, signs.yml, and blocks.yml. Existing .conf files are converted automatically on first start and kept as .conf.bak. Setting comments are written into the YAML files |
| Bedrock | With Floodgate installed, /rp flag opens a Cumulus form for Bedrock players. The flag name is on line 1, ON or OFF on line 2, and tapping toggles it. Java players still get the inventory GUI. Floodgate is only a soft dependency |
| Performance | Region lookups use a grid spatial index per world instead of scanning every region. The 10 second location cache no longer schedules one async task per block |
| Thread safety | Region maps are concurrent. Async autosave no longer races with edits, because the dirty flag is cleared before serializing and a snapshot that was being modified is retried |
| Disabled | The Spiget update checker and bStats metrics, since they point to the upstream resource |
Features
- Players claim regions with a wand or with the
/rp claimcommand, within configurable claim and block limits - Three trust levels for each region: members, admins, and leaders
- A large set of flags to control building, chests, doors, buttons, levers, PvP, fire, mob spawning, fishing, potions, flying, teleporting, and more
- Region priority, a welcome message, a teleport point, and the ability to list nearby regions or kick players
- Region borders shown as particles
- Optional economy support, with region value and per-flag costs (
economy.yml) - Integrations with many other plugins, such as Floodgate, WorldEdit, WorldGuard, Essentials, Multiverse-Core, dynmap, and mcMMO
- Add-ons for buying and renting regions, backups, region chat, and one-hit projectiles
Dependencies
| Plugin | Required | Purpose |
|---|---|---|
| Floodgate | No (softdepend) | Native Bedrock flag forms |
| WorldEdit / WorldGuard | No (softdepend) | Selections and region conversion |
| Vault | No | Needed for the economy features and BuyRentRegion |
| dynmap and others | No (softdepend) | Region display and other integrations |
Installation
- Place the jar (
RA-RedProtect-<version>.jar) into yourplugins/folder - Restart the server. Old
.conffiles are converted to YAML automatically - Edit the files in
plugins/RedProtect/and run/rp reload
Build from source with JDK 21 and Maven:
mvn -DskipTests -Dgpg.skip=true clean package
The jar is created at RedProtect-Spigot/target/RA-RedProtect-<version>.jar.
Configuration Files
plugins/RedProtect/
├── config.yml # Main settings
├── globalflags.yml # Default flags for worlds
├── guiconfig.yml # Flag GUI layout and items
├── economy.yml # Region value and costs
├── textures.yml # GUI textures
├── signs.yml # Region signs
└── blocks.yml # Block settings
Commands
The main command is /rp (alias of /redprotect). Use /rp ? to see every command available to you.
| Command | Description |
|---|---|
/rp wand | Get the selection wand |
/rp claim [name] | Claim the selected area as a region |
/rp info | Show information about the region you are in |
/rp border | Show the region border |
/rp addmember <player> | Add a member (also addadmin, addleader) |
/rp removemember <player> | Remove a member (also removeadmin, removeleader) |
/rp flag <flag> [value] | Change a flag (opens the GUI or a form without arguments) |
/rp rename <new name> | Rename a region |
/rp welcome <message> | Set the welcome message |
/rp priority <number> | Set the region priority |
/rp list | List your regions |
/rp near | List regions near you |
/rp kick <player> | Remove a player from the region |
/rp settp / deltp / teleport | Set, remove, or use a region teleport point |
/rp delete | Delete a region |
/rp blocklimit / claimlimit | Show your block and claim limits |
/rp reload | Reload the configuration (admin) |
Admin versions of most commands exist under redprotect.command.admin.*.
Permissions
| Permission | Default | Description |
|---|---|---|
redprotect.* | op | All RedProtect permissions |
redprotect.command.user | true | The recommended player commands (claim, info, members, flags, and similar) |
redprotect.flag.defaults | true | The default flags players may change |
redprotect.command.admin | op | The recommended admin commands |
redprotect.bypass | op | Bypass region protection |
redprotect.limits.claim.unlimited | op | No claim limit |
redprotect.limits.blocks.unlimited | op | No block limit |
redprotect.eco.use | op | Region economy features |
redprotect.flag.<flag> | varies | Permission to change a specific flag |
Add-ons
These add-ons extend RedProtect and are built from the same project. They need RedProtect installed.
BuyRentRegion
Buy or rent regions with signs, using any Vault economy. Command: /buyrentregion (alias /rpbuy).
Place a sign with these lines:
[BuyRegion]
<regionname>
<price>
[RentRegion]
<regionname>
<price>
<timespan>
| Permission | Description |
|---|---|
buyrentregion.command.create | Create [BuyRegion] and [RentRegion] signs |
buyrentregion.command.admin | Admin commands |
buyrentregion.command.exempt | Bypass the region maximum |
buyrentregion.command.buy / rent | Buy or rent a region, when the config requires it |
Requires Vault.
KillerProjectiles
Adds the killer-projectiles flag. Projectile launchers inside a region with this flag deal the configured damage.
- Reload:
/killerprojectiles reloador/kp reload(killerprojectiles.cmd.reload) - Flag:
/rp flag killer-projectiles true, permissionredprotect.flag.killer-projectiles
RedBackups
Creates backups of the region .mca files at your RedProtect region locations.
- Reload:
/redbackups reloador/rbkp reload(redbackup.cmd.reload) - Manual backup:
/redbackups backup [here], whereherebacks up your current location (redbackup.cmd.backup)
RegionChat
Adds the chat flag and lets players chat with others inside the same region.
- Reload:
/regionchat reloador/rpc reload(regionchat.cmd.reload) - Flag:
/rp flag chat trueallows or denies non-members chatting. Permissionredprotect.flag.chat - Chat:
/rpc <message>
For Developers
RedProtect is hosted on Maven Central. Add the RedProtect-Core and RedProtect-Spigot artifacts (group io.github.fabiozumbi12.RedProtect) with all dependencies excluded to use the region API.
License
GNU General Public License v3.0. Original work copyright of FabioZumbi12. Modifications by Raja Evian Aditya.