Inactive [ADMN] ConsoleFilter v1.1.0 - Filter or modify any console message [1.1-R8 / 1.2.5-R1.0]

Discussion in 'Inactive/Unsupported Plugins' started by CypherX, Aug 17, 2011.

  1. Offline

    CypherX

    ConsoleFilter v1.1.0 - CraftBukkit build: [1.1-R8 / 1.2.5-R1.0]
    Download v1.1.0

    Tired of your server console being spammed with unnecessary messages? Irritated by gigantic log files? ConsoleFilter allows for the filtering or modification of messages printed to the server console. Utilizing an easy to understand filter syntax, tasks such as simply blocking an entire message or using a regular expression for advanced replacement can all be done.

    To install, download the latest version and extract it into the /plugins/ directory. The config.yml file located in /plugins/ConsoleFilter/ is where filters are managed.

    Features
    • Ability to completely block or modify messages printed to the server console
    • Simple to use syntax
    • Supports string and regular expression values
    • Lightweight and efficient
    Filter Examples

    To completely filter out a message:
    Code:
    filter:
        - type: string
          value: Can't keep up! Did the system time change, or is the server overloaded?
          level: WARNING
    This will block all messages containing the text "Can't keep up! Did the system time change, or is the server overloaded?" with the WARNING level.

    To replace part of a message:
    Code:
    filter:
        - type: string
          value: version
          replace: v
          level: ALL
    This will result in all instances of the word "version" being replaced with "v".

    Regular expressions work the same way, just specify the type as regex instead of string and the value as your expression.

    Changelog
    • Version 1.1.0
      • Updated to work with the latest version of CraftBukkit.
    • Version 1.0
      • Initial release
     
  2. Offline

    appadw

    +1 to the previous post on the R5/R6 compatibility. Looks like minecraft 1.2 has forced bukkit to change the way configurations are loaded.. a patch to 1.0 would greatly appreciated. This is a very useful plugin. Thank you very much for quickly putting this together.
     
    Pim1234 likes this.
  3. Offline

    oli4ei162

    Please update :)
     
  4. Offline

    Pilops

    Update pls
     
  5. Offline

    phanaticd

    please update, if i see another system overloaded im gonna shoot someone lol :p
     
  6. Offline

    sharkale

    in bukkit.yml set warn-on-overload to false
     
  7. Offline

    phanaticd

    i found another plugin that does the same thing, lets u block other things too, obushutthehellup is what its called
     
  8. Offline

    TheElite4

    Seriously? 3 word fix guys.

    Download
     

    Attached Files:

    DaEgo likes this.
  9. Offline

    DaEgo

  10. Offline

    Phedg1

    I have 2 questions. First of all, is there a way inwhich you might be able to filter the messages sent out by Console Filter itself? Secondly, does anyone know how to remove the messages from the console that are entered before Console Filter is loaded? Eg. Starting Minecraft server version 1.1, Loading Properties, This server is running Craft Bukkit version etc.

    Also, would you be able to give an estimation on the release time of the comming update and whether or not it will include suffix detection, Eg. Minecraft.WorldGuard as well as Minecraft

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

    CypherX

    Updated to version 1.1.0:
    • Now works with the latest version(s) of CraftBukkit.
    Some plugins use different loggers, which is how ConsoleFilter detects and modifies the text. An update will be out in the next few days which allows you to specify a filter name for each filter to fix the issue of some text not being affected.
     
  12. Offline

    AtomicCore9

    If someone could help me with this spam that worldedit and worldguard keeps putting on my server log that sould be nice, I've tried copy and pasting the message into the config folder and i tried putting the type as both string and regex, but it does'nt seem to work. Here's the spam that I've been getting:
    [SEVERE] Could not pass event PlayerMoveEvent to WorldGuard
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute
    at org.bukkit.plugin.RegisteredListener.callEvent
    at org.bukkit.plugin.SimplePluginManager.callEvent
    at net.minecraft.server.NetServerHandler.a
    at net.minecraft.server.Packet10Flying.handle
    at net.minecraft.server.NetworkManager.b
    at net.minecraft.server.NetServerHandler.a
    at net.minecraft.server.NetworkListenThread.a
    at net.minecraft.server.MinecraftServer.w
    at net.minecraft.server.MinecraftServer.run
    at net.minecraft.server.ThreadServerApplication.run
    Caused by: java.lang.NoSuchMethodError: org.bukkit.entity.Player.getVehicleLorg/bukkit/entity/Vehicle;
    at com.sk89q.worldguard.bukkit.WorldGuardPlayerListener$PlayerMoveHandler.onPlayerMove
    at sun.reflect.NativeMethodAccessorImpl.invoke0
    at sun.reflect.NativeMethodAccessorImpl.invoke
    at sun.reflect.DelegatingMethodAccessorImpl.invoke
    at java.lang.reflect.Method.invoke
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute
    ... 10 more?
     
  13. Offline

    CypherX

    AtomicCore9
    It's failing to filter those messages because WorldEdit and WorldGuard use their own Logger to display information rather than the default logger that they should be using. I plan to push out an update sometime this weekend that'll allow a logger name for each filter to be specified.
     
  14. Offline

    AtomicCore9

    Ok, thanks a lot, other than that the plugin works pretty fine. It's just that message I can't seem to get rid of.
     
  15. how do I fix this? because it obvious doesn't work because the :

    - type: regex
    value: Error.lang.RuntimeExeption: Permissions amager is not accessable.
    replace: Error
    level: SEVERE
     
  16. Offline

    Phedg1

  17. [quote uid=90595748 name="Phedg1" post=1166863]Make it a string, not a regex. You're using regex wrong. If you want to learn, read this site http://www.regular-expressions.info/[/quote]

    not working...
    : is a end of a line
    Error.lang.RuntimeExeption: = error because end of line
    Error.lang.RuntimeExeption = not filtering because the words doesn't match 100%

    can u please take a look, and fix the problem(s)

    google https://docs.google.com/open?id=0B5IOdFVBhVS5Ni1wRmM5NnpURkU
    mediafire <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Nov 12, 2016
  18. Offline

    devoo

    please do an update :'((
     
  19. Offline

    DarkRender

    THANK YOU!
    Well now I think you get i'm happy.
    Thanks you so much for this plugin I love it! It does a fantastic job, before my log was spammed with some blockbreakevent (I run tekkit) and it was unreadable. Now it's just ahhhhh... Such relief. I love you! (no homo) lol
     
  20. Offline

    Fate-Kun

    does this still work with the latest 1.2.5 and will there be one for 1.3 as well?
    does this support {playername} values?
    is it possible for it to hide certain parts of a line without hiding the whole thing?

    all questions I need to know
     
  21. Offline

    DaEgo

    still works fine with 1.3.1....
     
  22. Offline

    rherna9

    would removing the overloaded message stop my server from resetting? or would it just stop it from appearing in the console and still reset? im trying to fix my crash problem so i stop getting kicked from my server
     
  23. THANK YOU!!!!!!!
    I am running a Tekkit server, and the "Connection reset" spam was very annoying and inconvenient! This plugin has saved me!

    Oh wait...
    IT STILL DISPLAYS "[INFO]"
    Oh well...
    :'(

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

    Maddin

    This plugin does not recognize: *
    Show Spoiler

    19:15:25 [SEVERE] Cannot load plugins\ConsoleFilter\config.yml
    org.bukkit.configuration.InvalidConfigurationException: while scanning an alias
    in "<string>", line 9, column 10:
    value: **** SERVER IS RUNNING IN OFFLIN ...
    ^
    expected alphabetic or numeric character, but found but found *
    in "<string>", line 9, column 11:
    value: **** SERVER IS RUNNING IN OFFLINE ...
    ^

    at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlCo
    nfiguration.java:55)
    at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguratio
    n.java:138)
    at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguratio
    n.java:105)
    at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(Yam
    lConfiguration.java:175)
    at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:117)
    at org.bukkit.plugin.java.JavaPlugin.getConfig(JavaPlugin.java:111)
    at com.cypherx.consolefilter.ConsoleFilter.loadConfiguration(ConsoleFilt
    er.java:27)
    at com.cypherx.consolefilter.ConsoleFilter.onEnable(ConsoleFilter.java:2
    0)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:374)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:381)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:266)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:248
    )
    at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:297)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:276)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:226)
    at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:140)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:377)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: while scanning an alias
    in "<string>", line 9, column 10:
    value: **** SERVER IS RUNNING IN OFFLIN ...
    ^
    expected alphabetic or numeric character, but found but found *
    in "<string>", line 9, column 11:
    value: **** SERVER IS RUNNING IN OFFLINE ...
    ^

    at org.yaml.snakeyaml.scanner.ScannerImpl.scanAnchor(ScannerImpl.java:11
    62)
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchAlias(ScannerImpl.java:77
    0)
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja
    va:311)
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:17
    9)
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(P
    arserImpl.java:591)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:133)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :237)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.jav
    a:204)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:158)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :237)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
    3)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)

    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:121)
    at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:399)
    at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlCo
    nfiguration.java:53)
    ... 18 more
    19:15:25 [INFO] [ConsoleFilter] Loaded 2 filters!
    19:15:25 [INFO] [ConsoleFilter] v1.1.0 Enabled!
    19:15:25 [INFO] Server permissions file permissions.yml is empty, ignoring it
    19:15:26 [INFO] Done (2,622s)!
    >


    EDIT:
    For some reason i can't change any of these:
    Show Spoiler

    195 recipes
    27 achievements
    19:36:33 [INFO] Starting minecraft server version 1.3.2
    19:36:33 [INFO] Loading properties
    19:36:33 [INFO] Default game type: SURVIVAL
    19:36:33 [INFO] Generating keypair
    19:36:33 [INFO] Starting Minecraft server on *:25565
    19:36:33 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    19:36:33 [WARNING] The server will make no attempt to authenticate usernames. Be
    ware.
    19:36:33 [WARNING] While this makes the game possible to play without internet a
    ccess, it also opens up the ability for hackers to connect with any username the
    y choose.
    19:36:33 [WARNING] To change this, set "online-mode" to "true" in the server.pro
    perties file.
    19:36:33 [INFO] This server is running CraftBukkit version git-Bukkit-1.3.2-R1.0
    -b2377jnks (MC: 1.3.2) (Implementing API version 1.3.2-R1.0)
     
  25. Offline

    CheezyName

    It doesn't even work :C
    I tried to add things but it would just correct it self to the original
    filter:
    - type: string
    value: Can't keep up! Did the system time change, or is the server overloaded?
    level: WARNING
    - type: string
    value: For help, type "help" or "?"
    replace: ''
    level: INFO
     
  26. How did you remove the blockbreakevent in config.yml?
     
  27. Offline

    ronfkingswanson

    Same here. Can't add rules/modify existing because every time the plugin loads it just overwrites the config.yml with the defaults. Makes this a bit useless...

    on craftbukkit 1.4.5
     
  28. Offline

    Waterdust

    Why isn't this on bukkit dev? why is there no documentation? it appears to be working.

    It would be a great plugin but it leaves me generally lost without the documentation, having to flip thru other messages in an attempt to understand how to use it.

    Instead of forcing people to flip thru & run google searches for answers couldn't the dev be a bit more responsible an provide a clear how to use? the first post has nothing on this.
     
  29. Offline

    Paxination

    If your not maintaining any more could you post the source for this?
     
  30. Offline

    Puremin0rez

    No longer working - anyone wish to continue this or make a quick fix?
     
  31. Offline

    noelcjf

    hi this is the best plugin
     

Share This Page