RedProtect

RA-RedProtect, a fork of FabioZumbi12's RedProtect for Paper 1.21.x with YAML configs, native Bedrock flag forms through Floodgate, a faster region lookup, safer autosave, and four optional add-ons.

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

AreaChange
CompatibilityBuilt 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
ConfigSettings 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
BedrockWith 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
PerformanceRegion 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 safetyRegion 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
DisabledThe Spiget update checker and bStats metrics, since they point to the upstream resource

Features

  • Players claim regions with a wand or with the /rp claim command, 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

PluginRequiredPurpose
FloodgateNo (softdepend)Native Bedrock flag forms
WorldEdit / WorldGuardNo (softdepend)Selections and region conversion
VaultNoNeeded for the economy features and BuyRentRegion
dynmap and othersNo (softdepend)Region display and other integrations

Installation

  1. Place the jar (RA-RedProtect-<version>.jar) into your plugins/ folder
  2. Restart the server. Old .conf files are converted to YAML automatically
  3. Edit the files in plugins/RedProtect/ and run /rp reload

Build from source with JDK 21 and Maven:

bash
1
mvn -DskipTests -Dgpg.skip=true clean package

The jar is created at RedProtect-Spigot/target/RA-RedProtect-<version>.jar.


Configuration Files

text
1
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.

CommandDescription
/rp wandGet the selection wand
/rp claim [name]Claim the selected area as a region
/rp infoShow information about the region you are in
/rp borderShow 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 listList your regions
/rp nearList regions near you
/rp kick <player>Remove a player from the region
/rp settp / deltp / teleportSet, remove, or use a region teleport point
/rp deleteDelete a region
/rp blocklimit / claimlimitShow your block and claim limits
/rp reloadReload the configuration (admin)

Admin versions of most commands exist under redprotect.command.admin.*.


Permissions

PermissionDefaultDescription
redprotect.*opAll RedProtect permissions
redprotect.command.usertrueThe recommended player commands (claim, info, members, flags, and similar)
redprotect.flag.defaultstrueThe default flags players may change
redprotect.command.adminopThe recommended admin commands
redprotect.bypassopBypass region protection
redprotect.limits.claim.unlimitedopNo claim limit
redprotect.limits.blocks.unlimitedopNo block limit
redprotect.eco.useopRegion economy features
redprotect.flag.<flag>variesPermission 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:

text
1
[BuyRegion]
<regionname>
<price>
text
1
[RentRegion]
<regionname>
<price>
<timespan>
PermissionDescription
buyrentregion.command.createCreate [BuyRegion] and [RentRegion] signs
buyrentregion.command.adminAdmin commands
buyrentregion.command.exemptBypass the region maximum
buyrentregion.command.buy / rentBuy 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 reload or /kp reload (killerprojectiles.cmd.reload)
  • Flag: /rp flag killer-projectiles true, permission redprotect.flag.killer-projectiles

RedBackups

Creates backups of the region .mca files at your RedProtect region locations.

  • Reload: /redbackups reload or /rbkp reload (redbackup.cmd.reload)
  • Manual backup: /redbackups backup [here], where here backs up your current location (redbackup.cmd.backup)

RegionChat

Adds the chat flag and lets players chat with others inside the same region.

  • Reload: /regionchat reload or /rpc reload (regionchat.cmd.reload)
  • Flag: /rp flag chat true allows or denies non-members chatting. Permission redprotect.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.