[ADMN / SEC] Protect Block. Protect the Blocks you place. [BukkitDev]

Discussion in 'Inactive/Unsupported Plugins' started by yianni000, Mar 19, 2012.

  1. I really love this plugin but there is only one problem which occurs on my server.
    When I use this on my server (mostly 10ppl online) it generates lots of data which creates lag on my server.

    I had to disable this plugin because Minecraft wouldnt startup anymore. My file was about 150mb (for one person!).

    In total there is 887mb over 50 persons which is loaded into memory...

    How can I fix this?
     
  2. Offline

    yianni000

    Hi,
    Sorry I have also noticed this bug. It is the Friends List's that are causing the problem. To temporarily fix this issue, stop the server and delete either the Friends-Save folder (in the ProtectBlock plugins folder) or the files inside the Friends-Save folder. Then start the server and ProtectBlock will regenerate a new folder and new files. Your players will have to re-add people the their friends lists and Protect Block will work as normal.
    This will be fixed in version 1.3,
    yianni000
     
  3. Offline

    GerbenTerwee

    Where is the 'java' file???​
    I can't install him now because i don't have the java file.​
     
  4. Offline

    yianni000

    The java file is inside the ProtectBlock.zip file. Unzip the ProtectBlock.zip with WinRar or 7Zip or something similar, and place the ProtectBlock.jar file inside the plugins folder on your server.
     
  5. Offline

    GerbenTerwee

    No no, i don't see it. I see 7 plugins if i do com -> yianni000 -> protect block
     
  6. Offline

    yianni000

    Wait, you've just opened the ProtectBlock.jar file. Place that file inside your plugins folder - and restart your server - and you will have installed Protect Block
     
  7. Offline

    FuSeS

    You know this would be a fantastic plugin if the permissions actually worked like they where suppose 2. The operators cant even use /protectblock it says you do not have permissions to use this..... Please fix it
     
  8. Offline

    Mach5Stealthz

    MAJOR PROBLEM:
    This has happened twice now, the files in /friends-save keep stuffing up & cause my server not to load. There really isn't a logical reason why this is happening! I need to delete the whole plug in & remove the protected blocks from my server now! Please help so this doesn't happen again
     
  9. Offline

    yianni000

    Yes, I've noticed that happening every now and again as well...
    Should be fixed in the upcoming version - 1.3 - if not, post again :)

    Hi,
    That is a major bug in version 1.2 that should be fixed in version 1.3 - the only support that I can give you is to stop your server, delete the /Friends-Save folder and restart your server, Protect Block should generate another folder and you will keep your previously protected blocks.

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

    ShinyDialga

    Please do this with MultiVerse support! I've always looked into this plugin as a good one, but I only want a few worlds of my server protected, not them all. :(
     
  11. Offline

    Eyelander

    Does the plugin go down every so offton or something? it seems like at times of the day the protection will random just, stop working it says the plugins in the server but when i type /protectblock-on/off it shows the command in chat but nothing happens
     
  12. Offline

    Batman-pr73

    There is only one damn problem everytime i load the RUN.bat file it always says this
    22:16:28 [INFO] [ProtectBlock] Enabling ProtectBlock v1.2
    22:16:28 [INFO] [ProtectBlock] Protect Block Started.
    22:16:28 [INFO] [ProtectBlock] Config file loaded!
    After i Installed this plugin I had no Problems
    Days after I downloaded another plugin after i installed it it always stays like that!
    and its not the other plugin because I deleted the ProtectBlock plugin and it loaded fine to see what was the problem
    . To fix it I have to reinstall the plugin. but the problem is that every block that I placed will be insecure again,
    any fix for this ASAP!

    It takes so much time to load , sometimes it WONT load

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

    Eyelander

    Same problem here dude....

    My problem is the same when i install a new plugin id say 80% of the plugins i download completely break protectblock and we loose all our data the only way to fix is to uninstall everything (Can't even back up old saves, tryed, still messes it up)

    Here are examples of my console when i start server when protectblock is working and when its not working:

    Working: http://pastebin.com/BH9KEfCP

    Not Working: http://pastebin.com/ed2MZamA
     
  14. Offline

    Batman-pr73

    Ive found the fix to it , Go to the ProtectBlock folder and copy the saves.yml to the desktop then open it with notepad++ select all the coordinates of the blocks placed in the same file and copy them.
    So when the plugin stops working stop the console and delete the protect folder on your Bukkit server (Not the JAVA File) reload the server, stop it and go to the Saves.yml on protect block , Remember the coordinates? paste them in that file, and you are done!
    HOPE IT WORKS
    P.s: Make sure you test it first after recopying the coordinates, just in case ;)
     
  15. Offline

    Eyelander

    Alright thanks :D
     
  16. Offline

    Batman-pr73

    np
     
  17. Offline

    yianni000

    Should be fixed in 1.3- which is now out! :D
     
  18. Offline

    LogitechzGamer

    If you are kind, can you make that players have protection on when they join the server? and it will be cool with chest, dispenser and furnice protection.

    (Sry for bad English, I hope you understand what I wrote :p)
     
  19. Offline

    zack6849

    you seem to have an issue.
    Code:
    1:14:40 AM [INFO] Please contact one of the authors of plugin 'ProtectBlock': yianni000
    1:14:40 AM [WARNING] Could not properly handle event BLOCK_PHYSICS:
    java.lang.IllegalAccessError: Synchronized code got accessed from another thread: com.yianni000.ProtectBlock.PBEvents$1
    at org.bukkit.event.Listener.onBlockPhysics(Listener:0)
    at sun.reflect.GeneratedMethodAccessor16.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)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
    at net.minecraft.server.World.k(World.java:507)
    at net.minecraft.server.World.applyPhysics(World.java:490)
    at net.minecraft.server.World.update(World.java:456)
    at net.minecraft.server.World.setTypeId(World.java:431)
    at net.minecraft.server.BlockVine.doPhysics(SourceFile:190)
    at net.minecraft.server.World.k(World.java:515)
    at net.minecraft.server.World.applyPhysics(World.java:495)
    at net.minecraft.server.World.update(World.java:456)
    at net.minecraft.server.World.setTypeId(World.java:431)
    at net.minecraft.server.BlockVine.doPhysics(SourceFile:190)
    at net.minecraft.server.World.k(World.java:515)
    at net.minecraft.server.World.applyPhysics(World.java:490)
    at net.minecraft.server.World.update(World.java:456)
    at net.minecraft.server.World.setTypeId(World.java:431)
    at net.minecraft.server.BlockVine.doPhysics(SourceFile:190)
    at net.minecraft.server.World.k(World.java:515)
    at net.minecraft.server.World.applyPhysics(World.java:491)
    at net.minecraft.server.World.update(World.java:456)
    at net.minecraft.server.World.setTypeId(World.java:431)
    at org.bukkit.craftbukkit.block.CraftBlock.setTypeId(CraftBlock.java:92)
    at org.bukkit.craftbukkit.block.CraftBlock.setType(CraftBlock.java:88)
    at com.yianni000.ProtectBlock.PBEvents$1.run(PBEvents.java:352)
    that was spewing from my friends console, if i had to guess id say you were accessing the main thread at the same time as another plugin which from what i understand is a no-no
     
  20. Offline

    Mr_Moogle

    umm i have a problem whenever i type /protectblock-on its just says the command again in white and does nothing plz help need it for my server
     
  21. Offline

    Batman-pr73

    Nope thats not the error
     
  22. Offline

    jonathansty

    I've just got a good idea. You can better add the function that players can't place blocks on protected blocks of other people. Or not near them. Because this will decrease griefing.
     
  23. Offline

    LogitechzGamer

    hmm It dosen't work for me! Plz help :/
     
  24. Offline

    yianni000

    Yes, version 1.3 is conpatible with Minecraft 1.3
     
  25. Offline

    Alreiger

    Hey, I'm having an issue with the 1.3.1 version. When Protect Block is enabled it doesn't work well... It functions on the first try (after reinstalling, it now works until three or four tries), stopping someone, but then it ceases to work and they can destroy it. Is anyone else having trouble with this? I'd love some help. :)

    EDIT: A third installation just made me confused.
    One player is able to destroy it every time, another gets kicked by the console every time. One player is unable to for nearly 20 tries, and then it finally lets him. As I write this I'm testing, and now the one player who could destroy them every time is unable to, and everyone else can. It's so buggy it's unreal. None of them are staff, or have above Default permissions.

    EDIT 2: The one player who could destroy them every time is now able to, and can one hit dirt blocks with a diamond shovel. And for the record, automatic enabling for users who join does not work.

    And could you give us an option to disable the constant spam to users? It tells them everytime they place a block that it's being protected. I've seen other users with all these issues, and I have run it on a server with only it and PermissionsBukkit.

    Thank you for ignoring this completely.
     
  26. Offline

    yianni000

    Hi guys.
    Version 1.4 is now here so your errors should go away :D.
    Enjoy.
     
  27. Offline

    bigboy09

    But if anyone places a block front of a door of someone's house he cannot destroy it and he's stuck!..
     
  28. Offline

    yianni000

    That is true, however there is nothing that I can do - programming wise - to stop this. If this does happen, you can ask an administrator/Op to remove the block for you - they have permission to override the protection.
     
  29. Offline

    bigboy09

    Oke thank u for ur time!
     
  30. Offline

    bob7

    Does this support MySQL? H2? Sqlite?

    I also suggest you add a quay in, logging all those blocks at ounce will cause a memory leak :/
     

Share This Page