A comprehensive police system for Minecraft servers, remastered for version 1.21 with modern features and optimizations.
-
Modern Command System
- Intuitive command structure using Cloud Command Framework
- Tab completion for all commands
- Permission-based command access
-
Police Management
- Add/remove police officers
- Police officer equipment system
- Anti-friendly fire system
- Police officer list with online status
-
Arrest System
- Right-click arrest with configurable tool
- Configurable arrest cooldown
- Jail teleportation
- Automatic release timer
- Server-wide arrest broadcasts
-
Fine System
- Economy integration via Vault
- Configurable fine amounts
- Fine history tracking
- Fine notifications
-
Jail System
- Multiple jail locations support
- WorldGuard region integration
- Jail time configuration
- Early release system
-
Item Control
- Configurable banned items
- Automatic item confiscation
- Inventory scanning system
-
Modern Features
- Adventure API for rich text
- Async operations where possible
- Extensive API for developers
- Modern configuration system
- Advanced event system
- Java 17 or higher
- Spigot/Paper 1.21+
- Vault (for economy support)
- WorldGuard (optional, for region protection)
- WorldEdit (optional, for jail region selection)
- Download the latest release from the releases page
- Place the JAR file in your server's
pluginsfolder - Start/restart your server
- Configure the plugin in
plugins/SimplePolice/config.yml
/police add <player>- Add a police officer/police remove <player>- Remove a police officer/police list- List all police officers/jail set- Set jail location/jail delete- Delete jail location/spreload- Reload configuration
/arrest <player>- Arrest a player/fine <player> <amount>- Fine a player/jail tp- Teleport to jail
simplepolice.admin- All permissionssimplepolice.police.add- Add police officerssimplepolice.police.remove- Remove police officerssimplepolice.jail.set- Set jail locationsimplepolice.reload- Reload configuration
simplepolice.police- Basic police permissionssimplepolice.arrest- Arrest playerssimplepolice.jail- Jail managementsimplepolice.fine- Fine players
The plugin is highly configurable. See config.yml for all options:
- Police officer settings
- Arrest mechanics
- Jail system
- Fine system
- Messages and notifications
- Economy integration
- Storage options
SimplePolice provides a comprehensive API for developers:
SimplePoliceAPI api = SimplePolice.getAPI();
// Check if player is police
boolean isPolice = api.isPoliceOfficer(player.getUniqueId());
// Add police officer
api.addPoliceOfficer(player);
// Arrest player
api.arrestPlayer(officer, criminal);
// Fine player
api.finePlayer(officer, criminal, amount);git clone https://github.com/jackh54/SimplePoliceRemastered.git
cd SimplePoliceRemastered
mvn clean package- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
For support:
- Create an issue
- Join our Discord server
- Original plugin by ramdon_person
- Remastered by PandaScript
- Contributors: See all contributors
- Removed unnecessary try-catch blocks for
SerializationExceptioninListenerRegistry- Removed redundant exception handling for
getString()andgetBoolean()methods - Improved code clarity and reduced unnecessary nesting
- Removed redundant exception handling for
-
Fixed Maven Shade Plugin configuration
- Added proper filters for META-INF files
- Configured correct relocations for dependencies:
net.kyori→com.voidcity.simplepolice.libs.kyoricloud.commandframework→com.voidcity.simplepolice.libs.cloudorg.spongepowered.configurate→com.voidcity.simplepolice.libs.configurate
-
SpotBugs Integration
- Configured SpotBugs to skip execution due to Java 17 compatibility issues
- Preserved code quality checks while ensuring successful builds
- Updated VS Code settings for proper YAML validation
- Added Bukkit plugin.yml schema support
- Fixed incorrect PocketMine validation errors
- Enabled proper autocompletion for plugin.yml files
- All modules building successfully:
- SimplePolice Parent
- SimplePolice API
- SimplePolice Plugin
- Minor build warnings (non-critical):
- Overlapping classes in shaded JARs (expected behavior)
- Java 17 compiler recommendations
- Some deprecated API usage in
CommandRegistry.java
- Consider updating Java compiler configuration to use
--release 17 - Review and update deprecated API usage in
CommandRegistry.java - Consider adding comprehensive test coverage