Giter Site home page Giter Site logo

lwc's Introduction

LWC

The chest (and other blocks) protection plugin.

Compilation

We use maven to handle our dependencies.

  • Install Maven 3
  • Check out this repo and: mvn clean package

The core LWC plugin will be found inside core/target/LWC.jar

lwc's People

Contributors

ayacze avatar bencvt avatar epuidokas avatar evonuts avatar fpigerre avatar glitchfinder avatar hidendra avatar leonchris88 avatar nitnelave avatar patchguru avatar phoenixiv avatar pyrodogg avatar roycurtis avatar rumickon avatar scoreunder avatar tcarlsen avatar untergrundbiber avatar zford avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lwc's Issues

droptransfer doesn't work?

Hi,
I'm using the build available in this GIT repo with hmod build 133 (released yesterday), however it seems droptransfer is not working (or I'm not understanding something) ?

I can setup droptransfer target, configure which chest to transfer to and enable it, but it seems to have no effect at all (I guess dropped stuff should be transfered to the chest?)

Trap door glitch.

Place a block, place a trapdoor. LWC the trapdoor then remove it. Have someone else remove the original block the trapdoor was placed on. Then have the owner of the trapdoor place a block where the trapdoor used to be. Voila, new block is protected.

Locked door openable with leaver

Hello,
cause I haven't enough time to read all issues I just report it.
An protected door (cprivate) can be opened with an activatet leaver set near to it.
=> An protectet door can be opened with redstone.
Thanks!

SQLite problems on FreeBSD

Hello,

I recently upgraded to the latest version of LWC to get support for MC 1.5 now I get an error when I start the server. The server is running on FreeBSD 8.2 and I've compiled sqlitejdbc 056 from ports and symlinked them to the lib folder.

pcap# ls -l sqlite.jar native/Linux/amd64/libsqlitejdbc.so
lrwxr-xr-x  1 root  wheel  31 Apr  7 00:19 native/Linux/amd64/libsqlitejdbc.so -> /usr/local/lib/libsqlitejdbc.so
lrwxr-xr-x  1 root  wheel  51 Apr  7 00:20 sqlite.jar -> /usr/local/share/java/classes/sqlitejdbc-native.jar

This is the error message I get in server.log:

2011-05-05 17:11:07 [INFO] Starting minecraft server version Beta 1.5_02
2011-05-05 17:11:07 [INFO] Loading properties
2011-05-05 17:11:07 [INFO] Starting Minecraft server on *:25565
2011-05-05 17:11:07 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-706-gf53e007-b740jnks (MC: 1.5_02)
2011-05-05 17:11:07 [INFO] Preparing level "world"
2011-05-05 17:11:07 [INFO] Preparing start region
2011-05-05 17:11:08 [INFO] LWC  Loading shared objects
2011-05-05 17:11:08 [INFO] LWC  Native library: plugins/LWC/lib/native/Linux/amd64/libsqlitejdbc.so
2011-05-05 17:11:08 [INFO] [MCStats] Loading MCStats
2011-05-05 17:11:08 [INFO] [MCStats] Restoring player statistics.
2011-05-05 17:11:08 [INFO] GroupManager - INFO - Scheduled Data Saving is set for every 10 minutes!
2011-05-05 17:11:08 [INFO] GroupManager version 1.0(alpha-5) is enabled!
2011-05-05 17:11:08 [INFO] Fake Permissions version 2.5.1 is enabled!
2011-05-05 17:11:08 [INFO] [EpicZones] Created Zone [home]
2011-05-05 17:11:08 [INFO] [EpicZones] HeroChat Integration Enabled.
2011-05-05 17:11:08 [INFO] [EpicZones] version 0.19 is enabled.
2011-05-05 17:11:08 [INFO] [Spawnr] v1.63 has been enabled
2011-05-05 17:11:08 [INFO] LWC  Loaded 116 locale strings (0 overrides)
2011-05-05 17:11:09 [INFO] LWC  Using Nijikokun's permissions plugin for permissions
2011-05-05 17:11:09 [INFO] LWC  Loading SQLite
2011-05-05 17:11:09 [SEVERE] org.sqlite.NativeDB.enable_load_extension(Z)I loading LWC v2.31 (Is it up to date?)
java.lang.UnsatisfiedLinkError: org.sqlite.NativeDB.enable_load_extension(Z)I
        at org.sqlite.NativeDB.enable_load_extension(Native Method)
        at org.sqlite.Conn.<init>(Conn.java:62)
        at org.sqlite.JDBC.createConnection(JDBC.java:77)
        at org.sqlite.JDBC.connect(JDBC.java:64)
        at java.sql.DriverManager.getConnection(DriverManager.java:620)
        at java.sql.DriverManager.getConnection(DriverManager.java:169)
        at com.griefcraft.sql.Database.connect(Database.java:155)
        at com.griefcraft.lwc.LWC.load(LWC.java:995)
        at com.griefcraft.lwc.LWCPlugin.onEnable(LWCPlugin.java:329)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:632)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
2011-05-05 17:11:09 [INFO] [HeroChat] HeroChat version 4.8.6 enabled.
2011-05-05 17:11:09 [INFO] [HeroChat] Permissions 2.0 found.
2011-05-05 17:11:09 [INFO] [InventorySort] Using [GroupManager v1.0(alpha-5)] for Permissions.
2011-05-05 17:11:09 [INFO] [InventorySort] version 1.7 is enabled!
2011-05-05 17:11:09 [INFO] [MCStats] Enabling MCStats
2011-05-05 17:11:09 [INFO] Done (0.116s)! For help, type "help" or "?"

The ideal thing could be if you enabled FreeBSD support in LWC but I'm satisfied if you just help me get it working.

Also, what version of sqlitejdbc are you using?

Thanks,

  • Simon

cmagnet/droptransfer filtering

Would it be possible to set up magnet and droptransfer functionality to accept an argument to not pick up certain items, or even better to only receive certain items.

In the case of magnet I have a chests in a trap room that collect items but I want chest A to collect string, B to collect arrows....

In the case of droptransfer I have no need to xfer the cobblestone to my chest so I would like that item to just drop normally (into lava)

Full removal of MemDB

LWC uses an extremely simple memory database and is not necessary at all. In the event of a database connection loss, LWC is not very usable, while most protections will be cached usually, so they will still be OK, while the memdb is not.

this should have a few more checkmarks - I sure hope plugins aren't making direct method calls in lwc.getMemoryDatabase() !

LWC 3.00a4 Locale not being set properly

In my core.yml file I have core.locale set to 'en'.

However, when a user types lwc -c the following error occurs in console:

18:01:29 [SEVERE] null
org.bukkit.command.CommandException: Unhandled exception executing command 'lwc' in plugin LWC v3.00-alpha4
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:278)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:682)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:645)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:639)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
Caused by: com.griefcraft.scripting.ModuleException: LWC Module threw an uncaught exception!
        at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:191)
        at com.griefcraft.lwc.LWCPlugin.onCommand(LWCPlugin.java:262)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
        at com.griefcraft.modules.create.CreateModule.onCommand(CreateModule.java:188)
        at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:145)
        ... 14 more

and the resulting text that the user recieves is:
...
Example:
UNKNOWN_LOCALE_cprivate. UserName g:GroupName OtherGuy

You can specify more than 1 group and/or user per command!
An internal error occured while attempting to perform this command

The commands are still usable, of course, but the the errors spam the console window.

Double chest locking

I have read this being reported on the forums, and I have seen happen on my server now - causing a LOT of grief, and making this plugin essentially useless as a security plugin since it doesn't cover 100% of the bases

I do not know the exact specifics, but basically with double chests, sometimes both blocks don't get locked when you /lwc create it. So a person think he has locked it, and can even /lwc info the block he locked, but the other block of the chest is NOT locked - and that unlocked block of chest just acts like a normal regular unprotected chest. This allows anyone to sometimes be able to loot an entire chest contents if both blocks are not protected.

Sometimes when you /lwc create a chest, it does lock both blocks... and this happens 95% of the time, but 5% of the time it does not.....

Severe SQL Error

08:13:32 [INFO] LWC: Loading SQLite
08:13:32 [INFO] LWC: Using: Native
08:13:32 [SEVERE] java.sql.SQLException: fetch size -2147483648 out of bounds 0
08:13:32 [SEVERE] at org.sqlite.RS.setFetchSize(RS.java:167)
08:13:32 [SEVERE] at org.sqlite.Stmt.setFetchSize(Stmt.java:295)
08:13:32 [SEVERE] at com.griefcraft.sql.PhysDB.precache(Unknown Source)
08:13:32 [SEVERE] at com.griefcraft.lwc.LWC.load(Unknown Source)
08:13:32 [SEVERE] at com.griefcraft.lwc.LWCPlugin.onEnable(Unknown Source)
08:13:32 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
08:13:32 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
08:13:32 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
08:13:32 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
08:13:32 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
08:13:32 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
08:13:32 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
08:13:32 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
08:13:32 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
08:13:32 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
08:13:32 [INFO] LWC: At version: 3.20-git-LWC-58833f2e339f548f59be4eaff7aacda22ee298cf-b50jnks

uh yeah, could this be fixed?

Unlock/Free Chest Command for Users

I'm currently playing in a server that uses this mod and, for one reason or another people are unable to lock the amount of chests they are suppose to. It's as if, for one reason or another, the old chests they unlock/break doesn't release their lock or, due to a rollback perhaps, isn't registered as unlocked anymore.

Most of the time, these chests are their starter chests or where they use to live before moving and do not exist anymore. This leads me to request a possible new command that frees all chests that a person owns. This way they can reset their number of chests locked back to zero and lock only the chests they currently are using.

Piston exploit for Chests

"Hey guys found thid glitch you guys might wanna abuse. If you put a piston behind a locked chest with an empty space in front of it, then put a lever down next to it, then punch it till it comes off, the chest will break open. i did this to a few chests on the server i play on and now they suspended me."

(oh, and fix pistons breaking doors, they sound like similar issues.)

Old entries in DB

I recently lost my lwc.db from a server crash because it was on a ramdisk. So I restored the lwc.db from a backup, which did not match the world files.

Now chests that have been removed since that backup, are still in the DB. This causes issues because even though there is no chest at whatever coord specified in the table entry, it still counts against the # of locked chests a user has. Basically even though the entry is invalid ( this was introduced because of the restore from backup ), these chests are still counted for a user because it has their name in the DB under the invalid entry.

Is there any way to write a cleanup script to remove invalid entries from the DB? I would imagine this would have to be a command instantiated through the running plugin, otherwise there would be no way to tell if the entry was invalid because you need to see if there is indeed a chest at said location.

What are your thoughts about repairing a corrupted/old/inconsistent lwc.db ?

Add a whitelist config option

On our server, we only want users to protect chests. Nothing else. Instead of listing doors, furnaces, buttons, levers, dispensers, crafting tables, signposts, etc etc etc, it'd be nice to only specify what we DO want users to lock.

Deposit only chests

Just encountered a situation on my server which I would appreciate seeing LWC address. Basically, one of our players was taking up a collection of stuff to build a public-works project (rail system). To this end, he was hoping to be able to set up a deposit-only chest where people could drop items in it but only he/admins (and possibly other people designated by him) could take items out.

Blocks being detected as air.

Strange problem that happens occasionally on a server I use. LWC sometimes sees blocks as air when they are other things. Doing /cprivate and clicking on an affected block (whether protected or not) does nothing at all, doing /cinfo and clicking makes "This Air is not registered!". There's a possibilty, which I haven't confirmed yet, that when this is happening, other people can use the protected things as if they were not protected. It seems that the problem can affect small areas. Come back later and things might be back to normal. Perhaps it's a problem with another plugin, or even craftbukkit, rather than LWC.

lwc.protect doesn't override lwc.blockinventory

Setting on group's permissions to lwc.blockinventory and group inheriting from it to lwc.protect prevents users in that group from accessing protected items. They still can set items to be protected.

I had assumed (maybe incorrectly and you can file this as "by design") that lwc.protect overrides lwc.blockinventory, but that isn't the case. I think it maybe a useful feature though as in my example below.

Example:

groups:
    Default:
        default: true
        info:
            prefix:
            suffix:
            build: false
        inheritance:
        permissions:
            - 'lwc.blockinventory'
    User:
        default: false
        info:
            prefix:
            suffix:
            build: true
        inheritance:
            - Default
        permissions:
            - 'lwc.protect'

Locking noteblocks

New feature!

Being able to lock noteblock, they should still be able to play, but other players cant change the note.

Sign protection

it might be impossible or an bug, don't know.

some players on my server have problems with the password-protection on lift signs (falsebook / craftbook)
theyre asked to type the password but are teleported in the same moment. so using seems to be allowed for signs.

is it possible to fix this?

Players with Spaces in their name are not Compatible

This hopefully should be a relatively easy fix, just hook the chat catch controller to fix spaces in a name to underscores so we can use that and keep the functionality of the code :).

Please fix tho a lot of players with spaces in their names now :(.

Thanks :D - and AWESOME plugin btw :)

/lwc -i

Is it possible to add info on who has rights to a chest in /lwc info? It'd be nice if you could see who has rights to open the chest when you do /lwc -i on a chest.

I have followed all steps EXACTLY, but one issue remains

PLEASE HALP!
So I download the JAR, and extract it to my plugins folder, then run the server.

It downloads a "Sqlite" or something (2 files) and makes a folder called LWC

When opening LWC I see some random files and one that tells me not to change it.

This is EXACTLY what I get when trying to use LWC

me:/lwc <-c or create> Private Po1ntBlank

Server: Please left click your block to lock it

me: Left clicks block (with tools, with hand, with another block)

Server: (nothing happens) and When I type -i it says please left click the block for data or something and When I left click it nothing happens
ANY HALP WOULD BE GREATLY APPRECIATED

additional OS support

I run minecraft on Solaris and the updater tries to download sunos-x86.lib which does not exist. The linux-x86.lib seems to work if I copy it into /lib by hand so you can probably have your OS detection code just go for the Linux binaries if it detects sunos.

Better usability

Editing LWC's config files is a pain and having to explain it to everyone who hasn't done it before is a drag.

A good command that can manage most of LWC and set most things up (example: /lwc setup protections chest furnace would make just chests and furnaces protectable.)

A seperate web panel (not bundled with LWC, would come as a seperate plugin much like LWC-iConomy) would be sublime (started one before!) but at the moment is not planned.

Protecting Doors results in the block below being protected too

Well It's kind of annoying when you leave a place and had a protected door there that you removed, that other players cant replace that exact block for the reason that it's locked.
I hope that you'll release a fix for that, as it breaks the purpose of the plugin right now(people are placing locked doors everywhere D=)

Auto-Locking Bug

A bug occurs with the auto-lock feature configured for any lockable element. LWC does not check to see if the appropriate user has the permission to see if the element can be locked, it is simply locked for them. This is namely a problem in a multi-world environment where one would you wish to have auto-locking enable and another disabled. Unknown Werther this is by design or a bug.

Permission-based Chests

Since Permissions only supports users in a single group, why not have chests that are tied to a specific permission e.g.

/lwc -c perm townmember

or

/cperm townmember

(The townmember permission would map to a permission such as lwc.group.townmember)

It is currently very tedious to add members of a build team to multiple chests. If this feature was implemented, users would just need another permission to be added, which could be in the form of a command:

/cpermmanage -add user townmember
/cpermmanage -del user townmember

which could be used by anyone with the permission lwc.group.townmember.

When a user uses the command /cperm townmember, if the permission lwc.group.townmember does not exist, then the permission would be created and the user added to it. The "groups" could be kept track of in the SQL database so that checking if permissions exist would be easier.

Error on /lwc -c trap

When I try /lwc -c trap ... and select chest, I have this error :
2011-03-02 01:22:35 [SEVERE] Could not pass event BLOCK_DAMAGED to LWC
java.lang.NullPointerException
at com.griefcraft.listeners.LWCBlockListener.blockTouched(LWCBlockListener.java:647)
at com.griefcraft.listeners.LWCBlockListener.onBlockDamage(LWCBlockListener.java:127)
at org.bukkit.plugin.java.JavaPluginLoader$22.execute(JavaPluginLoader.java:232)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:357)
at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
at net.minecraft.server.NetworkManager.a(SourceFile:230)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)

I have testing with LWC 1.57 and Craftbukkit version git-Bukkit-0.0.0-482-gecc50ad (MC: 1.3)

Last hmod/Canary compatible release

I was just wondering what the last compatible release for hmod/canary is if if there is any where that I can download it I am currently running v2.31 on canary b5 is there a stable newer version?

severe exception

Noticed this in my logs... doesn't seem to happen every time someone uses /lwc -m though...

2011-01-12 08:51:58 [INFO] Command used by Admiral666 /lwc -m supercooleo insurrection
2011-01-12 08:51:59 [SEVERE] Exception while calling plugin function in 'class LWCListener' while calling hook: 'BLOCK_DESTROYED'.
java.lang.NullPointerException
at LWCListener.onBlockDestroy(LWCListener.java:281)
at PluginLoader.callHook(PluginLoader.java:506)
at kk.a(kk.java:303)
at jd.a(SourceFile:42)
at bs.a(SourceFile:232)
at kk.a(kk.java:61)
at eh.a(eh.java:71)
at net.minecraft.server.MinecraftServer.h(SourceFile:275)
at net.minecraft.server.MinecraftServer.run(SourceFile:216)
at cj.run(SourceFile:490)

Two Issues

When I /cremove on some items it still stays protected.

And if you have double doors and cprivate them they are still openable by other users that are not listed.

Do not allow access to chests, etc, if an exception is thrown

If the database connection is lost unexpectedly and cannot be reattained (e.g service mysqld stop), the current behaviour is to do nothing, and chests will be openable. Unexpected stuff happens a lot, so this is indeed an issue and has been mentioned in the past.

ecexption by using command /lwc -c

after the last update lwc plugin noone of the clients of my server can add a new protection
after using any protection command and click on a block the server send follow message:

2011-08-10 14:52:28 [SEVERE] Could not pass event PLAYER_INTERACT to LWC
com.griefcraft.scripting.ModuleException: LWC Module threw an uncaught exception! LWC version: 3.31-git-LWC-b9ea01e8c2f66480ada443ba9084dfbe9832f06e-b81jnks
at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:203)
at com.griefcraft.listeners.LWCPlayerListener.onPlayerInteract(LWCPlayerListener.java:145)
at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:307)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:210)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:553)
at net.minecraft.server.Packet15Place.a(SourceFile:57)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
Caused by: com.griefcraft.scripting.ModuleException: LWC Module threw an uncaught exception! LWC version: 3.31-git-LWC-b9ea01e8c2f66480ada443ba9084dfbe9832f06e-b81jnks
at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:203)
at com.griefcraft.modules.create.CreateModule.onBlockInteract(CreateModule.java:90)
at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:169)
... 14 more
Caused by: java.lang.NoSuchMethodError: com.griefcraft.lwc.LWC.getPermissions()Lcom/nijiko/permissions/PermissionHandler;
at com.griefcraft.lwc.iConomyModule.resolveValue(Unknown Source)
at com.griefcraft.lwc.iConomyModule.onRegisterProtection(Unknown Source)
at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:173)
... 16 more

NPE with empty database.path config node

I get a NullPointerException on server startup, when I set the database.path config node to an empty string and database.adapter to mysql.
The Server runs the lastest successful CraftBukkit build #857.

database config:
database:
adapter: mysql
path:
host: localhost
database: ***
username: ***
password: ***
prefix:

and the Exception backtrace

00:44:54 [INFO] LWC Loaded 125 locale strings (0 overrides)
00:44:54 [INFO] LWC Using Permissions API...
00:44:54 [INFO] LWC Loading MySQL
00:44:54 [INFO] MySQL Using: Mysql-connector-java-5.1.14 ( Revision: ${bzr.revision-id} )
00:44:54 [SEVERE] Error occurred while enabling LWC v3.05 (Is it up to date?): null
java.lang.NullPointerException
at java.io.File.(File.java:222)
at com.griefcraft.migration.MySQLPost200.checkDatabaseConversion(Unknown Source)
at com.griefcraft.lwc.LWC.load(Unknown Source)
at com.griefcraft.lwc.LWCPlugin.onEnable(Unknown Source)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:792)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:140)
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

I think the problem is there:
https://github.com/Hidendra/LWC/blob/master/src/main/com/griefcraft/migration/MySQLPost200.java#L50

Crash when second player logs in

(so I don't forget when I wake up).

src build crashes server with a second player on. Eventually crashes with 1 person.
Crashes do not occur with the stable build (from Downloads)

Only for Admins

Hey, I'm new to LWC, and i tried many things to make LWC allow do /lwc commands to any Player, not only for admins, can anyone tell me how to do this? that would be nice

Essentials GroupManager/McMyAdmin

I just installed LWC and haven't given any permissions to any groups yet, but somehow anyone can create a protection. I've had to give everyone lwc.mod so they can access every chest as a temporary fix.
Is it supposed to be like this by default? Does it have to do with the fact that I'm using GroupManager and McMyAdmin perhaps?

Also, since I'm using ServerCraft, I currently don't have access to the SQL database. Are there any in-game commands I can use to clear all protections?

I have two errors with the last version of lwc

i can create a lock using /lwc -c private on chests, furnaces, doors,...
but
i cannot remove the lock
and if i use the admin command to limit the entries (for ex: max 5 locks) the user still can make as many locks as he wants.
tested with two users, one admin and one non-admin.

(i run windows 2003 server / 23:20:06 [INFO] This server runs (MC server : 1.3) and craftbukkit 506)

"Info" broken

"/lwc info" / "/cinfo" doesn't work for protected things which you don't have access to. You click on them, and nothing happens at all. The click is ignored totally.
I isolated the problem to line 148 in LWCPlayerListener, "event.setCancelled(true);". This means the event is cancelled "too early", and blockTouched in LWCBlockListener never fires. By removing this line, info works correctly, and so does protection, as far as I could tell (opening/destroying protected things was prevented), so I'd say this line isn't needed at all.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.