Simple Police is an extremely configurable police plugin with many features.
Features
- Jailing System
- Payment to police on player arrest
- Percentage of player's balance
- Fixed value from player's balance
- Fixed value from server
- Withdrawal from player on arrest
- Configurable baton type
- Frisking System (Contraband Items, supports Quality Armory)
- Cooldown between frisks on a player
- Percentage chance of finding an item in an inventory slot
- Configurable baton type
- Police Chat
- 911 System
- Messages online police
- Provides player coordinates
- Police Teleport
- Teleports to a player a random number of blocks away (distance is configurable)
- Safe Regions
- Prevents players from being arrested
- Jail Time GUI
- Jails
- Custom jail locations
- Automatically load balances to put players in emptiest jails
- API
-
Maven Repo:
Code (Text):
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
Code (Text):
<dependency>
<groupId>com.github.fierceeo</groupId>
<artifactId>simplepolice</artifactId>
<version>Tag</version>
</dependency>
Java docs:
https://ci.codemc.io/job/fierceeo/job/SimplePolice/JavaDoc/
Getting the api instance:
SimplePoliceAPI api = (SimplePoliceAPI) Bukkit.getPluginManager().getPlugin("SimplePolice");
Note: your plugin will have to depend (or soft depend) on SimplePolice to use the api
Basic Plugin Operation
Adding a police:
- /police admin police add (username)
Jailing a player:
- /police admin jail add (jail name)
- attack a player with a baton (default: blaze rod)
Jailing a player (via command):
- /police jail (username)
Adding an item to the contraband item list (adds the item in your main hand):
- /police admin frisk add
Frisking a player:
- Right click a player with the frisk baton (default: blaze rod)
Calling 911:
- /911 (message)
Police Teleport
- /police tp (username)
Toggling Police Chat
- /police chat
Config
The config file is explained here:
https://github.com/fierceeo/SimpleP...in/src/main/resources/SimplePolice.properties
Localization
This plugin can be localized into any language that UTF-8 supports.
The messages file is explained here:
https://github.com/fierceeo/SimpleP...Plugin/src/main/resources/Messages.properties
Support
If you need support join the discord server:
https://discord.gg/rxzHRHcC7W