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

    jtlcr777

    I think that would need a MYSQL database.
     
  3. Offline

    oz_revulsion

    @todd422
     
  4. Offline

    todd422

    Are you aware of a plugin that would appeal to my need?
     
  5. Offline

    oz_revulsion

    Well screem has mentioned that this one will once he has worked it inbut if you can't wait then you could try LogBlock or BigBrother.
     
  6. Offline

    jonahverner

    Is there a command to look up certain players?
     
  7. Offline

    thescreem

    Not right now, no. I am however working on v2.0 and I guess I could add this in as well. :)
     
  8. Offline

    jonahverner

    @thescreem Sounds Great! I love the start of this plugin. Really helped me out with mcbans disputes
     
  9. Offline

    thescreem

    After a looooong time of testing and coding (and frustration), I present you...​
    ***Version 2.0***

    • v2.0 - Added many new features (and fixed a few bugs):
      • 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.
    (I'll update the github in a few hours, I have to go now)
    EDIT: Updated github.
     
  10. Offline

    thescreem

    Gah... forgot to change the version number in the plugin.yml. :p
     
  11. Offline

    JOLTEON42

    When I do /ms, it says "MagicStick enabled." But when I click on anything nothing appears D:

    Please help!
     
  12. Offline

    thescreem

    This was a mistake on my part, I forgot to specify that you need to be holding a stick for it to work. :p
     
  13. Offline

    JOLTEON42

    The thing is, I am holding a stick...
     
  14. Offline

    thescreem

    Oh, hm... What permissions system are you using?
     
  15. Offline

    JOLTEON42

    The normal permissions plugin, or whatever you call it.

    The thing is other plugins like WorldEdit and WorldGuard work fine with my group (Admin) having the * (all) permission. So I don't understand why this doesn't work.
     
  16. Offline

    thescreem

    If you mean the normal permissions as in the one made by TheYeti, then I'll have to see the problem myself.

    If you mean the normal permissions as in SuperPerms (bPermissions or PermissionsBukkit) then I know the problem and I'll fix it as soon as I get home (I'm on my iPhone right now).
     
  17. Offline

    JOLTEON42

    I mean the one made my TheYeti.

    EDIT: by*
     
  18. Offline

    thescreem

    When you left-click on a block, does any message show up at all? I've tested this out with giving myself the * permission node and everything works just fine. (Well, sort of, the stick doesn't work when you have multiple log files, which is a bug I need to fix)
     
  19. Offline

    Ticksy

    I would like to see support for multiple worlds. Now everything is written in a log.
     
  20. Offline

    thescreem

    Alright, I'll add it along the next version of SuperLog, which fixes a few bugs.
     
  21. Offline

    DemonCraft

    I love it, more features and such would be great!
    Then also optional MySQL?
     
  22. Offline

    thescreem

    I normally don't say no to requests, but MySQL will not be added. I know nothing about it, and dont have the time to learn something completely new. Plus SuperLog was made for people who can't set up a MySQL database. Sorry. :(
     
  23. Offline

    ohmydoddtv

    Oh thank god, a plugin staying away from mySQL. I've tried setting it up and I still have no understanding of how to use it.

    May I ask for some form of rollback feature? :)
     
  24. Offline

    maller

    When i installed the plugin, my CB log got filled with this
    Code:
    2011-09-04 15:51:30 [SEVERE] Could not pass event BLOCK_BREAK to SuperLog
    java.lang.NullPointerException
        at com.thescreem.util.API.logToPlayerLog(API.java:141)
        at com.thescreem.listeners.SLBlockListener.onBlockBreak(SLBlockListener.java:66)
        at org.bukkit.plugin.java.JavaPluginLoader$37.execute(JavaPluginLoader.java:497)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:157)
        at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:121)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:481)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:140)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        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)
    2011-09-04 15:51:30 [SEVERE] Could not pass event BLOCK_BREAK to SuperLog
    java.lang.NullPointerException
        at com.thescreem.util.API.logToPlayerLog(API.java:141)
        at com.thescreem.listeners.SLBlockListener.onBlockBreak(SLBlockListener.java:66)
        at org.bukkit.plugin.java.JavaPluginLoader$37.execute(JavaPluginLoader.java:497)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:157)
        at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:121)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:481)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:140)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        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)
    2011-09-04 15:51:30 [SEVERE] Could not pass event BLOCK_BREAK to SuperLog
    java.lang.NullPointerException
        at com.thescreem.util.API.logToPlayerLog(API.java:141)
        at com.thescreem.listeners.SLBlockListener.onBlockBreak(SLBlockListener.java:66)
        at org.bukkit.plugin.java.JavaPluginLoader$37.execute(JavaPluginLoader.java:497)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:157)
        at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:121)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:481)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:140)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        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)
    2011-09-04 15:51:30 [SEVERE] Could not pass event BLOCK_BREAK to SuperLog
    java.lang.NullPointerException
        at com.thescreem.util.API.logToPlayerLog(API.java:141)
        at com.thescreem.listeners.SLBlockListener.onBlockBreak(SLBlockListener.java:66)
        at org.bukkit.plugin.java.JavaPluginLoader$37.execute(JavaPluginLoader.java:497)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:157)
        at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:121)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:481)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:140)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        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)
    
    That's only a portion of it
     
  25. Offline

    thescreem

    Can you please copy & paste your config.yml file? It looks like it has something to do with logging to the player logs, so I want to see if 'create-individual-player-logs' is set to true.
     
  26. Offline

    maller

    Here you go
    Code:
    log-commands: true
    create-individual-player-logs: true
    memory-in-MB-until-new-command-logs-file-is-created: 50.0
    log-block-placement: true
    log-bucket-emptying-and-filling: false
    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: true
    make-individual-player-logs: true
    log-chest-openings: false
    memory-in-MB-until-new-[player]-logs-file-is-created: 50.0
    
    Would it help setting "create-individual-player-logs" to false ?
     
  27. Offline

    thescreem

    It will fix the error, but this shouldn't happen regardless. I'll try to fix the error now, and I'll upload a fix soon.

    @maller
    I'm having trouble replicate the error. I see that it happens when anyone breaks a block, but I haven't been getting the error, even when I tried to use your config settings. I noticed you have both "create-individual-player-logs" and "make-individual-player-logs" in your config file though, can you try to remove "make-individual-player-logs" and tell me if you still get the error?

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

    maller

    Still getting the same error. Tried to remove "make-individual-player-logs" and settting it to false. No change.
     
  29. Offline

    DemonCraft

    Well I was just wondering if you could make it optional, but thanks though.
    It's still a great Plugin.
     
  30. Offline

    Herogx

    does it have rollback support?? or would it be possible for you to add it? hehe that or link me to a video that tells me exatcly how to make a mysql database and install big brother.I love big brother but removing the hl2 support was a bad idea, i need a rollback plugin that doesnt use this, can you add rollback functions?
     
  31. Offline

    Lyikos

    Code:
    2011-09-04 18:17:47 [SEVERE] Could not load 'plugins\SuperLog.jar' in folder 'plugins':
    mapping values are not allowed here
     in "<reader>", line 2, column 87:
         ... new-command-logs-file-is-created: 50.0
                                             ^
    
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:745)
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:307)
        at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:564)
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
        at org.bukkit.util.config.Configuration.load(Configuration.java:82)
        at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:157)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:175)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:213)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:143)
        at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:110)
        at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:51)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:133)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:337)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    I'm getting that. It only happens after the plugin was first installed and created its folder. Any idea what might be wrong?
     

Share This Page