SRegionProtector
SRegionProtector is a flexible region-protection plugin for PowerNukkitX. Players can claim areas, manage members and owners, configure protection flags, and work with regions through commands or a chest/form UI.
[!NOTE] This repository is a port of the original Nukkit plugin to PowerNukkitX. Because much of the code originates from the Nukkit version, it is not intended as a reference project for learning the PowerNukkitX API.
Features
- Cuboid region creation with a selection wand or position commands
- Region owners and members
- Configurable protection flags
- Chest and form-based user interfaces
- YAML, SQLite, MySQL, and PostgreSQL storage
- Optional region creation costs and region trading through LlamaEconomy
- Region priorities, borders, teleportation, and data migration
- English, Russian, and Korean translations
- Asynchronous command execution, loading, and automatic saves
Requirements
- A current PowerNukkitX server
- Java 21
- LlamaEconomy (optional; required for economy features)
Installation
- Download the latest JAR from the GitHub releases page.
- Copy the JAR into the server's
pluginsdirectory. - Start the server once to generate the configuration files.
- Stop the server, adjust the files in
plugins/SRegionProtector/, and start it again.
The default configuration uses YAML storage, so no database setup is required for a basic installation.
Quick start
All subcommands are available through /region or its alias /rg.
- Run
/rg wandto receive the selection wand. - Select two opposite corners of the area. Alternatively, use
/rg pos1and/rg pos2. - Check the selection with
/rg sizeor/rg showborder. - Create the region with .