FriskStick
FriskStick
Please, use the ticket system for issues! In addition, make sure to check the Important Information section of this page before downloading!
Requested by TaylaGang- http://forums.bukkit.org/threads/frisking-plugin-read-the-thread-for-more-info.88332/
NOTE: dchaosknight here again, everyone! Before you get excited about my return, don't get your hopes up just yet. I can't say if this is a full-fledged return to maintaining this plugin; it's too early to tell. I can only hope that I won't lose motivation this time around, but that's all it is: a hope. All I can say is this: I'm glad to be updating this plugin again, and I hope you all are, too. Happy frisking!
This highly-configurable plugin will allow you to search people for drugs and other contraband, able to be defined in the config. It also implements other features such as a "beatdown mode", which allows "cops" to beat other players if they don't comply in order to get the job done.
Features
- Right click on or hit a player while holding a stick to frisk them! Don't abuse it, though: with each frisking that they don't have drugs on them, you'll take damage!
- When you frisk them, the drugs that were in their inventory will be taken out and confiscated by you!
- Auto-jail players! (Requires Essentials to work)
- Report other players for drugs!
- Chase players down when they're on the run!
How Frisking Works
The ability to frisk someone relies upon permissions, of which you can find a list below. Frisking is pretty simple: right click or hit the player with a stick in your hand (configurable). Once you've done that, you will attempt to frisk them for a certain amount of time (also configurable), during which the player you are frisking can either run or stay put. If they stay, they will immediately be frisked, taking any drugs in their possession away from them and giving them to you. If the config allows for auto-jailing, the player will also be jailed (NOTE: Requires Essentials to work). If they don't have any drugs, however, you will be punished by taking damage. If the player chooses to run, they will enter a mode called "beatdown mode" and be considered to be "on the run". In this mode, right clicking them won't work; you can only hit them. Once they lose enough health, be it by falling or by you hitting them, they will be too weak to carry on, allowing you to frisk and jail them.
Config
The config reference for this plugin can be found here.
Commands
The command list for this plugin can be found here.
Permissions
The permission list for this plugin can be found here.
Source Code
You can see the source code on GitHub.
What's New?
1.0 Beta
- Rewrote plugin from scratch in an effort to make the code more organized and legible
- Added beatdown mode
- Removed ability to frisk by command
- Fixed every bug currently reported, if memory serves:
- Fixed duplication glitch with renamed items
- Fixed auto-jailing issue
- Fixed frisking inventory issue (the items didn't always appear in the cop's inventory)
- Fixed internal error when frisking
- Added more permissions
- Added more config options
- Switched from an id-based to a name-based system for defining drugs in the config
- Added a few new commands
- Updated to 1.7.9
Click here for the full change log.
Important Information
- If you happen to be updating from an older version to 1.0 Beta, delete the old config file before using this plugin!
- This plugin currently utilizes Plugin Metrics for stat collection. Plugin Metrics collects information concerning the following things about your server: the contents of plugins/Plugin-Metrics/config.yml, the number of players currently online, the version of the server you're running, the version of FriskStick you're running, and the Mineshafter status of your server. It will send most of this information (excluding the Mineshafter status) along with the version of Plugin Metrics being run, the GUID of the server (which is what Plugin Metrics uses to identify servers in place of IPs), and any custom data associated with FriskStick to mcstats.org, where it will be made publicly available for everyone to see. If you wish to exclude your server from this data collection, go to your plugins/Plugin-Metrics directory and set opt-out in the config.yml to true.
- In addition to using Plugin Metrics, FriskStick also uses CurseForge's API to detect available updates on the BukkitDev website. If you wish for the plugin to not make the internet connection necessary to check this, set enable-update-checking in plugins/FriskStick/config.yml to false.
- The auto-jailing feature is dependent on Essentials to work. If Essentials is not installed on your server, the plugin will still load, but the auto-jailing functionality will be missing regardless of the settings in the config.
- If you are installing Beta 1.0 and FriskStick was not previously installed, go into your plugins directory and create a folder titled FriskStick. If you fail to do this, the plugin will crash upon starting. This bug is due to an oversight during testing, as the folder was already present on the test server. It will be fixed in the next release, but until then, I apologize for the inconvenience.
Ok I think I'm retarded since I've seen noone ask it yet but ehmm ... How do I spawn this stick -,-
Can anyone tell me if it still works for 1.8? I know it's atmost 1.7.9. Also, is there another jailstick plugin to jail players when they hit them 5 times.
Can't use this for my server :( please update to 1.8 <3
@Jets_iphone
I'm not entirely sure I understand your issue. Either way, the comments aren't the best place for issues; please post a ticket instead and I'll see what I can do.
Please help me with this my players will just jail the starter kit help!
FREAKIN UPDATE!
Why not add " Jails: -jail1 -jail2 -jail3" ect to the config? that way you can add as many jails as you want and it will choose randomly (I have many small cells)
Please update and at least fix the auto jail and /showreports bugs!!!! AMAZING PLUGIN though!!!! I would be willing to donate if you could fix those soon…
Also the bug of the frisker not receiving the drug from the player...
@dchaosknight
Good to hear you have started something.
For the unlimited frisking: Whenever a frisker tries to frisk someone, it will sometime fail to give the item to the frisker. This allows a frisker to frisk over and over again, but not getting item.
@Staartvin
Work on faxion_survival's suggestion has really only just begun, to address your question. As for the bugs, I know about the item duplication if you are referring to renamed items, but could you please expand on the "unlimited frisking"? I may very well have heard of it before, but I don't remember if I have. Thank you.
I see that you are replying to comments, but your last change on GitHub was months ago. How is the suggestion of faxion_survival coming along?
Also, there are some plugin-breaking bugs that really need to be fixed. (Item duping, unlimited frisking, etc.)
@deleted_8117261
Thnks for the quick reply and thanks for consideration, and as i said it should be very easy with the API it provides here and if you implement it i will personally say thanks with a donation when i can (as money atm is a little bad with the server bills)
@Golumpa
We already have a jail implementation for essentials but we'll look into it.
Hey Great plugin I would LOVE to see if there was an option to add the plugin Jail support to it so the player automatically gets jailed if it finds banned items. It can easily be done with the Jail API and it can be a toggle feature so you choose if you want to use that feature or not.
Also as much as I know Jail is getting updated when it does not work anymore as they have finished implementing features. This feature will be PERFECT for my server so the guard doesn't have to write out /jail (user) (time) (reason) every single time.
Thanks for reading my suggestion and I hope you take it into consideration
@UnitedForAll
We are still working on this, but we are currently in the middle of adding new features and commands. Once we are done, we will update it. I apologize for the wait, but it'd be better to complete the implementation of these features than to release it as-is.
Please update! I am desperate for this to work on my server once more! Thanks!
@hunajameloni
We are working on updating it. There are still bugs to fix and many new features to add so please be patient. Also, bukkit has not yet released a recommended build for 1.5.1 last I checked.
Update this to 1.5.1
@ViscousSummer88
Once again, the issue that you have reported here is a known bug; however, it is unclear what is causing it.
Much issues in Alpha build, multiple messages, still, failed to found items on user message when you did, double damage, errors in console: 18:09:14 [SEVERE] Could not pass event PlayerInteractEntityEvent to FriskStick v 1.3.1 Alpha org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j ava:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:462) at net.minecraft.server.v1_5_R2.PlayerConnection.a(PlayerConnection.java :1083) at net.minecraft.server.v1_5_R2.Packet7UseEntity.handle(SourceFile:36) at net.minecraft.server.v1_5_R2.NetworkManager.b(NetworkManager.java:292 ) at net.minecraft.server.v1_5_R2.PlayerConnection.d(PlayerConnection.java :110) at net.minecraft.server.v1_5_R2.ServerConnection.b(SourceFile:35) at net.minecraft.server.v1_5_R2.DedicatedServerConnection.b(SourceFile:3 0) at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:5 78) at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:2 25) at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:4 74) at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java :407) at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:5 73) Caused by: java.lang.NullPointerException at friskstick.cops.plugin.JailPlayer.jail(JailPlayer.java:26) at friskstick.cops.stick.Stick.friskStickPlayer(Stick.java:120) at sun.reflect.GeneratedMethodAccessor132.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:425) ... 14 more