[SEC/ADMN] CoreProtect v2.0 - Fast Block Logging / Rollbacks / Now With Chest Rollbacks [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by Intelli, Mar 9, 2012.

  1. Offline

    hylke101

    can you make it that it olso records tnt explosions, and then the blocks that get broken by the tnt are broken by the player that ignited the tnt.
    so i can rollback houses that are just made so i cant work with time so i need to do it with player but he used tnt so i have to use time (and i dont want that)
    thanx (if taken serious)
    sorry for my english im dutch
     
  2. Offline

    jazzman170

    does this plugin log world edit areas? like say i world edit a giant block of dirt in the world, and then check the history of that giant block of dirt to see who did it, and it would say i did? My current block logger doesnt log world edit :/
     
  3. Offline

    Tyshark9

    Found a bug... only happens sometimes.

    I use /co rollback u:<playerName> t:3w r:50

    and then I get the error...

    Code:
    [Server] SEVERE at java.lang.Thread.run(Unknown Source)
    [Server] SEVERE at a.a.a.a$d.run(CoreProtection.java:602)
    [Server] SEVERE at java.lang.Integer.parseInt(Unknown Source)
    [Server] SEVERE at java.lang.Integer.parseInt(Unknown Source)
    [Server] SEVERE at java.lang.NumberFormatException.forInputString(Unknown Source)
    [Server] SEVERE java.lang.NumberFormatException: For input string: ""
    [Server] INFO Fatal error while attempting rollback.
    I have to restart the server for me to be able to try another rollback.

    You may create a /co restart command or something for admins that will clear the current process so you don't have to do a server restart each time there is a problem.
     
  4. Offline

    johnhardwood

    You need to add a option so that upon rollback logs are deleted of said rollback.
     
  5. Offline

    grid21

    I've posted about this problem before. Could you please fix this plugin? It makes my server glitch like crazy and it's irritating. It ends up kicking everyone on my server. I know there is enough ram on my server (about 1.5GB). Please I really love this plugin and want to keep using it but I can't use it if this error happens.
    Please and thank you!

    2012-07-16 23:11:08 [SEVERE] Could not pass event BlockFromToEvent to CoreProtect
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
    at net.minecraft.server.BlockFlowing.a(BlockFlowing.java:144)
    at net.minecraft.server.World.c(World.java:1067)
    at net.minecraft.server.BlockFlowing.onPlace(BlockFlowing.java:308)
    at net.minecraft.server.Chunk.a(Chunk.java:417)
    at net.minecraft.server.World.setRawTypeIdAndData(World.java:344)
    at net.minecraft.server.BlockStationary.i(BlockStationary.java:32)
    at net.minecraft.server.BlockStationary.doPhysics(BlockStationary.java:24)
    at net.minecraft.server.World.k(World.java:518)
    at net.minecraft.server.World.applyPhysics(World.java:496)
    at net.minecraft.server.World.update(World.java:459)
    at net.minecraft.server.World.setTypeId(World.java:434)
    at net.minecraft.server.BlockFluids.i(SourceFile:316)
    at net.minecraft.server.BlockFluids.doPhysics(SourceFile:299)
    at net.minecraft.server.World.k(World.java:518)
    at net.minecraft.server.World.applyPhysics(World.java:498)
    at net.minecraft.server.World.update(World.java:459)
    at net.minecraft.server.World.setTypeId(World.java:434)
    at net.minecraft.server.BlockFluids.i(SourceFile:316)
    at net.minecraft.server.BlockFluids.doPhysics(SourceFile:299)
    at net.minecraft.server.World.k(World.java:518)
    at net.minecraft.server.World.applyPhysics(World.java:498)
    at net.minecraft.server.World.update(World.java:459)
    at net.minecraft.server.World.setTypeId(World.java:434)
    at net.minecraft.server.BlockFluids.i(SourceFile:316)
    at net.minecraft.server.BlockFluids.doPhysics(SourceFile:299)
    at net.minecraft.server.World.k(World.java:518)
    at net.minecraft.server.World.applyPhysics(World.java:498)
    at net.minecraft.server.World.update(World.java:459)
    at net.minecraft.server.World.setTypeId(World.java:434)
    at net.minecraft.server.BlockFluids.i(SourceFile:316)
    at net.minecraft.server.BlockFluids.doPhysics(SourceFile:299)
    at net.minecraft.server.World.k(World.java:518)
    at net.minecraft.server.World.applyPhysics(World.java:498)
    at net.minecraft.server.World.update(World.java:459)
    at net.minecraft.server.World.setTypeId(World.java:434)
    at net.minecraft.server.BlockFluids.i(SourceFile:316)
    at net.minecraft.server.BlockFluids.doPhysics(SourceFile:299)
    at net.minecraft.server.World.k(World.java:518)
    at net.minecraft.server.World.applyPhysics(World.java:498)
    at net.minecraft.server.World.update(World.java:459)
    at net.minecraft.server.World.setTypeId(World.java:434)
    at net.minecraft.server.BlockFluids.i(SourceFile:316)
    at net.minecraft.server.BlockFluids.doPhysics(SourceFile:299)
    at net.minecraft.server.World.k(World.java:518)
    at net.minecraft.server.World.applyPhysics(World.java:495)
    at net.minecraft.server.World.update(World.java:459)
    at net.minecraft.server.World.setTypeIdAndData(World.java:444)
    at net.minecraft.server.BlockFlowing.flow(BlockFlowing.java:169)
    at net.minecraft.server.BlockFlowing.a(BlockFlowing.java:148)
    at net.minecraft.server.WorldGenLiquids.a(SourceFile:36)
    at net.minecraft.server.BiomeDecorator.a(SourceFile:215)
    at net.minecraft.server.BiomeDecorator.a(SourceFile:27)
    at net.minecraft.server.BiomeBase.a(SourceFile:215)
    at net.minecraft.server.ChunkProviderGenerate.getChunkAt(SourceFile:460)
    at org.bukkit.craftbukkit.generator.NormalChunkGenerator.getChunkAt(NormalChunkGenerator.java:49)
    at net.minecraft.server.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:176)
    at net.minecraft.server.Chunk.a(Chunk.java:798)
    at net.minecraft.server.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:107)
    at net.minecraft.server.PlayerInstance.<init>(PlayerInstance.java:26)
    at net.minecraft.server.PlayerManager.a(PlayerManager.java:60)
    at net.minecraft.server.PlayerManager.movePlayer(PlayerManager.java:156)
    at net.minecraft.server.ServerConfigurationManager.d(ServerConfigurationManager.java:169)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:412)
    at net.minecraft.server.Packet10Flying.handle(SourceFile:126)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.OutOfMemoryError: unable to create new native thread
    at java.lang.Thread.start0(Native Method)
    at java.lang.Thread.start(Unknown Source)
    at a.a.a.b.a(CoreProtectionBlockListener.java:391)
    at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302)
    ... 72 more
     
  6. Offline

    Intelli

    That's an issue with there not being enough memory.
    Please ensure you aren't assigning all your RAM to Minecraft.

    For example, if you have 8GB of RAM on your server, you won't want to assign more than 6GB to your Bukkit server.
     
  7. Offline

    misteryman321

    You saved my server. i had my suspicions on this one person but i didnt know for sure. now with this i can tell jail him and laugh in his face and fix it.
     
  8. Offline

    jazzman170

    nobody ever replied to my question :p Does this plugin log world edit areas from my ops?
     
  9. Offline

    grid21

    I have 4GB of ram on my computer and I have my computer using 1.5GB because I can't get it up to 2GB. My Minecraft client is using 1GB of ram. What am I to do??

    When I try to push it up to 2GB I got this error

    F:\Bukkit_Server 1.2.5 GridCraft Multiworld>java -Xmx2048M -Xms800M -jar craftbukkit-1.2.5-R4.0.jar nogui -nojline
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.

    F:\Bukkit_Server 1.2.5 GridCraft Multiworld>pause
    Press any key to continue . . .

    My batch file looks like this when I add 2GB
    @Echo on
    java -Xmx2048M -Xms800M -jar craftbukkit-1.2.5-R4.0.jar nogui -nojline
    pause

    I normally have it set to this
    @Echo on
    java -Xmx1536M -Xms800M -jar craftbukkit-1.2.5-R4.0.jar nogui -nojline
    pause

    Please help me! My computer is a AMD Athlon II Dual-Core M300 2.00GHz. Memory is DDR3 4.00GB of ram and 32-bit Operating system. Please help because I love this plugin very much and want to be able to use it.

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

    WinkBlink

    Can you add /co area (radius) to tell all placements and removements (is that a word?) in an area, also a guy on my server made an underground base and i want to see if he built it all but when i left click on the brick floor only says who broke the stone not who built the brick can u put a log of all the history of all placing and removed blocks and time from that 1 block? Ty WinkBlink
     
  11. Offline

    Intelli

    CoreProtect 1.5 is now available.

    • Added it so changes made via WorldEdit are now logged.
    • Added item transaction logging. You can now view details about items taken from chests, furnaces, etc.
    • Made it so left-clicking the top of a block shows data for the clicked block as expected.
    • Made it so right-clicking a block with an empty hand or tool shows data as if you placed a block in that location.
    • Fixed it so corrupt data is ignored when doing a rollback or restore.
    • Made it so the help menu now also displays under "/coreprotect".
    • Made it so jungle tree growth is now logged.
    • Made it so broken mob spawners can now be properly rolled back for new data logged.
    • Added support for Minecraft 1.3 block types
    • Made it so you can open/close doors with the inspector enabled.
    • Tons of bug fixes and minor tweaks.

    [Notice] If you use custom aliases for WorldEdit commands, WorldEdit logging will not work. WorldEdit logging is experimental and there may be minor bugs. We also can't guarantee the availability of this feature in future versions.
     
  12. I'm not sure if I should switch, because i like Logblock will check the entire log and tell me block changes for just one block, could you implement something like this into core portect?
     
  13. Offline

    pherce

    I have this problem too and I've posted on your bukkitdev. I know for sure my memory situation is fine. I've got all of 48gb to pull from we NEVER have this problem with CoreProtect not loaded.

    http://pastebin.com/NaRXNn0N

    Spams this exception, SQL exceptions ensue (no memory) and the only solution is to stop and pull CoreProtect. Sure there isn't some crazy for or while loops causing this?
     
  14. Offline

    WinkBlink

    agreed
     
  15. Offline

    Intelli

    1. Make sure you're using CoreProtect 1.5
    2. Make sure you're leaving free memory for CoreProtect to use. As you said earlier, you have 30GB assigned for a ramdisk, so you won't want to assign more than 14GB to Minecraft.
    3. Likely a conflict with buildcraft. If there's a certain custom user being logged a ton, you can blacklist it by putting the username in a new file at /plugins/CoreData/blacklist.txt
    4. Disable explosion logging if you're still having issues after following steps 1-3.
     
  16. Offline

    pherce

    Roger, will try tonight. Thanks for replying.

    1.5 CoreProtect (on Tekkit)
    http://pastebin.com/BMNV5qCY

    I understand it's Tekkit and all that and there may be conflicts, just letting you know of the error.

    Btw, I didn't want to remove explosions because that's the whole reason we tried running this to begin with. LogBlock doesn't pickup explosions like your plugin does from nukes and engines. We'll probably give this a shot in a few more builds to see how everything comes along. Thanks for updates.

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

    Intelli

    I need to do a 1.51 anyways, so I'll fix that error in the next release.
    Try disabling item-logging and see if you still get any errors.
     
  18. Offline

    pcgirl

    I tried to use this when I was griefed only yesterday and it did nothing!! I'm tempted to remove it, as I had try and roll back 10 hours. It took forever to "scan", then did absouletly diddly squat. :mad: I had to go back to a backup file I did myself and reload the server with that.

    Thank god for backups.
     
  19. Offline

    Intelli

    http://minerealm.com/community/viewtopic.php?f=32&t=6781
     
  20. Offline

    whaling

    Might be a bit late now, but simply replace the 'rollback' in your original command with 'restore' and it'll undo whatever you just did.
    It records tnt for me. Not the original placement though, so it won't be under a users name, it'll be under #tnt.
     
  21. Offline

    pcgirl

    What you think I didn't try the commands??!! I even tried just rolling back the a*******e's that did it to the server, and the inspection thing, well, I tapped the lava flow that it was in my face, and it came up with "no block was blah bah here".

    I don't think it works with world edit. Just personally. :(

    Don't get me wrong, it worked once before when I accidently broke something myself, but they griefed me with world edit. They opped themselves and hit the world. I have other backups now, and will only use this for minor problems.
     
  22. Offline

    Intelli

    That's because WorldEdit support was just added in CoreProtect 1.5, which was just released several hours ago.
     
  23. Offline

    pcgirl

    But when I told it to update, it told me that I had the update. Ok.. I'll manually put the update in.

    I'm not silly, just frustrated. I want my server to be safe for everyone, regardless of the dicks out there.
     
  24. Offline

    Intelli

    CoreProtect 1.51 is now available. This is a performance/stability update.

    • Fixed it so piston logging no longer causes huge CPU spikes. Blocks moved by pistons now log as #piston
    • Made huge speed improvements for doing rollbacks with MySQL. (Closer to file based rollback speeds)
    • Fixed v1.50 inventory errors that were occurring for Tekkit servers.

    I apologize for doing another release so shortly after v1.5. However, this fixes a critical issue that has existed since version 1.30. If you log piston usage, then upgrading is strongly encouraged.
     
  25. Offline

    hylke101

    question, my data base is getting really big is there a way for it to only have a database of what happend the past 7 days

    join my server at:
    mc-city-mc.co.cc

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

    IsaiahRobichaud

    The sad part is that admins can use this a rollback my WHOLE spawn :(
    Edit: Sorry for not telling you how awesome you plugin was...... YOUR PLUGIN IS SO AWESOME! [diamond]x9999999999999 for you!
     
  27. Offline

    Mlekarq

    15:06:18 [SEVERE] Got an exception when breaking a block!
    15:06:18 [SEVERE] java.lang.NullPointerException
    15:06:18 [SEVERE] at a.a.a.e.a(CoreProtectionFunctions.java:961)
    15:06:18 [SEVERE] at a.a.a.d$a.run(CoreProtectionEntityListener.java:54)
    15:06:18 [SEVERE] at java.lang.Thread.run(Unknown Source)
    >
    15:06:20 [INFO] Unknown command. Type "help" for help.
    15:08:08 [SEVERE] Got an exception when breaking a block!
    15:08:08 [SEVERE] java.lang.NullPointerException
    15:08:08 [SEVERE] at a.a.a.e.a(CoreProtectionFunctions.java:961)
    15:08:08 [SEVERE] at a.a.a.d$a.run(CoreProtectionEntityListener.java:54)
    15:08:08 [SEVERE] at java.lang.Thread.run(Unknown Source)
    >
    15:10:24 [INFO] Unknown command. Type "help" for help.
    15:14:19 [INFO] GroupManager - INFO - Data files refreshed.
    15:14:40 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    15:18:12 [SEVERE] Got an exception when breaking a block!
    15:18:12 [SEVERE] java.lang.NullPointerException
    15:18:12 [SEVERE] at a.a.a.e.a(CoreProtectionFunctions.java:961)
    15:18:12 [SEVERE] at a.a.a.d$a.run(CoreProtectionEntityListener.java:54)
    15:18:12 [SEVERE] at java.lang.Thread.run(Unknown Source)

    Why i keep getting this error ?
     
  28. Offline

    LZLOWBATTERY

    Intelli would be awesome if there was a stats function since Im a very big stats nerd :D
     
  29. Offline

    clange0808

    It says it logs changes by worldedit.. is their something special for that because if somebody worldedits something and i do the normal /co i with it it cant detect any block at all..
     
  30. Offline

    pcgirl

    That's the problem I had too. I haven't tried the newest update yet.
     

Share This Page