Plugin Help PwnFilter and its Regex...

Discussion in 'Plugin Help/Development/Requests' started by To175, Dec 27, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    To175

    Hello, I have internal error (82 - Internal error when /pfreload) because of my regex I think :(
    Help me please :/
    Thanks :)

    ERROR (open)

    [20:48:12] [Server thread/INFO]: [PwnFilter] Disabling all listeners
    [20:48:12] [Server thread/ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'pfreload' in plugin PwnFilter v3.3.1
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[craftbukkit.jar:git-Spigot-1642]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:181) ~[craftbukkit.jar:git-Spigot-1642]
    at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchCommand(CraftServer.java:767) ~[craftbukkit.jar:git-Spigot-1642]
    at net.minecraft.server.v1_7_R4.PlayerConnection.handleCommand(PlayerConnection.java:1043) [craftbukkit.jar:git-Spigot-1642]
    at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:880) [craftbukkit.jar:git-Spigot-1642]
    at net.minecraft.server.v1_7_R4.PacketPlayInChat.a(PacketPlayInChat.java:28) [craftbukkit.jar:git-Spigot-1642]
    at net.minecraft.server.v1_7_R4.PacketPlayInChat.handle(PacketPlayInChat.java:65) [craftbukkit.jar:git-Spigot-1642]
    at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:186) [craftbukkit.jar:git-Spigot-1642]
    at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81) [craftbukkit.jar:git-Spigot-1642]
    at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:734) [craftbukkit.jar:git-Spigot-1642]
    at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) [craftbukkit.jar:git-Spigot-1642]
    at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [craftbukkit.jar:git-Spigot-1642]
    at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [craftbukkit.jar:git-Spigot-1642]
    at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [craftbukkit.jar:git-Spigot-1642]
    Caused by: java.util.ConcurrentModificationException
    at java.util.HashMap$HashIterator.nextEntry(HashMap.java:839) ~[?:?]
    at java.util.HashMap$KeyIterator.next(HashMap.java:874) ~[?:?]
    at com.pwn9.PwnFilter.DataCache.stop(DataCache.java:106) ~[?:?]
    at com.pwn9.PwnFilter.command.pfreload.onCommand(pfreload.java:46) ~[?:?]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit.jar:git-Spigot-1642]
    ... 13 more


    CHAT.TXT (open)

    match (je deteste|fuck)+ ce serveur|ce serveur (est nul|pu|pue|est pouri|est pourri|c'est de la merde|de merde)+|server sucks
    then replace Ce serveur est super !
    then console ban %player% Server Hating.

    match lag\b
    then rewrite Ce serveur est super mais je lag
    then console say %player% devrait demander une vraie connection au papa noel

    match comment
    then warn &cheureusement que tu as lu les panneaux et les regles avant de poser la question

    # REPLACE F Bomb variants with fudge. Also catches ffffuuuccckkk
    # http://www.regular-expressions.info/repeat.html
    match f+u+c+k+|f+u+k+|f+u+q+|b+i+t+e+|c+u+e+|p+d+|t+g+|p+u+t+e+|c+o+n+a+s+e+|p+i+s+e+u+s+e+|p+i+s+e+u+r+
    then replace **
    then warn &4Surveille ton langage !
    then notify pwnfilter.admin %player% a dit : fuck bite tg pd pute conas.
    then points 2

    match m+e+r+d+|c+o+n+a+r+|s+a+l+o+p+|c+o+u+i+l+e+|l+o+p+e+t+e+|t+a+p+e+t+e+|\bc+o+n+\b
    then replace **
    then warn &4Surveille ton langage !
    then notify pwnfilter.admin %player% a dit : merde connard con
    then points 2

    match c+h+i+e+|n+t+m+|n+i+q+u+|n+i+q+u+e+|n+i+k+|n+i+q+|p+u+t+a+i+n+|p+u+t+e+i+n+|p+u+t+i+n+|g+e+u+l+|g+u+e+u+l+|t+r+i+s+o+|t+r+i+z+o+
    then replace **
    then warn &4Surveille ton langage !
    then notify pwnfilter.admin %player% a dit :chier nique putain trizo gueule
    then points 2

    match m+o+c+h+e+|m+o+c+h+
    then replace beau
    then warn &4Calme ton chat !

    match bvn
    then replace Bienvenue
    then warn &4Evite les abbreviations !
    then points 1

    match bjr
    then replace Bonjour
    then warn &4Evite les abbreviations !
    then points 1

    match slt
    then replace Salut
    then warn &4Evite les abbreviations !
    then points 1

    match bsr
    then replace Bonsoir
    then warn &4Evite les abbreviations !
    then points 1

    match to175
    then warn &4Si tu veux parler au fondateur alors fais une vraie phrase et tu auras une réponse

    match tfk
    then replace tu fais quoi ?
    then warn &4Evite les abbreviations !
    then points 1

    match mrc
    then replace merci
    then warn &4Evite les abbreviations !
    then points 1

    match stp
    then replace s’il te plait
    then warn &4Evite les abbreviations !
    then points 1

    match serveur de merde|nul ce serveur|mecraft (est|c'est) nul
    then rewrite &dJ'adore Mecraft !
    then console ban %player% Bah va-t-en alors :)
    then console banip %player%

    ###### FIXES FOR 'aaaaa', 'hihihihihihhi', 'lolololololol' type spam.
    match (.)(?=\1\1+)
    then deny
    then warn &cEvite de péter les plombs :p

    # fixes "hihihihihi"
    match (..)(?=\1\1+)
    then deny
    then warn &cEvite de péter les plombs :p

    # fixes "lollollollollol"
    match (...)(?=\1\1+)
    then deny
    then warn &cEvite de péter les plombs :p

    match (?m)(?!^.$)(?<=\s|^)[b-zB-Z](?=\s|$)
    then replace

    match ^[b-zB-Z]$
    then deny

    # REPLACE CAPS!!! New in Version 2.0.0!!! Yes.. not just block or warn but replace with lower
    match (\p{Lu}|\s){5,120}
    then warn Évite les majuscules, on se calme !
    then lower
    then points 1

    # REPLACE AN IP ADDRESS / DOMAIN NAME and IGNORE ones you don't want to block, replace it with your url, kick the player with a message and log the event.
    match \b\d{1,3}+\p{P}*\d{1,3}+\p{P}*\d{1,3}+\p{P}*\d{1,3}+\b
    then replace Mecraft.fr j'adore
    then console ban %player% Pas de pub chez nous !
    then console banip %player%

    # REPLACE AN IP ADDRESS / DOMAIN NAME and IGNORE ones you don't want to block, replace it with your url, kick the player with a message and log the event.
    match ([\w-\.]+)((?:[\w]+\.)+)([a-zA-Z]{2,4})
    ignore string google.com|youtube.com|bukkit.org|minecraft.net|minecraftwiki.net|mecraft.fr
    then replace Mecraft.fr
    then console kick %player% Pas de pub chez nous SVP !
    then notify pwnfilter.admin %player% a pub un domaine ou IP
    then points 2

    ###### FUN Filters - use "rewrite" instead of replace to maintain colors
    # FUN: rewrite tremor or trem with a pretty colors, using "rewrite"
    match \btremor+\b|\btrem+\b
    then rewrite &bt&cREM&bor&ft

    match planet minecraft
    then rewrite Planet &aKrypton&r
    then points 5
    then console kick %player% Go away LOL !

    COMMAND.TXT (open)

    # This is a base file for you to configure.
    # Please refer to http://dev.bukkit.org/bukkit-plugins/pwnfilter
    # for more documentation on how to configure these files.

    # Sample Command aliases / overrides
    # Prevent /give
    match ^/give
    rule A1 /give
    ignore permission pwnfilter.admin
    then deny
    then kick %player% You are not allowed to use TooManyItems mod.
    then notify pwnfilter.admin %player% wants give.

    # Prevent /op
    match ^/op
    rule A2 /op
    ignore permission pwnfilter.admin
    then deny
    then burn &aTu es stupide, pourquoi as tu essayé ça ?
    then notify pwnfilter.admin %player% wants op.
    then console kick %player% Oust !

    match ^/pl\b
    rule A3 /pl
    ignore permission pwnfilter.admin
    then deny
    then warn &aPlugins (4): Essentials, Authme, AwesomeSauce.
    then console kick %player% Oust !

    match ^/\?\b
    rule A4
    require command ?
    then console kick %player% Oust !

    match ^/seed
    rule A5 /seed
    ignore permission pwnfilter.admin
    then deny
    then warn &aSeed: 3.14159265358979323846

    match ^/bukkit
    rule A8 /bukkit
    ignore permission pwnfilter.admin
    then deny
    then warn &aHello I am a rototo

    match ^/gm
    rule A6 /gm
    ignore permission pwnfilter.admin
    then deny
    then warn &aWouldn't that be nice? Well, too bad.
    then kick %player% You are not allowed to use TooManyItems mod.
    then notify pwnfilter.admin %player% wants gm.

    match ^/gamemode
    rule A7 /gamemode
    ignore permission pwnfilter.admin
    then deny
    then warn &aYa, umm no, don't try that.
    then kick %player% You are not allowed to use TooManyItems mod.
    then notify pwnfilter.admin %player% wants gm.
     
    Last edited: Dec 27, 2014
  2. Offline

    timtower Moderator Moderator

    Could not pass event PlayerLoginEvent to AuthMe
    It authme for offline mode here?
     
  3. Offline

    To175

    Nope :) this is a double check of security (premium + password for large family) + I need timestamp of connexion :)
    @timtower
     
  4. Offline

    timtower Moderator Moderator

    @To175 You get the timestamp anyways in your logs but hell.
    But you aren't showing a PwnFilter error, it is an authme error.
     
  5. Offline

    Sage905

    Does this happen every time you execute a /pfreload, or just sometimes? What version of PwnFilter are you using? There is an issue with the current release version that can cause an NPE, but I've never seen it cause the traceback error you're getting.
     
  6. Offline

    To175

    Yes I need to split Ip+location+timestamp :)
    @timtower
    And sorry, here is Pwnfilter :
    ERROR (open)

    [20:48:12] [Server thread/INFO]: [PwnFilter] Disabling all listeners
    [20:48:12] [Server thread/ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'pfreload' in plugin PwnFilter v3.3.1
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[craftbukkit.jar:git-Spigot-1642]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:181) ~[craftbukkit.jar:git-Spigot-1642]
    at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchCommand(CraftServer.java:767) ~[craftbukkit.jar:git-Spigot-1642]
    at net.minecraft.server.v1_7_R4.PlayerConnection.handleCommand(PlayerConnection.java:1043) [craftbukkit.jar:git-Spigot-1642]
    at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:880) [craftbukkit.jar:git-Spigot-1642]
    at net.minecraft.server.v1_7_R4.PacketPlayInChat.a(PacketPlayInChat.java:28) [craftbukkit.jar:git-Spigot-1642]
    at net.minecraft.server.v1_7_R4.PacketPlayInChat.handle(PacketPlayInChat.java:65) [craftbukkit.jar:git-Spigot-1642]
    at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:186) [craftbukkit.jar:git-Spigot-1642]
    at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81) [craftbukkit.jar:git-Spigot-1642]
    at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:734) [craftbukkit.jar:git-Spigot-1642]
    at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) [craftbukkit.jar:git-Spigot-1642]
    at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [craftbukkit.jar:git-Spigot-1642]
    at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [craftbukkit.jar:git-Spigot-1642]
    at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [craftbukkit.jar:git-Spigot-1642]
    Caused by: java.util.ConcurrentModificationException
    at java.util.HashMap$HashIterator.nextEntry(HashMap.java:839) ~[?:?]
    at java.util.HashMap$KeyIterator.next(HashMap.java:874) ~[?:?]
    at com.pwn9.PwnFilter.DataCache.stop(DataCache.java:106) ~[?:?]
    at com.pwn9.PwnFilter.command.pfreload.onCommand(pfreload.java:46) ~[?:?]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit.jar:git-Spigot-1642]
    ... 13 more



    @Sage905
    Before I add BUKKIT command, it worked ! But when I add it, it do internal error everytime !
    [16:45:17] [Server thread/INFO]: [PwnFilter] Loading PwnFilter v3.3.1

    @timtower @Sage905 Do you receive a message when I tag you in an EDITED post ? or not ?
     
    Last edited by a moderator: Dec 27, 2014
  7. Offline

    timtower Moderator Moderator

    @To175 Tags are a bit bugged, sometimes they work, sometimes not.
     
Thread Status:
Not open for further replies.

Share This Page