[ADMN/CHAT] AntiPub v0.3-REVIVAL - a plugin dedicated to blocking spam. [1.4.7-R1.0]

Discussion in 'Archived: Plugin Releases' started by Wolfy9247, Dec 30, 2011.

  1. Offline

    Phantom Index

    Ok fine. Players can still type IPs and it will still show up.
     
  2. Offline

    Wolfy9247

    That means HeroChat or another plugin that you're using is overriding my events and causing it to re-enable events that have already been cancelled. I'll see what I can do about it sometime.
     
  3. Offline

    Conderan

    Loving this. Can you add something that will alert people with a permission that someone tried and give them the message that someone tried to type? I figure if the mods/admins can see the message they can ban the person before they make a 2nd attempt. If its some sort of glitch and they were.just.doing.something.weird.... well, human eyes should be able to see that.
     
  4. Offline

    Wolfy9247

    I'll be able to add that by tomorrow! Well, if I get time. I assure you sometime soon though.

    Conderan
    Updated to v0.2.3
     
  5. Offline

    winter4w

    I get this erro

    Code:
    15:57:22 [SEVERE] Error occurred while enabling AntiPub v0.2.3 (Is it up to date
    ?): org.bukkit.plugin.PluginManager.registerEvents(Lorg/bukkit/event/Listener;Lo
    rg/bukkit/plugin/Plugin;)V
    java.lang.NoSuchMethodError: org.bukkit.plugin.PluginManager.registerEvents(Lorg
    /bukkit/event/Listener;Lorg/bukkit/plugin/Plugin;)V
            at com.wolfy9247.AntiPub.Main.onEnable(Main.java:38)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:230)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:970)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:280)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:190)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:173
    )
            at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:355)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:342)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:174)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    can you make t so it inors camas also

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

    Wolfy9247

    winter4w
    That error can derive from one of two things:
    • I derped somewhere.
    • You're not using the latest version of CB

    I'll just assume you're not using one of the latest versions, considering it's giving a "NoSuchMethodError" with the registerEvents, but I'll check it out sometime.

    Also, what do you mean by it ignoring commas?
     
  7. Offline

    winter4w

    No i was wondering if you can make people not use camas like 189.178,278.3748 people do that and it goes throungh so can you fix that thing
     
  8. Offline

    Deathfromace

    Works fine for me and while I don't block urls I did see it only blocks if you use www. and most people dont use www. and only use .com
     
  9. Offline

    Wolfy9247

    Yeah, I could possibly and try to make it so it just extracts and checks for something like just ".com" but it's kind of hard to work with right now as is. I'll see though.
     
  10. Offline

    clavat

    Hi,

    I'm happy to see your plugin evoluting !

    Great Job ;)
     
    Wolfy9247 likes this.
  11. Offline

    Conderan

    One thing though, if you're going to ban .com's and the like.. can you just filter out any sentences that have 2 periods in the middle of a word without using spaces? would also like a safe domain..

    DO want people to be able to say "oh, yeah, you can do that if you donate on the website, example.com"
    DO NOT want people able to say "Oh, yeah, its awesome.. come play on competingserver.com"
     
  12. Offline

    Wolfy9247

    I didn't quite understand what you were trying to say, but as of right now if http:// or www. isn't included, it isn't blocked. I can try and add that functionality when I get time. The periods in the setence wouldn't matter though, especially if they were to give an IP instead of a domain, such as "Oh, yeah, it's awesome! Come play on 70.xx.xxx [insert valid IP address]".
     
  13. Offline

    Conderan

    I'm trying to stop people from sharing other minecraft server's ip address... they rarely include www in them, and can be either an ip or a dns. Its much more common that someone comes on to advertise their new minecraft server than anything else.

    Server addresses can be really be: (anything-or-nothing.)anything.limitedlistofthings, yes? so rather than http:// or www.... might make more sense to stop things that end in .com, .net, .org, .co.uk, etc (list gets longer all the time) or just have periods in the middle of sentences without spaces.

    But, yes... if you're successful in filtering all domains and ips, then adding a safe list would be good so we can allow people to be reminded about what our website is if they're not sure. Get the question fairly often.
     
  14. Offline

    Wolfy9247

    Hey there, everyone! I'd like to just inform you of a few things I'll be working on within the next few weeks. I've taken in a lot of your suggestions, but I'd like your feedback any further before I get really into it (more than I already have at least). So, here it goes.

    Here's a current example of the new config.yml:
    config.yml (open)

    Code:
    AntiPub:
        IPv4:
            Block IPv4: true
            Custom Filters:
                - '\\b0*(2(5[0-5]|[0-4]\\d)|1?\\d{1,2})(\\.0*(2(5[0-5]|[0-4]\\d)|1?\\d{1,2})){3}\\b'
            Custom Filter Override: false
            Alert User: true
            Alert Admins: true
            Exempt IPv4:
                - '192.168.1.170'
        Domains:
            Block Domains: true
            Custom Filters:
                - '^[_a-z0-9-]+(\\.[_a-z0-9-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*(\\.[a-z]{2,4})$'
            Custom Filter Override: false
            Alert User: true
            Alert Admins: true
            Exempt Domains:
                - 'http://google.com'
        Block Messages:
            IPv4: 
                User Notification: '&4*user, posting of IPv4 addresses isn't allowed on this server!'
                Admin Notification: '*user (*ip) attempted to post: *message!'
            Domains: 
                User Notification: '&4*user, posting of domains isn't allowed on this server!'
                Admin Notification: '*user (*ip) attempted to post: *message!'
    


    If you couldn't already tell from looking at that, here's a brief over-view of the changes in v0.3:
    • An updated format of the config.yml.
    • Custom (regex) filters! You can either choose to have them as an alternative to the filters set in place, or you may provide others to check against AS WELL AS the ones already in place. This is specified by the "Custom Filter Override" option.
    • The alerts to both the user and the admin upon a filter being triggered are now optional. The 'admins' are whoever has "AntiPub.mod" in the permissions. However, I'm not sure how incompatible it'd be with other permission systems, but if you'd like to provide an alternative method you think might be easier, please let me know!
    • Exempt Domains and IPv4 addresses! Yes, you may now provide a way to not have your own MC domain and/or address filtered. However, anyone with the "antipub.bypass" command is still never filtered.
    • Colors and variables in the configuration! You may use the Minecraft color codes to color the configuration strings as well as provide variables such as the user being affected, their IP/hostname, and the message that was blocked.
    • Backside improvements (hopefully!) I'm trying to clean up the code with this new update, but I'm not an 'expert' at programming, so I'll try my best. If anyone would like to help me along with giving me some tips on cleaning up code and making it more efficient, feel free to shoot me a PM.

    So as you can see, this is going to be a pretty big update! I won't really be releasing any updates in between the progress as it's a bit easier for me to do it just all and release it in one big update for you. Thanks for your patience in the mean-time though, and thanks for sticking with the plugin!

    PS: Yes, the current v0.2.3 should be compatible with all current CB versions, including CB-1.1-R5. Please make a ticket on my BukkitDev if there's any issues in the mean-time and I'll try and get to it ASAP!
     
    DreamPhreak likes this.
  15. Offline

    TheFluffey

    Suggestion: BLOCK .com
     
  16. Offline

    Wolfy9247

    TheFluffey
    There was no need to quote the whole topic, first of all, but if you would have read the post previous yours you would have seen that I'm already working on it...
     
  17. Offline

    winter4w

    Can you make it able to block cama also 262,283.284 people are able to do hat can you fix
     
  18. Offline

    winter4w

    Can it work with R6
     
  19. Offline

    ashlii21

    Hi I was just wandering does this block private messages that players send to each other or is it just public chat?
     
  20. Offline

    Wolfy9247

    I've no idea whether it's currently working with R6 at the moment as my machine is currently broken and I'll only be able to push out the update when it's back up (within the next 2 days...) sorry!

    I can't exactly filter private messages without hooking into something such as Vault to manage other plugins hooking into that event... I could possibly look into it? Right now it just filters public chat though. You could try it with PM's and see what happens though!
     
  21. Offline

    Mishrathium

    Suggestion: AutoBan feature.

    It is super easy to get around this and only takes a few tries to do so. So include a a autoban/tempban/mute/do nothing - whatever you want - but that is the only way to remove people from doing this. Since if you are on and they do it - well you see it anyway. Needs a babysitter feature for auto removing the player when admins are not online.
     
  22. Offline

    Wolfy9247

    I might try and add a configuration value for X amount of attempts to ban someone, and then just ban them temporarily for the time specified. I'll leave it to the admin to take care of whether or not it's a global ban or anything, unless I should include that? No idea right now.
     
  23. Offline

    aviator14

    Really hope the regex version comes out soon, the current version seems to miss any kind of dns :/
     
  24. Offline

    Wolfy9247

    Once and if it's approved, you'll be able to download the latest alpha version:
    http://dev.bukkit.org/server-mods/antipub/files/2-anti-pub-v0-3-snapshot/

    Note that I will be trying to do a code overhaul with it and am still looking for contributers to the project if possible. This version might not meet standards, but what's why it's in alpha.

    Thanks for your patience, and I hope to be able to get a final, stable version out within the coming weeks... I've just been so busy with so many other things.
     
  25. Offline

    CBServer

    This deserves a pat on the back sir, just one thing though. After testing it out with some users they can still bypass the whole antipub system e.g youtube.com or google.com without the www. allows the user to bypass antipub. Just wondering if a fix for that will be coming anytime soon?

    Other than that great work! :)
     
  26. Offline

    Wolfy9247

    This version should implement the updated regex, but either it doesn't and that's been made after I created the .jar file -or- there's something in the code that's making it not work correctly. But, make a bug report on it on the BukkitDev and I'll be happy to address it when I get time next.

    Thanks for your feedback!
     
  27. Offline

    Deathfromace

    Wanted to thank you for this plugin. It's a nice way to stop people from doing it and at the same time make it known that it's an obvious thing you don't welcome on your server. So people bypassing it can't really complain that they didn't know.
     
  28. Offline

    RiotShielder

    Error in your first post
    Version: v0.2.2
    Should be
    Version: v0.2.3
    :)
     
  29. Offline

    Wolfy9247

    Sorry for not having kept up with this plugin, it's getting down to summer break for me now and hopefully I'll have time to try and improve this plugin among other things I'm allocating my time to.

    If anyone would like to help, please contact me via PM. Thanks!
     
  30. Offline

    SubNoize

    Sounds good. Looking forward to it
     

Share This Page