Inactive [ADMN/SEC] SuperLog v2.4 - A very simple and effective logging plugin [1597]

Discussion in 'Inactive/Unsupported Plugins' started by thescreem, Aug 4, 2011.

  1. Offline

    thescreem

    Now on BukkitDev!
    [​IMG]

    [​IMG]

    <font color="rgb(51, 102, 255)">SuperLog - Make logging better and easier.</font>

    Current Version: 2.4
    Craftbukkit version: RB 1597 [Minecraft version 1.0]

    SuperLog is a very easy to set up logging plugin that can effectively catch greifers without the hassle of setting up any database.

    Features:
    * Easy to set up, no need to go through the hassle of setting up MySQL or any other database.
    * You may choose what you would like to log in a config file.
    * Ability to log block breaking, block placement, chest openings, and commands used by who, at what time, and at what coordinates.
    * If chosen in the config file, you can receive a message when Flint and Steel is used, TNT is placed, or TNT is ignited.
    * SuperPerms support!

    Future Features:
    * Lookup players.
    * Edit the config file in-game.
    * Setting for configurable date format.
    * Rollback.
    * Suggest!

    [​IMG]
    How to set up SuperLog:

    Show Spoiler
    In the config file, you will see something like this:
    Code:
    log-block-placement: true
    log-block-breaking: true
    log-chest-openings: true
    log-bucket-emptying-and-filling: true
    log-commands: true
    send-message-when-TNT-is-placed: false
    send-message-when-TNT-is-ignited: false
    send-message-when-Flint_and_Steel-is-used: false
    create-individual-player-logs: false
    memory-in-MB-until-new-block-logs-file-is-created: 50
    memory-in-MB-until-new-chest-logs-file-is-created: 50
    memory-in-MB-until-new-command-logs-file-is-created: 50
    memory-in-MB-until-new-[player]-logs-file-is-created: 50
    
    Most of it is self-explanatory, but I will go through it anyways.

    Code:
    log-block-placement: true
    
    True by default. If set to true, then this will log when a user places down a block.

    Code:
    log-block-breaking: true
    
    True by default. If set to true, then this will log when a user breaks a block.

    Code:
    log-chest-openings: true
    
    True by default. If set to true, then this will log when a user opens a chest.

    Code:
    log-commands: true
    
    True by default. If set to true, then this will log whenever someone types a command.

    Code:
    log-bucket-emptying-and-filling: true
    
    True by default. If set to true, then this will log when a user spills or fills a bucket of lava or water.

    Code:
    send-message-when-TNT-is-placed: false
    
    False by default. If set to true then whoever has the permission node stated under this spoiler will receive a message when a player placed down TNT.

    Code:
    send-message-when-TNT-is-ignited: false
    
    False by default. If set to true then whoever has the permission node stated under this spoiler will receive a message when a player sets off TNT with Flint and Steel. Currently, it doesn't work when TNT is set off with redstone.

    Code:
    send-message-when-Flint_and_Steel-is-used: false
    
    False by default. If set to true then whoever has the permission node stated under this spoiler will receive a message when a player uses Flint and Steel.

    Code:
    create-individual-player-logs: false
    
    False by default. If true, a log file will be created for every player.

    Code:
    memory-in-MB-until-new-block-logs-file-is-created: 50
    
    How big the block.logs file can reach until automatically creating a new block.logs file. (The old one is still kept)

    Code:
    memory-in-MB-until-new-chest-logs-file-is-created: 50
    
    How big the chest.logs file can reach until automatically creating a new chest.logs file. (The old one is still kept)

    Code:
    memory-in-MB-until-new-command-logs-file-is-created: 50
    
    How big the command.logs file can reach until automatically creating a new command.logs file. (The old one is still kept)

    Code:
    memory-in-MB-until-new-[player]-logs-file-is-created: 50
    
    How big a [player].logs file can reach until automatically creating a new [player].logs file. (The old one is still kept)




    Show Spoiler
    CommandWhat it does
    /sw or /superwandActivates/deactivates the SuperWand. To use the SuperWand, place a web block (item ID #30) where you would like to see block changes. To see chest changes, left-click a chest with a stick.
    /sl config or /superlog configShows you your config file options.




    Show Spoiler
    Permission nodeWhat it does
    superlog.notify.tnt.placementNotify's you when a player places TNT.
    superlog.notify.tnt.ignitionNotify's you when TNT is ignited by a player (Currently doesn't work when TNT is ignited with redstone).
    superlog.notify.flintandsteelNotify's you when a player uses Flint and Steel
    superlog.superwandLets you use the SuperWand
    superlog.configLets you see the config in-game


    [​IMG]
    <Edit by Moderator: Redacted mediafire url>
    [​IMG]
    [​IMG]
    Changelog:

    * v2.4 - Updated to MC version 1.0 and fixed a permissions bug.

    * v2.3 - Changed the MagicStick around.


    Show Spoiler
    * The MagicStick is now called the SuperWand.
    * The new command is /sw or /superwand.
    * The new permission node is superlog.superwand.
    * To see block changes, place a web block (item ID# 30). To see chest changes, left-click a block with a stick.




    Show Spoiler
    Show Spoiler
    v2.2.1 - Fixed the MagicStick permissions nodes.




    Show Spoiler
    * Fixed the MagicStick from causing lots of lag.




    Show Spoiler
    Fixed two bugs;
    * MagicStick not reading from all the split log files.
    * Player logs not being created for everyone when the plugin first runs. (Causes errors spamming the console until the player logs out and back in)




    Show Spoiler
    * Added the MagicStick
    * Optional command logging
    * Optional individual player logs
    * Log files split when reach a certain size set in the config file (Big thanks to @oz_revulsion for help with this!)
    * Ability to see your config options in-game. (Editing the config file in-game will come in the next version)
    * Added SuperPerms support? Not sure on this, don't have time to test if it works, so I'm not 100% sure it works.

    Bugs fixed:
    * Fixed air getting logged. (WTF?!)
    * Fixed paintings so they log.




    Show Spoiler
    * Fixed a bug with the dates.




    Show Spoiler
    * Fixed a few bugs with TNT/F&S notifications
    * Fixed a spelling error in the config file. (The "s" in "steel" in the option 'send-message-when-Flint_and_steel-is-used' needs to be capitalized)




    Show Spoiler
    * Initial Release
     
    Last edited by a moderator: Nov 13, 2016
    Olivki, Karlkorv, MrMag518 and 4 others like this.
  2. Offline

    thescreem

    It's a problem with the config file, do you mind copy + pasting it here?
     
  3. Offline

    Lyikos

    Code:
    log-commands: true
    create-individual-player-logs: truememory-in-MB-until-new-command-logs-file-is-created: 50.0
    log-block-placement: true
    log-bucket-emptying-and-filling: true
    memory-in-MB-until-new-block-logs-file-is-created: 50.0
    memory-in-MB-until-new-chest-logs-file-is-created: 50.0
    send-message-when-Flint_and_Steel-is-used: false
    log-block-breaking: true
    send-message-when-TNT-is-ignited: false
    send-message-when-TNT-is-placed: false
    make-individual-player-logs: true
    log-chest-openings: true
    memory-in-MB-until-new-[player]-logs-file-is-created: 50.0
    
    I think all I did from the default file was make some of the values true.
     
  4. Offline

    thescreem

    @Lyikos
    The problem is right here:
    Code:
    create-individual-player-logs: truememory-in-MB-until-new-command-logs-file-is-created: 50.0
    
    You need to separate that into two lines, like so:
    Code:
    create-individual-player-logs: true
    memory-in-MB-until-new-command-logs-file-is-created: 50.0
    
     
  5. Offline

    Lyikos

    Doh! Can't believe I didn't see that.
     
  6. Offline

    thescreem

    @maller
    I think I found the problem. The problem is that SuperLog can't find a players' 'player_name_here.logs' file so it throws an error. I forgot to include code so that a 'player_name_here.logs' file is created for everyone if they don't already have one when the plugin runs, so a fix for that is coming with v2.1.

    @Herogx and @ohmydoddtv
    I'm afraid I won't be able to add a roll-back feature, it goes far beyond what I can do. I have no idea where to start with it, and when I tried to look at BigBrother's or LogBlock's code, I couldn't tell how they did it because it was too complicated. Sorry. :(

    (Also, sorry for the late reply, school started yesterday :()
     
  7. Offline

    Herogx

    shame :/
     
  8. Offline

    M1sT3rM4n

    I don't know what all this SQL craze is. Don't people know that DB speed is related to how fast you can roll back assigned things, and that if your DB is slow/connection sucks that it will drag the performance down as well.
     
  9. Offline

    byter11

    How do I copy / paste my log to here? I have an error appearing whenever I use the plugin and I would like it looked at please :)
     
  10. Offline

    thescreem

    Wherever you keep your server you should see a file called "server.logs" or something like that. (On my iPhone, don't remember the exact name) You should be able to open it with notepad and copy + paste what's inside. ;)
     
  11. Offline

    DemonCraft

    Using a stick on a Painting does not work.
    Please add that feature.
     
  12. Offline

    ImaSnipah

    Can you make it an actual Log instead of a Stick? So that we can place it and see changes to air?
     
  13. Offline

    thescreem

    Well... I was going to release a big update with everything in the future features list, but I can't get it done in time :(. So instead, I decided to release a version with two bug fixes that should hopefully resolve all your errors.

    Version 2.1:
    • Fixed the MagicStick not reading from all the split log files.
    • Player logs are now created when the plugin first runs. (Before this would cause a bunch of errors until all your players would logout and login again)
    @DemonCraft
    I'll add it with the next update (3.0)

    @ImaSnipah
    You mean hold a log block instead of a stick, and be able to place it in the air to see the changes? I'll try that, adding it into the TO-DO list.
     
  14. Offline

    Kiipa

    Is there anyway to rollback the griefers actions? I've been searching for a plugin that does the same things and BB or LogBlock but with out the god damn mySQL server.

    If there is please tell me and how-
     
  15. Offline

    thescreem

    There currently is no way, and I won't be adding a rollback feature, since as I said in an earlier post, I have no idea how. I agree a rollback feature is great, but I have no idea how to start with doing that. :(
     
  16. Offline

    Kiipa

    Ahh, screw it. Youtube will have to teach me how to make a mySQL database then.

    No offence but, the plugin seems a little pointless without the rollback feature :3
     
  17. Offline

    ImaSnipah

    @Kiipa It's more of a "OMG I WAS STOLEN FROM" checker than a complete anti-griefer system. I personally love it because it's hassle-free.

    @thescreem Thanks, I had to place blocks in air to stick-them and it was cumbersome! Thanks for fast reply and for adding it to the to-do list.
     
  18. Offline

    thescreem

    *Attention*
    SuperLog is now on BukkitDev! You can find it here.
    I will be maintaining both this thread and the one on BukkitDev, so don't worry!
     
  19. Offline

    Buckethead

    so since u can optionally choose to log every time block breaks or or is placed if u have like 50 people you are going to have a metric fuk ton of listeners and thus MEGA lag right?
     
  20. Offline

    jeremytrains

    Hi, I am using superlog and whenevr I use the command "/sl" or "/superlog" it gives me this error:
    Code:
    2011-09-13 21:59:38 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'sl' in plugin SuperLog v2.0
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:352)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:737)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:478)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
        at com.thescreem.SuperLog.onCommand(SuperLog.java:181)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 13 more
    
    "/sl config" works just fine. What am i doing wrong???
    edit: NEVER MIND, I USED THE WRONG COMMAND.

    PS: in your onCommand() method you might want to include:
    Code:
    if (args[] == null) {
         return false;
    }
    So this error doesn't show up
     
  21. Offline

    thescreem

    @Buckethead
    I ran this on my (old) server with about 30 people. No lag, and I haven't seen anyone complain about any lag thus far. :)

    @jeremytrains
    ARGH Well looks like there's another bug to fix for 3.0 :p
     
  22. Offline

    jeremytrains

    It's not really a bug, but incase you want to fix the error from showing up... You could do that
     
  23. Offline

    'CR@$H.

    Hell yeah!

    I really searched for exactly that plugin. :)
    Good Job and thanXx for developing.

    I just have a little Problem, really smal, sorry. :rolleyes:
    Maybe you can it make configurable to what tool it will be bound,
    so because my "Stick" is already bound with another plugin (PortalStick)
    and now i got 2 messages from 2 plugins.
     
  24. Offline

    thescreem

    Sure, added it into the TO-DO list, hopefully I can finish everything soon. :)
     
  25. Offline

    PaintballPuppy

    You know what would make me love this plugin even more?
    Not sure if it's possible but can you make it so SuperLog catches whoever destroys (or places) a block with the super-pickaxe, (//) or the wand (//wand?)
     
  26. Offline

    LZLOWBATTERY

    Hey :p !
    I really like your'e plugin but something I want to see is
    1. Command to set the radius for the stick, if a griefer has taken blocks i can not use the stick, I wanna see who broke the blocks that isn't there but that are logged in logs.
    You know like the command /bb in bigbrother but with a stick.
    2. An update to 1.8/1.9 bukkit builds :)
     
  27. Offline

    Link2006

    I'd like to say it's a beautiful plugin but i had to remove it as a memory leak kept happening while using the stick ...and eventually it used up to 1.7GB According to McMyAdmin >.< (the log would be somewhat heavy, about under 50 MB if i remember correctly)
     
  28. Offline

    Cloudbringer

    any chance that you can add "who takes what from chests" into the chest log?

    what i means is, can you make it so the plugin also logs "chest transactions" kinda sketchy to take someone for stealing if i only know who LOOKED in the chest, would be lovely if you could see WHAT they took from the chest :D

    /cloud
     
    LZLOWBATTERY likes this.
  29. Offline

    LZLOWBATTERY

    I'm totally with you cloudbringer, please mr. developer pls. implement this into the plugin :D
     
    Cloudbringer likes this.
  30. Offline

    thescreem

    @PaintballPuppy
    Not that hard, will add it into the next version. :)

    @Cloudbringer
    @LZLOWBATTERY
    I'll TRY, but I have no idea how to do that so it might take a while. :(
    I had that idea a while ago, but gave up trying to do it. I'll try again though.
     
    Cloudbringer likes this.
  31. Offline

    Cloudbringer

    <3

    I do believe hawk eye has this feature. But they require you to install a seperate MySQL database to use as a LOG which takes ALOT of space on the server(talking about GB=Gigabyte here(which i don't have)) :p so ill stick to the simple mods that really work :D ...

    This plugin is awesome and lightweight!
    keep up the good work!

    /Cloud
     
    LZLOWBATTERY likes this.

Share This Page