[ADMN/CHAT/FUN] StruckDown v1.5 - Stop annoying questions with a bang. [953]

Discussion in 'Inactive/Unsupported Plugins' started by alta189, Apr 28, 2011.

  1. Offline

    alta189

    StruckDown - Stop annoying questions with a bang and more
    Version: v1.5
    Static JAR: StruckDown.jar

    As a server admin or mod, it can get annoying to be constantly asked to give items or to change the time. StruckDown allow you to set a list of words/phrases that when chatted, the offending player will be struck with lightning. Not to worry though, you can protect yourself with a Permissions node! Please post any errors or ideas that you have! Special thanks to @DjDaemonnl who gave me the idea for this plugin! Also I wanted to give a special thanks to @Adamki11s who was always willing to help me fix an error that I could not figure out, check out some of his plugins because they are always great!

    Features:
    • Searches for words and phrases that you specify in the properties file
    • Supports Permissions
    • Strikes down any offending players
    • Will kill them unless they can find water and douse the fire on them
    • Customizable message to offenders
    • Reload config files in game via command
    • Can be case sensitive or non case sensitive
    • CraftBukkitUpToDate support
    • Punish System
    • Disable on specified worlds
    • Control the amount of damage from lightning strike
    Download StruckDown 1.5

    Download StruckDown 1.4
    Past Versions (open)


    IMPORTANT - Watch the video below so that you can understand the new punish system! Documentation will be coming soon!


    Default "settings.properties" File
    Code:
    #This is the settings file for StruckDown
    MSG:You have been struck down for your insolence!
    CENSOR:false
    CASE_SENSITIVE_CHAR:^|^
    MSG = It is the text that is sent to the offender when he gets struck with lighting.
    CENSOR = When true it cancels the offender chat event preventing anyone from seeing what the offender said.
    CASE_SENSITIVE_CHAR = When put in front of an entry in the "struckdown.properties" file, it checks each chat for the word/phrase with Case Sensitivity.

    Example "struckdown.properties" File
    Code:
    #Write words or phrases that will result in strike on each line
    make it day
    fUn
    ^|^WHAT
    #day
    make&&it&&night
    Can you&&give&&me
    make it day = When found in a chat it will strike the sender
    fUn = Will be searched with non case sensitivity
    ^|^WHAT = If ^|^ was the CASE_SENSITIVE_CHAR in the "settings.properties" file, this would be searched for with case sensitivity
    #day = Will not be searched because it is commented out.
    make&&it&&night = Will search for any chat that has the words make, it and night in any order
    Can you&&give&&me = Will search for any chat that has the phrase can you and the words give and me in any order
    Remember that you can mix and match search parameters. (Example: ^|^YoU&&are&&stupid = YoU will be searched with case sensitivity, but are and stupid will be searched with out case sensitivity)

    Punishments
    NOTE: Please watch the video at the top of this thread!
    jail - If you have the Jail plugin then you can jail the offender
    warning[This is a warning!!!] - Will send the offender are waring of what ever is between the two brackets in this case it will send "This is a warning!!!"
    kick - kicks the offender
    ban - bans the offender
    false - does not do anything

    Commands
    /struckdown reload - Reload the config files
    /struckdown version - Displays the version of StruckDown that you are using
    /struckdown add <word/phrase you want to add> - adds the word/phrase you write to your "struckdown.preoperties" file NOTE: You must use _ instead of spaces, so to add "give me" type "/struckdown add give_me"
    /struckdown status <OffenderName Case Sensitive> - Shows the rap sheet of the provided offender

    Permissions Nodes
    struckdown.reload - allows use of /struckdown reload
    struckdown.version- allows use of /struckdown version
    struckdown.protected - Protects the player from StruckDown
    struckdown.add - allows use of /struckdown add
    struckdown.status- allows use of /struckdown status


    To Do:
    Don't be shy if you have an idea, leave a post below and I might add it!
    • Make it so that only the offender gets hurt and not others or any blocks - 1.5
    • Multiworld: allow it to be enabled for some worlds, and not others - 1.5
    • Support to kick/jail/ban based on # offences (configurable) - 1.5
    • More commands, and clean up code - 1.5
    • Custom message per search parameter - Pushed back to 1.7
    • Can censor some, can not censor others -Pushed back to 1.7
    • Ignore McMMO parties - unknown
    Known Errors:
    None reported currently! :D

    Changelog:

    Version 1.5
    • Fixed /struckdown add
    • Added punish system
    • Recoded
    • Update alerts
    • Auto Update Config Files
    • Control the amount of damage
    • support for multiwords
    Version 1.4
    • Fixed command errors
    • added /struckdown add
    Older versions (open)
    Version 1.3

    • Cleaned up code
    • Added more search parameters (&&)
    Version 1.2

    • Added support for case sensitive searching
    • Added commad /struckdown reload
    • Added command /struckdown version
    Version 1.1
    • Added custom message sent to offenders upon being struck
    Version 1.0
    • Release
     
    Noppoly, DjDaemonnl and JWhy like this.
  2. Offline

    alta189

    That would not work with my punishment system. Sorry! :D. I like the idea though!
     
  3. Offline

    Squall

    What about a remove option in game, like if one of my admin miss-spells something like /struckdown remove [word]

    EDIT: Also /StruckDown list


    also:
    What about short cuts like:
    • /sd /StruckDown
    • /sda [word] /StruckDown Add
    • /sdr [word] /StruckDown Remove
    • /sdre /StruckDown Reload
    • /sds [name] /StruckDown Status
    • /sdv /StruckDown Version
     
  4. Offline

    alta189

    Ill add it to the todo

    but Ill use
    • /sd /StruckDown
    • /sd a [word] /StruckDown Add
    • /sd r [word] /StruckDown Remove
    • /sd re /StruckDown Reload
    • /sd s [name] /StruckDown Status
    • /sd v /StruckDown Version
     
    Squall likes this.
  5. Offline

    Squall

    Beautiful!
     
  6. Offline

    Zarius

    Love the new changes - have updated my server but haven't had a chance to configure it yet.

    Did notice that I keep getting the console message "<admin name> is protected from StruckDown." - this occurs on every chat message, whether it contains a forbidden world/phrase or not. Can you chance this to show only when the plugin would have actually punished you (otherwise it just makes my server.log harder to read)?
     
  7. Offline

    alta189

    I'll look in to that, I will also add a setting to turn that off all together. I will have that update out tomorrow morning!
     
  8. Offline

    Forecaster

    What's with the "Updating Punish List" that it keeps spitting out every 10 minutes?

    Is that really necessary?
     
  9. Offline

    alta189

    Next version will remove that, it was a part of the debuging process that I forgot to remove. :D
     
  10. Offline

    Forecaster

    Awesome! It really fills up the log with unnecessary lines...
     
  11. Offline

    alta189

    Yah, I know, I am working hard getting out 2 updates for this and MineMail, but I have exams this week so I dont have a lot of time :D
     
  12. Offline

    tomamoto

    Can't believe nobody's noticed or complained about this, but the permissions node is not "struckdown.protect" as stated in the documentation, but rather "struckdown.protected." Have to dig into the .class files to figure this out, but it's been working great ever since. Of course now I have 20x as much "<user> is protected" messages clogging up my log, but I know that's going to be fixed in the upcoming release. I really love this plugin, alta. It has thrown one of my server's most obnoxious members into fits of paranoia when we added the smiley "xD" to the struckdown list. Keep up the good work!
     
  13. Offline

    alta189

    Thanks for that, sorry didnt notice that, yah it will be fixed. expect the update this Saturday :D Sorry for the wait, I have exams the rest of the week
     
  14. Offline

    Zarius

    Update alerts are dangerous :( Case in point: restarting even just reloading the plugins on my server causes it to go down for a few minutes whilst I assume Struckdown attempts to contact a remote server which isn't responding.

    Error message:
    Code:
    01:19:04 [INFO] [StruckDown] Initializing StruckDown 1.5
    
    01:22:14 [SEVERE] java.net.ConnectException: Connection timed out
    01:22:14 [SEVERE]     at java.net.PlainSocketImpl.socketConnect(Native Method)
    01:22:14 [SEVERE]     at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
    01:22:14 [SEVERE]     at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
    01:22:14 [SEVERE]     at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
    01:22:14 [SEVERE]     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
    01:22:14 [SEVERE]     at java.net.Socket.connect(Socket.java:546)
    01:22:14 [SEVERE]     at java.net.Socket.connect(Socket.java:495)
    01:22:14 [SEVERE]     at sun.net.NetworkClient.doConnect(NetworkClient.java:178)
    01:22:14 [SEVERE]     at sun.net.www.http.HttpClient.openServer(HttpClient.java:409)
    01:22:14 [SEVERE]     at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)
    01:22:14 [SEVERE]     at sun.net.www.http.HttpClient.<init>(HttpClient.java:240)
    01:22:14 [SEVERE]     at sun.net.www.http.HttpClient.New(HttpClient.java:321)
    01:22:14 [SEVERE]     at sun.net.www.http.HttpClient.New(HttpClient.java:338)
    01:22:14 [SEVERE]     at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:935)
    01:22:14 [SEVERE]     at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:876)
    01:22:14 [SEVERE]     at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:801)
    01:22:14 [SEVERE]     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1139)
    01:22:14 [SEVERE]     at java.net.URL.openStream(URL.java:1029)
    01:22:14 [SEVERE]     at com.alta189.struckdown.UpdateControl.downloadFile(UpdateControl.java:148)
    01:22:14 [SEVERE]     at com.alta189.struckdown.UpdateControl.updateCheck(UpdateControl.java:121)
    01:22:14 [SEVERE]     at com.alta189.struckdown.StruckDown.onEnable(StruckDown.java:75)
    01:22:14 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    01:22:14 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:676)
    01:22:14 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:249)
    01:22:14 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:131)
    01:22:14 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:109)
    01:22:14 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:336)
    01:22:14 [SEVERE]     at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:201)
    01:22:14 [SEVERE]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
    01:22:14 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:270)
    01:22:14 [SEVERE]     at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:396)
    01:22:14 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:381)
    01:22:14 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
    01:22:14 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    01:22:14 [INFO] [StruckDown] Hooked into Permissions version 2.7.2.
    01:22:14 [INFO] [StruckDown] Initialized.
    
    Can I at least have an option to disable this? I much prefer looking for updates myself.
     
  15. Offline

    alta189

    I am removing it in a new update. Sorry didn't now much about this, I was just trying to add more features. I am for sure releasing an update tomorrow. :D
     
  16. Offline

    maetthew

    How can u use several Minecraft clients like you do in the video? Seems handy when you want to try permissions and stuff
     
  17. Offline

    alta189

    I just open several Minecraft instances. Since my test server is running in offline mode, I can enter in the wrong password and play in offline mode. That makes your username just Player. :D
     
  18. Offline

    maetthew

    Hmm. I am using Mac and when I try to open another instance of Minecraft it just pops up the one already running. Any ideas?
     
  19. Offline

    alta189

    Maybe download another minecraft and open that one?
     
  20. Offline

    maetthew

    It worked with just copying the Minecraft application and opening the copy. Thanks alot!

    This is turning into be very off topic. Could a mod please separate my and @alta189 discussion into a new thread?

    Anyhow, when I connect with the other instance of Minecraft it kicks me after 5 secs with the message "You moved to quickly, hacking?". Anyone knows how to fix this?

    I solved this temporarily by downloading the DontKickMe plugin.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  21. Offline

    Jake Buly

    how can I fix this? It gives me this message like every 5 minutes..

    Code:
    23:11:18 [INFO] [StruckDown] Something is wrong with the Offenders list, please notify alta189!
    PLEASE HELP!
     
  22. Offline

    Zarius

    @alta189

    Finally sat down and watched that video. A few comments at the top of the punish.properties file would help :)

    Works well but doesn't work with words censored by the "SimpleCensor" plugin. Does your plugin work on the lowest priority (or perhaps simple censor also works on the lowest priority and censors the words first)? Also the "Updating punish list" and "user is protected" (after every chat message, not struckdown) messages get annoying.

    Great plugin and look forward to seeing updates.
     
  23. Offline

    alta189

    I will try to get time to update it tonight, :D
     
  24. Offline

    DjDaemonnl

    still lovi'n it! :p
     
  25. Offline

    Deses12

    Hey, I was about to install this but the dropbox file justs 404's... You probably exceeded the dropbox limit.

    Could you put it somewhere else? MediaFire, GIT, I don't know, but I want it!
     
  26. Offline

    alta189

    I will soon dont have it one the computer that I am on now. Give me an hour or two sorry :(
     
  27. Offline

    rbos

    Would it be too much to ask for regular expression support?

    I'd like to match based on something like

    /^rbos$/i to match any line containing only 'rbos' and nothing else case-insensitively (^ matches beginning, $ matches end)

    or you could advanced things, like \d+ to match any string of 1 or more digits, \b to match word boundaries, \s to match whitespace .. that would be fantastic.
     
  28. Offline

    alta189

    Fixed it :D


    As sad as this sounds, I don't know much about "regular expression"
     
  29. Offline

    rbos

    Might be worth reading up on, they're extremely powerful for text parsing and Java probably has libraries for matching them, so it might be easy.

    Any tip on how I might accomplish that ZOT for people who spam my name in chat? it's not obvious from the documentation.
     
  30. Offline

    alta189

    ^|^rbos
     
  31. Offline

    SwearWord

    What am I doing wrong that's causing the && to behave like an OR?
     

Share This Page