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 any way to configure which blocks are lockable? I'd really like buttons, levers, and pressure plates to be lockable. Mainly buttons though. Thanks!
- Llamasquishy
<<reply 477919="">>
@lubblig
In plugins/LWC/core.yml find
ignoreExplosions: false
and change it totrue
<<reply 477247="">>
@Mutination17
You can. In
plugins/LWC/core.yml
find something like this:And then add fence gates:
<<reply 475272="">>
@ZackAttack6991
In plugins/LWC/core.yml find
showNotices: true
and change it to false.<<reply 474519="">>
@derkb
They are fixed in the latest dev builds -- it'll be in the next official release.
<<reply 477102="">>
@LucidLethargy
You can edit LWC's
plugin.yml
manually, but I will add this in the future.Also, LWC supports item keys natively now, FYI. Although it's not as easy as ChestLock :)
Where in the plugin do I set so a tnt can blow up a locked chest? I've tried to look myself but haven't found it and I really want to be able to blow up the chests and get the items in it.
PLEASE make it so you can lock fence doors
@LucidLethargy
If I recall correctly, you can open the plugin jar file with a program such as WinRar or 7-Zip extract (or double click) the file called "plugin.yml" and remove the line for "/lock". Not entirely sure if this is enough but it works on CommandBook.
It seems you decided to make /lock a command for this plugin... unfortunately this ruins another plugin I've used for a while now called ChestLock (where items are keys!)
How do I restore this functionality and disable your "/lock" command from my server? My users simply use /cprivate!
We recently updated to version 4 (yes, we are on the latest of 4.0.2 - b576), all of our protections have upgraded correctly but no user commands work correctly - even for an admin with '*' node. From what I can tell, this is the error it threw:
2011-12-31 10:17:27 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'cprivate' in plugin LWC v4.0.2 (b576-git-06a6b355) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:378) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715) at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33) at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93) at net.minecraft.server.NetworkListenThread.a(SourceFile:108) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457) Caused by: com.griefcraft.scripting.ModuleException: LWC Module threw an uncaught exception! LWC version: 4.0.2 (b576) at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:218) at com.griefcraft.lwc.LWCPlugin.onCommand(LWCPlugin.java:189) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) ... 12 more Caused by: java.lang.NullPointerException at com.griefcraft.integration.permissions.NijiPermissions.permission(NijiPermissions.java:60) at com.griefcraft.lwc.LWC.hasPermission(LWC.java:807) at com.griefcraft.lwc.LWC.hasPermission(LWC.java:1330) at com.griefcraft.modules.create.CreateModule.onCommand(CreateModule.java:204) at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:195) ... 14 more
I am using LWC on my Bukkit server. I opened the lwc_en.properties file in Notepad, and found the line that says:
I am wanting to disable the messages you get every time you click on a LWC-protected item. I deleted the text after the = sign, so it looked like this:
On my server, no text appeared when I opened protected chests, furnaces, etc., but an empty line appeared in the chat bar each time. The removal of the text was definitely an improvement, but I was wondering how to get rid of the blank lines that appear each time a protected item is clicked.
This plugin is really awesome even with the text, by the way :)
Thanks for your help, ZackAttack6991
This happens with iConomy 6.0.8b
2011-12-29 13:48:48 [INFO] LWC: Loading shared objects 2011-12-29 13:48:48 [INFO] LWC: Native library: plugins/LWC/lib/lib/native/Linux/amd64/libsqlitejdbc.so 2011-12-29 13:48:48 [INFO] LWC: Protection cache: 0/10000 2011-12-29 13:48:48 [INFO] LWC: Loaded 217 locale strings (0 overrides) 2011-12-29 13:48:48 [SEVERE] Error occurred while enabling LWC v4.0.2 (b576-git-06a6b355) (Is it up to date?): null java.lang.NullPointerException at com.iCo6.system.Queried.useMiniDB(Queried.java:92) at com.iCo6.system.Queried.hasAccount(Queried.java:237) at com.iCo6.system.Accounts.get(Accounts.java:14) at com.griefcraft.integration.currency.iConomy6Currency.<init>(iConomy6Currency.java:62) at com.griefcraft.lwc.LWC.load(LWC.java:1483) at com.griefcraft.lwc.LWCPlugin.onEnable(LWCPlugin.java:247) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:968) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:186) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:169) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:128) at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457) 2011-12-29 13:48:48 [INFO] [Vault][Economy] iConomy 6 found: Waiting 2011-12-29 13:48:48 [INFO] [Vault][Permission] PermissionsEx found: Waiting 2011-12-29 13:48:48 [INFO] [Vault][Permission] SuperPermissions loaded as backup permission system. 2011-12-29 13:48:48 [INFO] [Vault][Chat] PermissionsEx found: Waiting 2011-12-29 13:48:48 [INFO] [Vault] Enabled Version 1.2.0-b123
and this with BOSE
2011-12-29 14:11:40 [INFO] LWC: Loading shared objects 2011-12-29 14:11:40 [INFO] LWC: Native library: plugins/LWC/lib/lib/native/Linux/amd64/libsqlitejdbc.so 2011-12-29 14:11:40 [INFO] LWC: Protection cache: 0/10000 2011-12-29 14:11:40 [INFO] LWC: Loaded 217 locale strings (0 overrides) 2011-12-29 14:11:40 [SEVERE] Error occurred while enabling LWC v4.0.2 (b576-git-06a6b355) (Is it up to date?): null java.lang.NullPointerException at cosine.boseconomy.BOSEconomy.bankExists(BOSEconomy.java:694) at com.griefcraft.integration.currency.BOSECurrency.<init>(BOSECurrency.java:59) at com.griefcraft.lwc.LWC.load(LWC.java:1488) at com.griefcraft.lwc.LWCPlugin.onEnable(LWCPlugin.java:247) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:968) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:186) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:169) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:128) at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457) 2011-12-29 14:11:40 [INFO] [Vault][Economy] BOSEconomy7 found: Waiting 2011-12-29 14:11:40 [INFO] [Vault][Permission] PermissionsEx found: Waiting 2011-12-29 14:11:40 [INFO] [Vault][Permission] SuperPermissions loaded as backup permission system. 2011-12-29 14:11:40 [INFO] [Vault][Chat] PermissionsEx found: Waiting 2011-12-29 14:11:40 [INFO] [Vault] Enabled Version 1.2.0-b123
Both leads to
2011-12-29 14:26:28 [SEVERE] java.lang.NullPointerException 2011-12-29 14:26:28 [SEVERE] at com.griefcraft.sql.PhysDB.loadProtection(PhysDB.java:868) 2011-12-29 14:26:28 [SEVERE] at com.griefcraft.util.ProtectionFinder.tryLoadProtection(ProtectionFinder.java:174) 2011-12-29 14:26:28 [SEVERE] at com.griefcraft.util.ProtectionFinder.matchBlocks(ProtectionFinder.java:116) 2011-12-29 14:26:28 [SEVERE] at com.griefcraft.lwc.LWC.findProtection(LWC.java:1239) 2011-12-29 14:26:28 [SEVERE] at com.griefcraft.listeners.LWCPlayerListener.onPlayerInteract(LWCPlayerListener.java:137) 2011-12-29 14:26:28 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:335) 2011-12-29 14:26:28 [SEVERE] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58) 2011-12-29 14:26:28 [SEVERE] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339) 2011-12-29 14:26:28 [SEVERE] at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:178) 2011-12-29 14:26:28 [SEVERE] at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:266) 2011-12-29 14:26:28 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:593) 2011-12-29 14:26:28 [SEVERE] at net.minecraft.server.Packet15Place.a(SourceFile:39) 2011-12-29 14:26:28 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) 2011-12-29 14:26:28 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93) 2011-12-29 14:26:28 [SEVERE] at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:550) 2011-12-29 14:26:28 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile:108) 2011-12-29 14:26:28 [SEVERE] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527) 2011-12-29 14:26:28 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) 2011-12-29 14:26:28 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
So it only comes up with LWC, no other Plugin runs into this, seems to be more of an LWC problem then of iConomy or BOSE, cause 2 econ plugins acting strange with LWC?
Maybe you can figure something out.
Regards derkb
Edit: After i changed the serverBankAccount: '-' to '' it is working with boseeconomy now, did not test with iConomy, cause time to place some blocks now.
<<reply 473942="">>
@mike0fmikes
is iConomy setup correctly? That is an iConomy error.
<<reply 471350="">>
@Shortelz
@p000ison
That is a minecraft bug, not a bug LWC can fix unfortunately.
<<reply 473400="">>
@bobeeb
are you using MySQL? Please drop or rename the lwc_rights table - it is no longer used as of LWC 4 and may be causing the extra lag (I won't explain it in depth why unless you want me to)
2011-12-28 15:47:38 [SEVERE] Error occurred while enabling LWC v4.0.2 (b576-git-06a6b355) (Is it up to date?): null java.lang.NullPointerException at com.iCo6.system.Queried.useMiniDB(Queried.java:92) at com.iCo6.system.Queried.hasAccount(Queried.java:237) at com.iCo6.system.Accounts.get(Accounts.java:14) at com.griefcraft.integration.currency.iConomy6Currency.<init>(iConomy6Currency.java:62) at com.griefcraft.lwc.LWC.load(LWC.java:1483) at com.griefcraft.lwc.LWCPlugin.onEnable(LWCPlugin.java:247) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:968) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:186) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:169) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:128) at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
im getting this at startup, any suggestions?
since 4.0 i have got a lag bug at server startup. now iam on version 4.0.2 and the same thing. before the 4.0 release i did use the dev builds and there was no 30 sec lag before.
2011-12-28 01:14:27 [INFO] LWC: Performing any necessary database updates
2011-12-28 01:15:09 [INFO] LWC: Precached 2677 protections.
the server is starting and then it hangs for over 30 seconds at the perfoming any necessary database updates thing.
can somone help me?
@Shortelz
Have the same bug...
I have been having some more bugs. Doesnt seem to be fixed.
When double doors are locked, placing a block in front of the door on the right side seems to open the door.
Also: If I updated to 4 during 4.0.1, then would the permission issue (with adding people to chests) be fixed? or is my database messed up from 4.0.1?
4.0.2 has been released, you can view the whole changelog here: http://dev.bukkit.org/server-mods/lwc/files/20-lwc-4-0-2/
You can use
/lwc admin update
in-game or in the console to update or you can manually download it.Fixed in b575: http://ci.griefcraft.com/job/LWC/575/
A release will be made later on when I have more time.
Confirmed, looking into it now
re: startup messages
It was mainly there in the beta and left it in the first release or two incase something went horribly wrong and if they noticed that it would've been far faster to contact me there. It'll be removed in the next version.
@Shortelz
I've indeed heard of this and will be looking into it soon
Merry Christmas, lads!
After updating from 3. my chests show that someone has access to it (got access with /cmodify) but it doesnt allow them in the chest. The chest owner has to first remove them then add them again
@Sepulzera
I agree with this. Seeing the IRC channel post is not really necessary, saying as I already have way too much startup spam from my 30 plugins. :P
Regardless, thanks for the awesome plugin! I have been using this for over a year now, and I can't think of anything better. Keep it up!