Simple Police v3.2
Change Log:
Overview of changes:
1. Added Frisking system
2. Made many changes to the config.yml file
3. Added a message.yml file
4. Changed the method for getting the api
5. Fixed many potential bugs.
Message.yml File
Added a message.yml file, if you would like to edit the plugins messages or translate this plugin.
Added a Spanish translation for those people who speak Spanish, it can be downloaded here:
https://raw.githubusercontent.com/ramdon-person/SimplePolice/master/Translations/messages_es.yml
Frisking System
Added a frisking system which allows you to basically scan players for contraband item.
Things like the precent chance of an item being detected and the material for the frisk stick can be configured in the config file.
The frisking system supports custom items, and has support for quality armory guns.
Fixed many potential things that could of caused an error while using this plugin (Null pointer exceptions)
Config Changes
Note: I have added a system that automatically updates the config file, so there is no need to do it yourself.
1. You can now change the baton material type
2. You can enable frisking
3. If Frisking is enabled, you can set the percent chance of detecting an item
4. You can change the frisk stick material
5. if Frisking is enabled, you can make it so all guns are contraband
6. You can make the /911 command send the coordinates to players
7. If frisking is enabled, you can set the cooldown time between frisks in seconds
8 & 9. added an option to set a custom command for /911 and /police, due note that this feature is not working at this time.
Api
Starting version 3.2, the api can be accessed this method:
Code (Text):
SimplePoliceAPI api = ((SimplePolice) Bukkit.getPluginManager().getPlugin("Simple Police")).getApi();
In addition to that, a few methods have been added to the api