WorldLock

Discussion in 'Archived: Plugin Requests' started by gauso001, Aug 12, 2012.

  1. Offline

    gauso001

    Group: Anti-grief
    Name: Worldlock
    Desc: "locks" an entire world to prevent modification, but allows placing of vehicles, use of redstone/doors and chests.
    commands: /lockworld
    /unlockworld
    permissions: wl.lock
    wl.unlock
    when I'd like it by: ASAP
     
  2. Offline

    np98765

    WorldGuard.

    EDIT: Or ModifyWorld.
     
  3. Offline

    Kodfod


    Yes this will do it, but that is a pain to set for the WHOLE world ya know?

    And Modify world requries you yo add permissions and take them away....

    It would be much simpler for a plugin specifically for this task.
    Plus would be nice to have a world lock where an admin could shut down everything and do what he/she needs to do, Without kicking players or white listing them.

    I see great potential and Can work on it.
     
  4. Offline

    np98765

    1- There's a region called __global__
    2- You can always edit the region size in the config

    Not really that difficult..


    EDIT: And for ModifyWorld, I'm sure you can give -modifyworld.build.* or whatever it is. You can give the '*' part to deny all building.
     
  5. Offline

    Kodfod

    Meh, i see more potential for this. Lock Blocks on the fly, Gives Admin's time to fix the stuff they need to, Stop's griefing.

    But you know, i just about learned the global region! Great to know =)
     
  6. Offline

    np98765

    /region flag __global__ build deny
    /region flag __global__ build allow

    ... Denying building at it's finest. :p

    Never knew about it for the longest time either. :3
     
  7. Offline

    Kodfod

    :3 I would still like to develop this and add on to it. Because (Personally) Some people don't like to use World Guard.
     
  8. Offline

    np98765

    Go ahead; I was just giving the OP a solution that works. 80% of these requests can be accomplished with existing plugins.
     
  9. Offline

    gauso001

    Thanx for your help Kodfod. When do you think it will be ready?
     
  10. Offline

    Kodfod

    Meh By the end of this night
    A bare bone one that is. =)
     
  11. Offline

    gauso001

    Ok, but will it have an option to allow the placing of vehicles such as boats and minecarts? I have a rail link between 2 towns on my server that will have to be usable even in the event of a map lock.
     
  12. Offline

    Kodfod

    Yes, just put the id's in the list in the config... just doing some last tests =)
     
  13. Offline

    gauso001

  14. Offline

    Kodfod

    Here it is:

    World Lock v0.3

    Please, if you find any bugs contact me and i will fix them.

    To add exceptions, use the block ID and put it like this:

    Code:YMAL
    1.  
    2. Blocked:
    3. Placed:
    4. Allowed:
    5. - 0
    6. - 49
    7. Break:
    8. Allowed:
    9. - 0
    10. - 1
    11.  


    And the command is /wl lock to lock/unlock the world.
     
  15. Offline

    gauso001

    thanx!

    multiworld bug

    I lock 1 world, it locks all.

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

    Kodfod

    Okay will fix this
     
  17. Offline

    gauso001

  18. Offline

    Kodfod

    Fixed.

    Added new part to the config. List all your world names.

    Command is:

    /wl lock <world name>

    Edit: use the same link above.
     
  19. Offline

    gauso001

    Ok, sounds good. I'll report back later, I am going to lock some worlds :p. Especially this one:
    dynmap (Click on world genspace)
    Should have rendered at least a bit:D.
    Nobody will grief my spaceships anytime soon:D

    I came across a series of errors:
    10:15:47 [SEVERE] Could not pass event BlockBreakEvent to World Lock
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332)
    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.ItemInWorldManager.breakBlock(ItemInWorldManager.java:260)
    at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:126)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:546)
    at net.minecraft.server.Packet14BlockDig.handle(SourceFile:46)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:281)
    at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
    at net.minecraft.server.ServerConnection.b(SourceFile:35)
    at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:583)
    at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: java.lang.NullPointerException
    at me.kodfod.wl.Main.onBlockBreak(Main.java:86)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330)
    ... 16 more
    10:15:47 [SEVERE] Could not pass event BlockBreakEvent to World Lock
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332)
    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.ItemInWorldManager.breakBlock(ItemInWorldManager.java:260)
    at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:126)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:546)
    at net.minecraft.server.Packet14BlockDig.handle(SourceFile:46)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:281)
    at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
    at net.minecraft.server.ServerConnection.b(SourceFile:35)
    at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:583)
    at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: java.lang.NullPointerException
    at me.kodfod.wl.Main.onBlockBreak(Main.java:86)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330)
    ... 16 more
    10:15:47 [INFO] [PLAYER_COMMAND] gauso001: /warp ns
    10:15:50 [INFO] [PLAYER_COMMAND] gauso001: /setspawn
    10:15:53 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'wl' in plugin World Lock v0.3
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:492)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:878)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:825)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:807)
    at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:44)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:281)
    at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
    at net.minecraft.server.ServerConnection.b(SourceFile:35)
    at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:583)
    at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
    at me.kodfod.wl.Main.onCommand(Main.java:38)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    ... 15 more
    10:16:04 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'wl' in plugin World Lock v0.3
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:492)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:878)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:825)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:807)
    at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:44)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:281)
    at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
    at net.minecraft.server.ServerConnection.b(SourceFile:35)
    at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:583)
    at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: java.lang.NullPointerException
    at me.kodfod.wl.Main.onCommand(Main.java:39)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    ... 15 more
    10:16:09 [INFO] <**Diamond ~Pan> hey gauso can me and lokk be co owners since we know lots of commands
    10:16:12 [INFO] Error: Player not found.
    10:16:21 [INFO] <~Owner> ok
    10:16:26 [INFO] <~Owner> 1sec
    10:16:30 [INFO] <**Diamond ~Pan> ok can u join the faction
    10:16:30 [INFO] Connection reset
    10:16:30 [INFO] gauso001 lost connection: disconnect.quitting
    10:16:38 [INFO] C_W_Kidd[/92.229.44.108:49902] logged in with entity id 2728 at ([normal] 954.4365002461532, 64.0, 788.5258863473241)
    10:16:52 [SEVERE] Could not pass event BlockBreakEvent to World Lock
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332)
    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.ItemInWorldManager.breakBlock(ItemInWorldManager.java:260)
    at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:126)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:546)
    at net.minecraft.server.Packet14BlockDig.handle(SourceFile:46)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:281)
    at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
    at net.minecraft.server.ServerConnection.b(SourceFile:35)
    at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:583)
    at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: java.lang.NullPointerException
    at me.kodfod.wl.Main.onBlockBreak(Main.java:86)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330)
    ... 16 more
    10:16:54 [INFO] LuckyMeal lost connection: disconnect.quitting
    10:16:54 [INFO] Connection reset
    10:17:02 [SEVERE] Could not pass event BlockBreakEvent to World Lock
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332)
    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.ItemInWorldManager.breakBlock(ItemInWorldManager.java:260)
    at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:126)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:546)
    at net.minecraft.server.Packet14BlockDig.handle(SourceFile:46)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:281)
    at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
    at net.minecraft.server.ServerConnection.b(SourceFile:35)
    at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:583)
    at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: java.lang.NullPointerException
    at me.kodfod.wl.Main.onBlockBreak(Main.java:86)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330)
    ... 16 more
    10:17:02 [SEVERE] Could not pass event BlockBreakEvent to World Lock
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332)
    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.ItemInWorldManager.breakBlock(ItemInWorldManager.java:260)
    at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:126)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:546)
    at net.minecraft.server.Packet14BlockDig.handle(SourceFile:46)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:281)
    at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
    at net.minecraft.server.ServerConnection.b(SourceFile:35)
    at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:583)
    at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: java.lang.NullPointerException
    at me.kodfod.wl.Main.onBlockBreak(Main.java:86)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330)
    ... 16 more

    config:
    worlds:
    - world
    - world_nether
    - world_the_end
    Blocked:
    Placed:
    Allowed:
    - 0
    Break:
    Allowed:
    - 0

    Not all worlds listed, only ones I want to lock.

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

    Kodfod

    You will have to list all worlds. I'm sorry i should have been more specific. The worlds list is all your worlds. And do /wl lock <world> i will add a perma-lock config option.
     
  21. Offline

    gauso001

    ok, then it will do no error?
     
  22. Offline

    Kodfod

    correct
     
  23. Offline

    -_Husky_-

    Source please, i wanna check something,
     
  24. Offline

    gauso001

    AWESOME PLUGIN!!!!!:) It works well! Thanx a million!
    If you want I will make a plugin tutorial and post it on youtube. Put this plugin on the plugin list, it deserves to be used on every server:D.
     
  25. Offline

    EvilNucca

Share This Page