LWC
- Download
- NOTE!: Development builds for LWC can be found at the below Jenkins server. These builds have not been approved by the BukkitDev staff and may not have gone through any QA processes. Use them at your own risk!
- Development builds (Jenkins)
- Feature requests, Suggestions and Issues
- IRC - Live Chat ( irc.esper.net #LWC )
- github
- wiki
- Donate
LWC is the longest-lived single block protection plugin that protects both the block itself and contents of Chests, Furnaces, and Dispensers. It can also protect any other blocks, and by default will also protect Doors (Wooden + Iron), Signs and Trap Doors.
Blocks can be protected with three basic protection types:
Private
By default, only you can access this protection. You can also modify it (or specify when creating) to add other players or groups to the protection, so they can access it. Say you wanted Notch and Hidendra to both access the protection. When creating the protection, you could do /cprivate Notch Hidendra
or if it already exists /cmodify Notch Hidendra
. If you wanted to remove Hidendra from the private protection, you can use /cremove -Notch
Password
A password is set on the protection and anyone that knows the password can open it. You yourself also need this password each time you log in.
Public
Mainly targeted at community chests, a Public chest means just that: anyone can access it, but no one can protect it which makes it advantageous because it cannot be made private by someone else.
Commands
/lwc
- The LWC command for everything, however aliases are available to make some commands shorter. Type /lwc in-game for more detailed help./cprivate
- The alias of /lwc create private (or /lwc -c private), it creates a private protection./cpassword <password>
- The alias of /lwc create password <password>, it creates a passworded protection./cpublic
- The alias of /lwc create public, it creates a public protection/cremove
- Allows you to remove a protection you own (or if you're an LWC admin, any protection) - you must click on the protection after using/cremove
in order to remove it./cunlock <password>
- Allows you to attempt to gain access to a passworded protection after LWC tells you you attempted to open a password protection.... more!
There are aliases for all major used commands and every alias is not listed here.
Permissions
Basic permissions:
lwc.protect
- Allows the player to create and manage their own protections. It also allows them to use enabled modes and flags.lwc.mod
- Allows the player to open any chest, but not remove them.lwc.admin
- Gives the player absolute power to LWC - this node should be considered dangerous if used incorrectly as this node essentially gives you the right to destroy every protection (and even the block & inventory contents associated with it) in one command!lwc.deny
- Prevents players with this node from interacting with anything LWC can protect. For example, from opening or destroying protected and unprotected chests, furnaces, etc if protectable.
Is there a possibility to toggle off your tons of useless startup console entries? I prefer to keep things clear.
It's fixed in 4.0.1, which has a few other fixes as well :)
/lwc admin update
& restart or download it first from here: http://dev.bukkit.org/server-mods/lwc/files/19-lwc-4-0-1/edit: reflect that using /lwc admin update THEN restarting is better than restarting twice
@deleted_7536780
Same here... It appears to work fine otherwise, but errors always mark something being wrong so I'd like to find out what's happening. :P
@deleted_7536780
same error
Hey, 4.0.0 On start
2011-12-23 19:33:07 [SEVERE] java.lang.NullPointerException
2011-12-23 19:33:07 [SEVERE] at com.griefcraft.sql.PhysDB.doUpdate400_2(PhysDB.java:1883)
2011-12-23 19:33:07 [SEVERE] at com.griefcraft.sql.PhysDB.load(PhysDB.java:416)
2011-12-23 19:33:07 [SEVERE] at com.griefcraft.lwc.LWC.load(LWC.java:1500)
2011-12-23 19:33:07 [SEVERE] at com.griefcraft.lwc.LWCPlugin.onEnable(LWCPlugin.java:247)
2011-12-23 19:33:07 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188)
2011-12-23 19:33:07 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:968)
2011-12-23 19:33:07 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
2011-12-23 19:33:07 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:186)
2011-12-23 19:33:07 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:169)
2011-12-23 19:33:07 [SEVERE] at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:128)
2011-12-23 19:33:07 [SEVERE] at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
2011-12-23 19:33:07 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
2011-12-23 19:33:07 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399)
2011-12-23 19:33:07 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
Thanks for the reply over IRC. I always thought LWC protected pressure plates, but guess not. I'd like to request it as a feature, if you ever find a way to accomplish this.
Thanks Hidendra!
@Hidendra hey there! I just hit you up in your IRC channel... but I'm having a problem locking pressure plates. I've added stone_plate and wood_plate to the list of custom blocks, so I am able to place protections on pressure plates, but it is not enforcing the protection.
With the protections on the pressure plates (I'm trying to use it with groups, but have also tested with a self private protection), anyone can use the pressure plates... is this something which is broken currently, or am I missing some vital step?
Even with TownyBorders on, old locks are not being cleared by any commands like ./plot clear, or change of plot ownership. This is really frustrating for Town mayors, and me :/
Also, with the new dev builds of LWC, is there a way, or will there be a way to make locks decay over time? What I mean is, if someone is offline for say 1 month, his or her locks become cleared? This would take several "LWC maintenance run" hours out of my schedule, and be infinitely appreciated. I would gladly throw a donation your way for help with this.
Doesn't work on my server! Error: An internal error occured while attempting to perform this command ... (command was /cpassword, but this error arrives also if i use other commands of lwc). All other plugins work perfect.
I am getting a error when a player want's to protect his chest. It says: LWC: Internal error. Notify an admin immediately. PLAYER_INTERACT . When I restart it is gone but it comes back, how to fix?
This is the error btw:
2011-12-19 16:04:37 [SEVERE] com.griefcraft.scripting.ModuleException: LWC Module threw an uncaught exception! LWC version: 3.54.0 (b486) 2011-12-19 16:04:37 [SEVERE] at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:207) 2011-12-19 16:04:37 [SEVERE] at com.griefcraft.listeners.LWCPlayerListener.onPlayerInteract(LWCPlayerListener.java:180) 2011-12-19 16:04:37 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:335) 2011-12-19 16:04:37 [SEVERE] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58) 2011-12-19 16:04:37 [SEVERE] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339) 2011-12-19 16:04:37 [SEVERE] at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:178) 2011-12-19 16:04:37 [SEVERE] at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:92) 2011-12-19 16:04:37 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:498) 2011-12-19 16:04:37 [SEVERE] at net.minecraft.server.Packet14BlockDig.a(SourceFile:43) 2011-12-19 16:04:37 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) 2011-12-19 16:04:37 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93) 2011-12-19 16:04:37 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile:108) 2011-12-19 16:04:37 [SEVERE] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527) 2011-12-19 16:04:37 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) 2011-12-19 16:04:37 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:457) 2011-12-19 16:04:37 [SEVERE] Caused by: java.lang.NullPointerException 2011-12-19 16:04:37 [SEVERE] at com.griefcraft.lwc.LWC.processRightsModifications(LWC.java:1447) 2011-12-19 16:04:37 [SEVERE] at com.griefcraft.modules.create.CreateModule.onBlockInteract(CreateModule.java:147) 2011-12-19 16:04:37 [SEVERE] at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:184) 2011-12-19 16:04:37 [SEVERE] ... 14 more 2011-12-19 16:04:42 [SEVERE] com.griefcraft.scripting.ModuleException: LWC Module threw an uncaught exception! LWC version: 3.54.0 (b486) 2011-12-19 16:04:42 [SEVERE] at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:207) 2011-12-19 16:04:42 [SEVERE] at com.griefcraft.listeners.LWCPlayerListener.onPlayerInteract(LWCPlayerListener.java:180) 2011-12-19 16:04:42 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:335) 2011-12-19 16:04:42 [SEVERE] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58) 2011-12-19 16:04:42 [SEVERE] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339) 2011-12-19 16:04:42 [SEVERE] at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:178) 2011-12-19 16:04:42 [SEVERE] at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:266) 2011-12-19 16:04:42 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:593) 2011-12-19 16:04:42 [SEVERE] at net.minecraft.server.Packet15Place.a(SourceFile:39) 2011-12-19 16:04:42 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) 2011-12-19 16:04:42 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93) 2011-12-19 16:04:42 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile:108) 2011-12-19 16:04:42 [SEVERE] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527) 2011-12-19 16:04:42 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) 2011-12-19 16:04:42 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:457) 2011-12-19 16:04:42 [SEVERE] Caused by: java.lang.NullPointerException 2011-12-19 16:04:42 [SEVERE] at com.griefcraft.lwc.LWC.processRightsModifications(LWC.java:1447) 2011-12-19 16:04:42 [SEVERE] at com.griefcraft.modules.create.CreateModule.onBlockInteract(CreateModule.java:147) 2011-12-19 16:04:42 [SEVERE] at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:184) 2011-12-19 16:04:42 [SEVERE] ... 14 more
Thanks!
@shinji257
No using the recommended 3.54
@kahlilnc
That error comes up because you were running the 4.0 alpha bleeding edge build before. The database layout might be different. You will need to switch back to the bleeding edge version if that was the case.
You can set a block for the door (not your protection) and the door opend and anyone can go inside :S Can you fix that??
Sry my english is not so good.
Anyone know how to fix the pending action cancelled error with essentials trade signs?
2011-12-17 00:04:51 [SEVERE] com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'flags' in 'field list' 2011-12-17 00:04:51 [SEVERE] at sun.reflect.GeneratedConstructorAccessor22.newInstance(Unknown Source) 2011-12-17 00:04:51 [SEVERE] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 2011-12-17 00:04:51 [SEVERE] at java.lang.reflect.Constructor.newInstance(Constructor.java:525) 2011-12-17 00:04:51 [SEVERE] at com.mysql.jdbc.Util.handleNewInstance(Util.java:407) 2011-12-17 00:04:51 [SEVERE] at com.mysql.jdbc.Util.getInstance(Util.java:382) 2011-12-17 00:04:51 [SEVERE] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052) 2011-12-17 00:04:51 [SEVERE] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593) 2011-12-17 00:04:51 [SEVERE] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525) 2011-12-17 00:04:51 [SEVERE] at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986) 2011-12-17 00:04:51 [SEVERE] at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140) 2011-12-17 00:04:51 [SEVERE] at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626) 2011-12-17 00:04:51 [SEVERE] at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111) 2011-12-17 00:04:51 [SEVERE] at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2273) 2011-12-17 00:04:51 [SEVERE] at com.griefcraft.sql.PhysDB.resolveProtections(PhysDB.java:561) 2011-12-17 00:04:51 [SEVERE] at com.griefcraft.sql.PhysDB.loadProtections(PhysDB.java:813) 2011-12-17 00:04:51 [SEVERE] at com.griefcraft.modules.flag.MagnetModule$MagnetTask.run(MagnetModule.java:117) 2011-12-17 00:04:51 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137) 2011-12-17 00:04:51 [SEVERE] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:493) 2011-12-17 00:04:51 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) 2011-12-17 00:04:51 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
WITH newest 1.0 RB and 3.57 LWC 54 works perfectly
@cnaude
+1 here. :(
I just tested 3.57 and I'm getting this error.
23:18:10 [INFO] LWC: Using: Mysql-connector-java-5.1.14 ( Revision: ${bzr.revision-id} ) 23:18:10 [SEVERE] com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'flags' in 'field list' 23:18:10 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 23:18:10 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
I'm getting the same error as nori755 on 3.55
I can't enable LWC(version 3.5.5)with CraftBukkit(git-Bukkit-1.0.1-R1-b1597jnks) because of an error com/sk89q/worldguard/LocalPlayer java.lang.NoClassDefFoundError: com/sk89q/worldguard/LocalPlayer
server.log
http:pastebin.com/yAUYb69V
Same errors as posted before with 3.55, 3.54 fixes the errors.