[INACTIVE][SEC] Honeypot rev 6 - Honeypots (griefer traps) for Bukkit [677]

Discussion in 'Inactive/Unsupported Plugins' started by Argomirr, Mar 19, 2011.

  1. Offline

    Argomirr

    [​IMG]


    Honeypot - Honeypots (griefer traps) for Bukkit [677]
    Version: revision 6
    Author: Argomirr

    A plugin that allows Op's to create so called "honeypots," traps to identify and take care of dishonest players.
    Using the /honeypot or /hp commands you can turn any block into a honeypot: if a griefer tries to break it, everyone online will be alerted and the violation will be logged so an admin can take action, and optionally, Honeypot can kick or ban (MCBans) said player automatically. The block will be replaced, the trap reset - ready to catch the next griefer before he knows it.

    For example, you can place a little shrine with valuable blocks such as gold near your spawn, and turn them into honeypots. When a griefer logs in, sees nobody around and decides the shiny blocks on that shrine would look so much better in his house, he's already given himself away.

    DylanP made a video that shows very nicely what this plugin does: click here to watch it.

    Features:
    • Plug 'n play - just drop Honeypot.jar in your plugins directory, and you're good to go
    • Identify and take care of dishonest players (almost) entirely automatically
    • Very easy to use
    • Full logging of honeypot violations
    • Configurable via a .properties file
    • Supports MCBans and Permissions
    Download - mirror

    Source Code

    How to use
    To install Honeypot, drop Honeypot.jar into your plugins directory, and run the server once. The plugin will generate a new directory, plugins/Honeypot, where you can find the honeypot violation log (honeypot.log), the properties file (honeypot.properties) and a file used to store honeypot data (list.ncsv).

    Open honeypot.properties with your favorite text editor and make any changes you want, then run your server again.

    A little note: if you wish to enable the ban feature, set the kick feature to false. Note that you need to have MCBans installed in order for banning to work.

    You can apply the following permission nodes if you use the Permissions plugin:
    If you don't, it will default to Op's only.

    You can now log in and use /honeypot or /hp (Op's only, at this time) to start the process of making a honeypot. You will now be prompted to right click a block with the tool you specified (default: wooden axe) to create a honeypot. You can select any block, but it's recommended you choose a shiny block - something a griefer would want to break - and make sure it doesn't look like an obvious trap. (A single diamond block in the middle of nowhere looks somewhat suspicious, don't you agree?) You can keep selecting blocks until you exit the honeypot creation process by entering the /honeypot or /hp command again. To destroy the honeypot, simply have any Op break it and the block will be dropped as normal.

    Congratulations, you've set up your honeypot! You can set up as many honeypots as you like, but keep in mind that this system was not designed to be used as an area protection plugin, so don't apply /hp to every block on your house.

    One more thing: honeypot data will automatically be saved once the server stops, but you can also apply a manual save by using /honeypot save or /hp s to prevent data loss in case of a server crash.

    Updating
    If you are updating from revision 1, 2, 3 or 4, you should delete your honeypot.properties file and run the server once to generate a new one. Some new settings have been added and the settings file needs to be updated to reflect those changes.


    Changelog:
    Revision 6:
    • MCBans 2.8.x compatibility (Honeypot will still work with older versions of MCBans)
    • Fixed a bug that canceled honeypot creation if you hit a block that is already a honeypot
    Revision 5:
    (Download - CraftBukkit 617/670)
    • Added date and location of honeypots to the log file
    • Made /honeypot toggleable to ease the process of creating multiple honeypots
    Revision 4:
    (Download - CraftBukkit 602/617)
    • Updated code for latest recommended CraftBukkit build #602
    Revision 3:
    (Download - CraftBukkit 544)
    • Added an option to disable notifications to all online players
    Revision 2:
    • MCBans support (experimental)
    • Permissions support
    Revision 1:
    • Initial release
    And thanks to godsyn for the idea. (Sorry I didn't mention you before, it slipped my mind.)
     
  2. Offline

    llamalords

    This is a really good idea, I've added it to my server.
     
  3. Offline

    anon

  4. Offline

    Argomirr

    I'll add it to the to do list.
     
  5. Offline

    DeathBanes

    Great idea! Love it.
     
  6. Offline

    Color42

    Love this thing money I dont have to check for my GF traps in the logs like I used to do lol and hell yes MCbans auto ban support people lols :D

    edit:
    Works great but as they get kicked it leaves a ghost skin at the location of kick, and shit it toke me less then 5min to get my first griefer with this tool lol
     
  7. Offline

    Argomirr

    Haha, awesome! I bet he wasn't expecting that.

    As for the ghost skin, it's probably a Bukkit issue, since the plugin uses Bukkit's default kick.
    I've got the Permissions support down (was the easy thing anyways) and I'm working on MCBans, expect a new version soon. I'll look into SimpleBan after that.

    [EDIT]Oh, I see it's been approved for the released plugins section. Sweet!
     
  8. Offline

    rockNme2349

    Really clever idea. I don't need this because I run a private server, but I'm sure this will get a lot of use. Well done. This is one of the easiest to implement yet most effective anti-grief tool I've seen.
     
  9. Offline

    Odjit

    This is amazing <3 Would love the ban ability~!
     
  10. Offline

    Halfpixl

    This is causing my server to generate 2 world levels for some reason, maybe a plug-in conflict?

     
  11. Offline

    Orcworm

    This is brilliant, we've been using a 'diamond chest' and banning those who try to access it, this'll be much easier.
     
  12. Offline

    Argomirr

    Your server seems to be trying to load Honeypot.jar twice, no idea why. Do you have multiple worlds? The plugin currently picks the first world in your server list (Bukkit devs: we need a Server.getCurrentWorld()) but that couldn't cause new worlds to be generated if I'm correct.

    Oh, working on the MCBans support atm. There doesn't happen to be source code available for reference, right? :p
     
  13. Offline

    Halfpixl

  14. Offline

    Kevin Forte

    Can you possibly add support for the Jail plugin? If you did, this would be the best thing ever.
     
  15. Offline

    Timothy_Riches

    Congratulations on an EXCELLENT plugin! :)
     
  16. Offline

    Josh Harwood

    any way of having this send all op's mail via essentials is there?
     
  17. Offline

    Spazmic

    Just amazing. If it bans that would be awesome!
     
  18. Offline

    Argomirr

    @Halfpixl: No problem, just glad it wasn't my code. :p

    @Kevin Forte and @Josh Harwood: I'll look into it once I have time.
     
  19. Offline

    Kevin Forte

    Awesome, thanks a ton.
     
  20. Offline

    Argomirr

    Okay, I've added the support for Permissions and MCBans I promised. Permissions seem to work fine, but I have not been able to fully test the MCBans setup because I'm having problems getting it to work on my testing server. I have looked at source code from other plugins for reference though, so I'm hoping it's fine. Please tell me if it works! ;)

    If you're updating from rev 1, be sure to delete your honeypot.properties file and allow the server to generate a new one: some settings have been added. :)
     
  21. Offline

    Orcworm

    Doesn't work with MCBans, players are able to freely destroy the blocks with no ban as a result.
     
  22. Offline

    Argomirr

    That sounds more like a permissions issue, but I could be wrong. Are you getting any error messages in your server console? The traceback would be very helpful for debugging.

    [EDIT]Also, have you set the kick flag to false? Kicking takes precedence over banning so if that's enabled, banning won't work.

    I need to get MCBans set up so I can do some proper testing... Please bear with me for now.

    [EDIT 2]I have done some testing with a proper MCBans setup and all seems to be working.
     
  23. Offline

    Orcworm

    Sorry, I should've been clearer this morning, was in a hurry. I am using Permissions but left the plugin to OPs only, the commands and whatnot appear to work - kick was set to false, ban set to true. Using MCBans v2.7.4. No errors whatsoever in the console, the honeypot blocks just break like any other block when a non-OP destroys them.

    Ah, forgot to mention I'm on Bukkit #556. I guess that could be the culprit.
     
  24. Offline

    Argomirr

    It would be really helpful to know if the users who are destroying the blocks get the "Honeypot removed message." Right now it sounds like a permissions issue, which is a good thing because it should be a whole lot easier to fix. I haven't been able to replicate the problem so far, which doesn't exactly make debugging easy... Guess I'll have to take a closer look at it.

    One thing you could try is to set the permissions to admins, right now the plugin just skips the Op check altogether if Permissions is installed.
     
  25. Offline

    Orcworm

    My apologies, a third restart seems to have fixed it, as if by magic.
     
  26. Offline

    Spazmic

    Can you please add normal ban ? Because i'm no using MCBans and I don't plan to use it.
    I have the kick flag and the ban flag set to true, and its not banning. CB 556
     
  27. Offline

    Qwerto227

    nice plugin!
     
  28. Offline

    Argomirr

    Good to hear it's working now.

    I don't think the Bukkit API currently has a way to ban a player from a plugin. I haven't seen anything like that in the docs. I'd love for someone to prove me wrong about that, though. :p

    (On a side note, if you wish to enable banning you need to set the kick flag to false, and the ban flag to true. If they're both set to true, kicking will take precedence, because it is a less extreme measure. MCBans is still required though.)
     
  29. Offline

    Spazmic

    I was wondering why my server was crashing :p. Actually, Anjocaido's plugin called ''SimpleBan'' has the ability to ban a player, so I think it's possible to ban a player from a plugin. Maybe there's a special coding behind it haha :p
    Anyway even if you don't plant to implement it that was a very good job for the time I had this plugin on my server :) (caught 14 people :D :D)
     
  30. Offline

    Argomirr

    Yeah, the SimpleBan plugin implements its own banning system. I don't think it's possible by default, and because I didn't want to reinvent the wheel I chose to use MCBans for the banning. I'm going to look into SimpleBan and the Jail plugin too though.

    Also, your server was crashing? Was my plugin causing that? (Wow, 14 people? Nice.)
     

Share This Page