Giter Site home page Giter Site logo

dmulloy2 / lwc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hidendra/lwc

12.0 12.0 6.0 145.1 MB

Lightweight Protection for Chests, Furnaces, Dispensers, and more for the Minecraft server mod Bukkit

License: Other

Java 100.00%
bukkit java locking minecraft protection spigot

lwc's Introduction

Hi there ๐Ÿ‘‹

I'm a Software Engineer at Microsoft. I currently work on ProtocolLib in my spare time. Back in the day, I wrote a lot of Bukkit plugins.

lwc's People

Contributors

ayacze avatar bencvt avatar dmulloy2 avatar epuidokas avatar evonuts avatar fpigerre avatar glitchfinder avatar hidendra avatar jascotty2 avatar leonchris88 avatar nitnelave avatar patchguru avatar phoenix616 avatar phoenixiv avatar pyrodogg avatar rikodev avatar roycurtis avatar rumickon avatar scoreunder avatar seema84 avatar tcarlsen avatar trainphreak avatar untergrundbiber avatar zford avatar

Stargazers

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

Watchers

 avatar  avatar

lwc's Issues

NumberFormatException: For input string: "HOPPER"

LWC dev 25
Paper dev 1431

Error occurs when an item's material name is used in the config.

optional:
    blacklistedBlocks:
    - '166'
    - HOPPER
[01:30:05] [Server thread/INFO]: [LWC] Enabling LWC v4.6.0-SNAPSHOT
[01:30:05] [Server thread/INFO]: [LWC] Connecting to MySQL
[01:30:05] [Server thread/INFO]: [LWC] Database upgrade in progress
[01:30:05] [Server thread/INFO]: [LWC] Database upgrade complete: 991 records updated
[01:30:05] [Server thread/ERROR]: Error occurred while enabling LWC v4.6.0-SNAPSHOT (Is it up to date?)
java.lang.NumberFormatException: For input string: "HOPPER"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[?:1.8.0_172]
	at java.lang.Integer.parseInt(Integer.java:580) ~[?:1.8.0_172]
	at java.lang.Integer.parseInt(Integer.java:615) ~[?:1.8.0_172]
	at com.griefcraft.listeners.LWCBlockListener.loadAndProcessConfig(LWCBlockListener.java:530) ~[?:?]
	at com.griefcraft.listeners.LWCBlockListener.<init>(LWCBlockListener.java:83) ~[?:?]
	at com.griefcraft.lwc.LWCPlugin.registerEvents(LWCPlugin.java:309) ~[?:?]
	at com.griefcraft.lwc.LWCPlugin.onEnable(LWCPlugin.java:206) ~[?:?]
	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[patched_1.12.2.jar:git-Paper-1431]
	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:316) [patched_1.12.2.jar:git-Paper-1431]
	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [patched_1.12.2.jar:git-Paper-1431]
	at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:395) [patched_1.12.2.jar:git-Paper-1431]
	at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:344) [patched_1.12.2.jar:git-Paper-1431]
	at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:227) [patched_1.12.2.jar:git-Paper-1431]
	at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:616) [patched_1.12.2.jar:git-Paper-1431]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172]
[01:30:05] [Server thread/INFO]: [LWC] Disabling LWC v4.6.0-SNAPSHOT
[01:30:05] [Server thread/INFO]: [LWC] Flushing protection updates (0)

Could not pass event PlayerInteractEvent to LWC

Paper dev 1552 (Spigot 1.12.2)
LWC v4.6.0-SNAPSHOT dev 28

[17:38:43] [Server thread/ERROR]: Could not pass event PlayerInteractEvent to LWC v4.6.0-SNAPSHOT
org.bukkit.event.EventException: null
	at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:72) ~[patched_1.12.2.jar:git-Paper-1552]
	at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78) ~[patched_1.12.2.jar:git-Paper-1552]
	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[patched_1.12.2.jar:git-Paper-1552]
	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:527) ~[patched_1.12.2.jar:git-Paper-1552]
	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:512) ~[patched_1.12.2.jar:git-Paper-1552]
	at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:236) ~[patched_1.12.2.jar:git-Paper-1552]
	at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:203) ~[patched_1.12.2.jar:git-Paper-1552]
	at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:199) ~[patched_1.12.2.jar:git-Paper-1552]
	at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1513) ~[patched_1.12.2.jar:git-Paper-1552]
	at net.minecraft.server.v1_12_R1.PacketPlayInArmAnimation.a(PacketPlayInArmAnimation.java:24) ~[patched_1.12.2.jar:git-Paper-1552]
	at net.minecraft.server.v1_12_R1.PacketPlayInArmAnimation.a(PacketPlayInArmAnimation.java:5) ~[patched_1.12.2.jar:git-Paper-1552]
	at net.minecraft.server.v1_12_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:14) ~[patched_1.12.2.jar:git-Paper-1552]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_181]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_181]
	at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) ~[patched_1.12.2.jar:git-Paper-1552]
	at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:850) ~[patched_1.12.2.jar:git-Paper-1552]
	at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:423) ~[patched_1.12.2.jar:git-Paper-1552]
	at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:774) ~[patched_1.12.2.jar:git-Paper-1552]
	at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:666) ~[patched_1.12.2.jar:git-Paper-1552]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]
Caused by: java.lang.NullPointerException
	at com.griefcraft.listeners.LWCEntityListener.onPlayerInteract(LWCEntityListener.java:169) ~[?:?]
	at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor108.execute(Unknown Source) ~[?:?]
	at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:70) ~[patched_1.12.2.jar:git-Paper-1552]
	... 19 more

LWC Partially Functional

Hey, Im running the latest version of LWC 4.5.1 and I deleted my lib folder and restarted. /cprivate and the majority of the other functions just don't work at all suddenly. I'm opped with all perms and doing /cprivate brings up the message that I need to left click the block I wish to protect, however left clicking or does nothing and right clicking uses the door/chest or whatever. Do I need to get the seperate entities plugin? Some help would be appreciated on this one!

[SOLVED] Command /cprivate or /cpublic doens't work

Using those commands gives you the output "Please left click your block to lock it", but when left clicking the block, it does nothing. Neither commands or using /lwc mode persist before.
Permissions are ok: 1 user, 1 group with plugin.* from all plugins in the server, including LWC, who is also OP.
Video of the said situation: https://youtu.be/yfWf7baS31c
Using: Latest version of LWC (dev 10).

Also, command /cinfo seens to be working fine, and blocks listed to be protected automatically are also working fine.

ComposerException: found undefined alias _door

@dmulloy2

LWC dev 10 errors at start-up every time. Downgrading to dev 9, it only errors when the wildcards are in the config.

[01:36:48] [Server thread/INFO]: [LWC] Enabling LWC v4.6.0-SNAPSHOT
[01:36:48] [Server thread/ERROR]: Error occurred while enabling LWC v4.6.0-SNAPSHOT (Is it up to date?)
org.yaml.snakeyaml.composer.ComposerException: found undefined alias _door
 in 'reader', line 56, column 9:
            *_door:
            ^

	at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:136) ~[patched_1.11.2.jar:git-Paper-1055]
	at org.yaml.snakeyaml.composer.Composer.composeKeyNode(Composer.java:242) ~[patched_1.11.2.jar:git-Paper-1055]
	at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:233) ~[patched_1.11.2.jar:git-Paper-1055]
	at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:225) ~[patched_1.11.2.jar:git-Paper-1055]
	at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[patched_1.11.2.jar:git-Paper-1055]
	at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:246) ~[patched_1.11.2.jar:git-Paper-1055]
	at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:237) ~[patched_1.11.2.jar:git-Paper-1055]
	at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:225) ~[patched_1.11.2.jar:git-Paper-1055]
	at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[patched_1.11.2.jar:git-Paper-1055]
	at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:246) ~[patched_1.11.2.jar:git-Paper-1055]
	at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:237) ~[patched_1.11.2.jar:git-Paper-1055]
	at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:225) ~[patched_1.11.2.jar:git-Paper-1055]
	at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[patched_1.11.2.jar:git-Paper-1055]
	at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122) ~[patched_1.11.2.jar:git-Paper-1055]
	at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105) ~[patched_1.11.2.jar:git-Paper-1055]
	at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:120) ~[patched_1.11.2.jar:git-Paper-1055]
	at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:450) ~[patched_1.11.2.jar:git-Paper-1055]
	at org.yaml.snakeyaml.Yaml.load(Yaml.java:393) ~[patched_1.11.2.jar:git-Paper-1055]
	at com.griefcraft.util.config.Configuration.load(Configuration.java:188) ~[?:?]
	at com.griefcraft.util.config.Configuration.load(Configuration.java:207) ~[?:?]
	at com.griefcraft.util.config.Configuration.load(Configuration.java:137) ~[?:?]
	at com.griefcraft.util.config.Configuration.load(Configuration.java:105) ~[?:?]
	at com.griefcraft.lwc.LWC.<init>(LWC.java:211) ~[?:?]
	at com.griefcraft.lwc.LWCPlugin.onEnable(LWCPlugin.java:194) ~[?:?]
	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:271) ~[patched_1.11.2.jar:git-Paper-1055]
	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:316) [patched_1.11.2.jar:git-Paper-1055]
	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:407) [patched_1.11.2.jar:git-Paper-1055]
	at org.bukkit.craftbukkit.v1_11_R1.CraftServer.enablePlugin(CraftServer.java:378) [patched_1.11.2.jar:git-Paper-1055]
	at org.bukkit.craftbukkit.v1_11_R1.CraftServer.enablePlugins(CraftServer.java:328) [patched_1.11.2.jar:git-Paper-1055]
	at net.minecraft.server.v1_11_R1.DedicatedServer.init(DedicatedServer.java:209) [patched_1.11.2.jar:git-Paper-1055]
	at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:603) [patched_1.11.2.jar:git-Paper-1055]
	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121]
[01:36:48] [Server thread/INFO]: [LWC] Disabling LWC v4.6.0-SNAPSHOT

/cremoveall not working

Possibly related to #17, /cremoveall does not work. No errors, it says it has removed all protections, but protections are not actually modified.

I discovered this will attempting to make a /cmodifyall command, the for loop where I get all the protections owned by a player always got 0 protections with the method lwc.getPhysicalDatabase().loadProtectionsByPlayer(player.getName()) which is the same method used by /cremoveall, so I believe the problem lies there.

purge error

null
org.bukkit.command.CommandException: Unhandled exception executing command 'lwc' in plugin LWC v4.6.0-SNAPSHOT
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[craftbukkit.jar:git-Spigot-93e20b3-31d3159]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[craftbukkit.jar:git-Spigot-93e20b3-31d3159]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:651) ~[craftbukkit.jar:git-Spigot-93e20b3-31d3159]
at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1392) [craftbukkit.jar:git-Spigot-93e20b3-31d3159]
at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1227) [craftbukkit.jar:git-Spigot-93e20b3-31d3159]
at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [craftbukkit.jar:git-Spigot-93e20b3-31d3159]
at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) [craftbukkit.jar:git-Spigot-93e20b3-31d3159]
at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [craftbukkit.jar:git-Spigot-93e20b3-31d3159]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_101]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_101]
at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [craftbukkit.jar:git-Spigot-93e20b3-31d3159]
at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748) [craftbukkit.jar:git-Spigot-93e20b3-31d3159]
at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [craftbukkit.jar:git-Spigot-93e20b3-31d3159]
at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [craftbukkit.jar:git-Spigot-93e20b3-31d3159]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [craftbukkit.jar:git-Spigot-93e20b3-31d3159]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
Caused by: com.griefcraft.scripting.ModuleException: LWC Module threw an uncaught exception! LWC version: 4.6.0
at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:358) ~[?:?]
at com.griefcraft.lwc.LWCPlugin.onCommand(LWCPlugin.java:167) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit.jar:git-Spigot-93e20b3-31d3159]
... 15 more
Caused by: com.griefcraft.scripting.ModuleException: java.sql.SQLException: No operations allowed after statement closed.
at com.griefcraft.sql.Database.printException(Database.java:187) ~[?:?]
at com.griefcraft.sql.PhysDB.invalidateHistory(PhysDB.java:1263) ~[?:?]
at com.griefcraft.lwc.LWC.fastRemoveProtectionsByPlayer(LWC.java:940) ~[?:?]
at com.griefcraft.modules.admin.AdminPurge.onCommand(AdminPurge.java:85) ~[?:?]
at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:340) ~[?:?]
at com.griefcraft.lwc.LWCPlugin.onCommand(LWCPlugin.java:167) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit.jar:git-Spigot-93e20b3-31d3159]
... 15 more
Caused by: java.sql.SQLException: No operations allowed after statement closed.
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:964) ~[craftbukkit.jar:git-Spigot-93e20b3-31d3159]
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:897) ~[craftbukkit.jar:git-Spigot-93e20b3-31d3159]
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:886) ~[craftbukkit.jar:git-Spigot-93e20b3-31d3159]
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:860) ~[craftbukkit.jar:git-Spigot-93e20b3-31d3159]
at com.mysql.jdbc.StatementImpl.checkClosed(StatementImpl.java:442) ~[craftbukkit.jar:git-Spigot-93e20b3-31d3159]
at com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:3340) ~[craftbukkit.jar:git-Spigot-93e20b3-31d3159]
at com.mysql.jdbc.PreparedStatement.setInt(PreparedStatement.java:3302) ~[craftbukkit.jar:git-Spigot-93e20b3-31d3159]
at com.griefcraft.sql.PhysDB.invalidateHistory(PhysDB.java:1258) ~[?:?]
at com.griefcraft.lwc.LWC.fastRemoveProtectionsByPlayer(LWC.java:940) ~[?:?]
at com.griefcraft.modules.admin.AdminPurge.onCommand(AdminPurge.java:85) ~[?:?]
at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:340) ~[?:?]
at com.griefcraft.lwc.LWCPlugin.onCommand(LWCPlugin.java:167) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit.jar:git-Spigot-93e20b3-31d3159]
... 15 more

NullPointerException resolveProtectionConfiguration

http://ci.dmulloy2.net/job/LWC/23/

This message occurs when trying to punch a locked item frame you locked.
[LWC] Internal error. Notify an admin immediately. :BLOCK_BREAK

[02:42:14] [Server thread/WARN]: com.griefcraft.scripting.ModuleException: LWC Module threw an uncaught exception! LWC version: 4.6.0
[02:42:14] [Server thread/WARN]: 	at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:358)
[02:42:14] [Server thread/WARN]: 	at com.griefcraft.listeners.LWCPlayerListener.onDamage(LWCPlayerListener.java:552)
[02:42:14] [Server thread/WARN]: 	at com.griefcraft.listeners.LWCPlayerListener.hangingBreakByEntityEvent(LWCPlayerListener.java:516)
[02:42:14] [Server thread/WARN]: 	at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor29.execute(Unknown Source)
[02:42:14] [Server thread/WARN]: 	at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:70)
[02:42:14] [Server thread/WARN]: 	at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78)
[02:42:14] [Server thread/WARN]: 	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[02:42:14] [Server thread/WARN]: 	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:515)
[02:42:14] [Server thread/WARN]: 	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:500)
[02:42:14] [Server thread/WARN]: 	at net.minecraft.server.v1_12_R1.EntityHanging.damageEntity(EntityHanging.java:184)
[02:42:14] [Server thread/WARN]: 	at net.minecraft.server.v1_12_R1.EntityItemFrame.damageEntity(EntityItemFrame.java:50)
[02:42:14] [Server thread/WARN]: 	at net.minecraft.server.v1_12_R1.EntityHanging.t(EntityHanging.java:164)
[02:42:14] [Server thread/WARN]: 	at net.minecraft.server.v1_12_R1.EntityHuman.attack(EntityHuman.java:953)
[02:42:14] [Server thread/WARN]: 	at net.minecraft.server.v1_12_R1.EntityPlayer.attack(EntityPlayer.java:1361)
[02:42:14] [Server thread/WARN]: 	at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1703)
[02:42:14] [Server thread/WARN]: 	at net.minecraft.server.v1_12_R1.PacketPlayInUseEntity.a(PacketPlayInUseEntity.java:49)
[02:42:14] [Server thread/WARN]: 	at net.minecraft.server.v1_12_R1.PacketPlayInUseEntity.a(PacketPlayInUseEntity.java:6)
[02:42:14] [Server thread/WARN]: 	at net.minecraft.server.v1_12_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:14)
[02:42:14] [Server thread/WARN]: 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[02:42:14] [Server thread/WARN]: 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[02:42:14] [Server thread/WARN]: 	at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46)
[02:42:14] [Server thread/WARN]: 	at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:843)
[02:42:14] [Server thread/WARN]: 	at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:427)
[02:42:14] [Server thread/WARN]: 	at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:767)
[02:42:14] [Server thread/WARN]: 	at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:665)
[02:42:14] [Server thread/WARN]: 	at java.lang.Thread.run(Thread.java:748)
[02:42:14] [Server thread/WARN]: Caused by: java.lang.NullPointerException
[02:42:14] [Server thread/WARN]: 	at com.griefcraft.lwc.LWC.resolveProtectionConfiguration(LWC.java:1496)
[02:42:14] [Server thread/WARN]: 	at com.griefcraft.modules.destroy.DestroyModule.onDestroyProtection(DestroyModule.java:58)
[02:42:14] [Server thread/WARN]: 	at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:344)
[02:42:14] [Server thread/WARN]: 	... 25 more

Bug in Build 29 on a Spigot 1.13 server

[22:04:49] [Server thread/ERROR]: Fatal error trying to convert LWC v4.7.0-SNAPSHOT
org.bukkit.plugin.AuthorNagException: No legacy enum constant for RAIL. Did you forget to define api-version: 1.13 in your plugin.yml?
	at org.bukkit.craftbukkit.v1_13_R1.util.Commodore$1$1.visitFieldInsn(Commodore.java:154) ~[spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at org.objectweb.asm.ClassReader.readCode(ClassReader.java:2207) ~[spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at org.objectweb.asm.ClassReader.readMethod(ClassReader.java:1274) ~[spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at org.objectweb.asm.ClassReader.accept(ClassReader.java:679) ~[spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at org.objectweb.asm.ClassReader.accept(ClassReader.java:391) ~[spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at org.bukkit.craftbukkit.v1_13_R1.util.Commodore.convert(Commodore.java:130) ~[spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at org.bukkit.craftbukkit.v1_13_R1.util.CraftMagicNumbers.processClass(CraftMagicNumbers.java:215) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:127) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:193) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:111) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:100) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424) [?:1.8.0_161]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [?:1.8.0_161]
	at com.griefcraft.util.ProtectionFinder.getProtectionMatchers(ProtectionFinder.java:176) [LWC-4.7.0-B29.jar:?]
	at com.griefcraft.util.ProtectionFinder.matchBlocks(ProtectionFinder.java:122) [LWC-4.7.0-B29.jar:?]
	at com.griefcraft.lwc.LWC.findProtection(LWC.java:1264) [LWC-4.7.0-B29.jar:?]
	at com.griefcraft.lwc.LWC.findProtection(LWC.java:1240) [LWC-4.7.0-B29.jar:?]
	at com.griefcraft.lwc.LWC.findProtection(LWC.java:1230) [LWC-4.7.0-B29.jar:?]
	at com.griefcraft.listeners.LWCEntityListener.entityInteract(LWCEntityListener.java:80) [LWC-4.7.0-B29.jar:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_161]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_161]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_161]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_161]
	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at net.minecraft.server.v1_13_R1.BlockRedstoneOre.stepOn(BlockRedstoneOre.java:40) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at net.minecraft.server.v1_13_R1.Entity.move(Entity.java:844) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at net.minecraft.server.v1_13_R1.EntityLiving.a(EntityLiving.java:1912) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at net.minecraft.server.v1_13_R1.EntityLiving.k(EntityLiving.java:2247) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at net.minecraft.server.v1_13_R1.EntityInsentient.k(EntityInsentient.java:504) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at net.minecraft.server.v1_13_R1.EntityMonster.k(SourceFile:35) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at net.minecraft.server.v1_13_R1.EntitySkeletonAbstract.k(EntitySkeletonAbstract.java:93) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at net.minecraft.server.v1_13_R1.EntityLiving.tick(EntityLiving.java:2062) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at net.minecraft.server.v1_13_R1.EntityInsentient.tick(EntityInsentient.java:247) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at net.minecraft.server.v1_13_R1.EntityMonster.tick(SourceFile:40) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at net.minecraft.server.v1_13_R1.World.entityJoinedWorld(World.java:1360) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at net.minecraft.server.v1_13_R1.World.g(World.java:1327) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at net.minecraft.server.v1_13_R1.World.tickEntities(World.java:1161) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at net.minecraft.server.v1_13_R1.WorldServer.tickEntities(WorldServer.java:601) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at net.minecraft.server.v1_13_R1.MinecraftServer.w(MinecraftServer.java:956) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at net.minecraft.server.v1_13_R1.DedicatedServer.w(DedicatedServer.java:411) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at net.minecraft.server.v1_13_R1.MinecraftServer.v(MinecraftServer.java:819) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at net.minecraft.server.v1_13_R1.MinecraftServer.run(MinecraftServer.java:717) [spigot-1.13.jar:git-Spigot-69774b3-4d0e2b7]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_161]

Could not pass event CreatureSpawnEvent to LWC

@dmulloy2 This error is happening for every single world I have. Specifically the Cannot measure distance between worldname and worldname.

LWC dev 25

[09:55:53] [Server thread/ERROR]: Could not pass event CreatureSpawnEvent to LWC v4.6.0-SNAPSHOT
org.bukkit.event.EventException: null
	at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:72) ~[patched_1.12.2.jar:git-Paper-1431]
	at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78) ~[patched_1.12.2.jar:git-Paper-1431]
	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[patched_1.12.2.jar:git-Paper-1431]
	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:515) [patched_1.12.2.jar:git-Paper-1431]
	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:500) [patched_1.12.2.jar:git-Paper-1431]
	at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callCreatureSpawnEvent(CraftEventFactory.java:285) [patched_1.12.2.jar:git-Paper-1431]
	at net.minecraft.server.v1_12_R1.World.addEntity(World.java:1133) [patched_1.12.2.jar:git-Paper-1431]
	at net.minecraft.server.v1_12_R1.WorldServer.addEntity(WorldServer.java:1141) [patched_1.12.2.jar:git-Paper-1431]
	at net.minecraft.server.v1_12_R1.SpawnerCreature.a(SpawnerCreature.java:230) [patched_1.12.2.jar:git-Paper-1431]
	at net.minecraft.server.v1_12_R1.WorldServer.doTick(WorldServer.java:298) [patched_1.12.2.jar:git-Paper-1431]
	at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:898) [patched_1.12.2.jar:git-Paper-1431]
	at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:427) [patched_1.12.2.jar:git-Paper-1431]
	at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:767) [patched_1.12.2.jar:git-Paper-1431]
	at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:665) [patched_1.12.2.jar:git-Paper-1431]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172]
Caused by: java.lang.IllegalArgumentException: Cannot measure distance between world and world_the_end
	at org.bukkit.Location.distanceSquared(Location.java:460) ~[patched_1.12.2.jar:git-Paper-1431]
	at com.griefcraft.listeners.LWCEntityListener.onCreateSpawn(LWCEntityListener.java:201) ~[LWC.jar:?]
	at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor98.execute(Unknown Source) ~[?:?]
	at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:70) ~[patched_1.12.2.jar:git-Paper-1431]
	... 14 more

double door 1.13

I use this Build 35 on Spigot 1.13.2

  • protected double doors do not go up and down at the same time
  • autoclose is also not working and buggy

after converting some doors lost the protection (for example all oak doors)

SQLException: Streaming result set

LWC dev 15

[09:36:09] [Server thread/INFO]: player issued server command: /lwc admin purge eternal23
[09:36:09] [Thread-8/INFO]: [LWC] Keepalive packet (ping) failed!
[09:36:09] [Thread-8/WARN]: java.sql.SQLException: Streaming result set com.mysql.jdbc.RowDataDynamic@72aff75f is still active. No statements may be issued when any streaming result sets are open and in use on a given connection. Ensure that you have called .close() on any active streaming result sets before attempting more queries.
[09:36:09] [Thread-8/WARN]: 	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:868)
[09:36:09] [Thread-8/WARN]: 	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:864)
[09:36:09] [Thread-8/WARN]: 	at com.mysql.jdbc.MysqlIO.checkForOutstandingStreamingData(MysqlIO.java:3211)
[09:36:09] [Thread-8/WARN]: 	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2443)
[09:36:09] [Thread-8/WARN]: 	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2677)
[09:36:09] [Thread-8/WARN]: 	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2545)
[09:36:09] [Thread-8/WARN]: 	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2503)
[09:36:09] [Thread-8/WARN]: 	at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1369)
[09:36:09] [Thread-8/WARN]: 	at com.griefcraft.sql.Database.pingDatabase(Database.java:148)
[09:36:09] [Thread-8/WARN]: 	at com.griefcraft.util.DatabaseThread.flushDatabase(DatabaseThread.java:159)
[09:36:09] [Thread-8/WARN]: 	at com.griefcraft.util.DatabaseThread.run(DatabaseThread.java:177)
[09:36:09] [Thread-8/WARN]: 	at java.lang.Thread.run(Thread.java:745)

During startup: "java.sql.SQLException: statement is not executing"

Tested on a clean server. The plugin appears to load but doesn't actually function. /cprivate prints the 'left-click a block' message, but it doesn't respond to the left-click action.

Issue reproduced on commit edd2724. Could not reproduce on commit c2bb8dd8.

[11:06:01] [Server thread/INFO]: [LWC] Loading LWC v${project.version}
[11:06:01] [Server thread/INFO]: [LWC] Enabling LWC v${project.version}
[11:06:01] [Server thread/INFO]: [LWC] Connecting to SQLite
[11:06:01] [Server thread/WARN]: com.griefcraft.scripting.ModuleException: java.sql.SQLException: statement is not executing
[11:06:01] [Server thread/WARN]: at com.griefcraft.sql.Database.printException(Database.java:204)
[11:06:01] [Server thread/WARN]: at com.griefcraft.sql.PhysDB.resolveProtections(PhysDB.java:814)
[11:06:01] [Server thread/WARN]: at com.griefcraft.sql.PhysDB.doUpdate400_5(PhysDB.java:2036)
[11:06:01] [Server thread/WARN]: at com.griefcraft.sql.PhysDB.load(PhysDB.java:271)
[11:06:01] [Server thread/WARN]: at com.griefcraft.lwc.LWC.load(LWC.java:1540)
[11:06:01] [Server thread/WARN]: at com.griefcraft.lwc.LWCPlugin.onEnable(LWCPlugin.java:203)
[11:06:01] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264)
[11:06:01] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337)
[11:06:01] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:402)
[11:06:01] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:384)
[11:06:01] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:333)
[11:06:01] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:206)
[11:06:01] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:545)
[11:06:01] [Server thread/WARN]: at java.lang.Thread.run(Unknown Source)
[11:06:01] [Server thread/WARN]: Caused by: java.sql.SQLException: statement is not executing
[11:06:01] [Server thread/WARN]: at org.sqlite.core.CoreStatement.checkOpen(CoreStatement.java:50)
[11:06:01] [Server thread/WARN]: at org.sqlite.jdbc3.JDBC3PreparedStatement.executeQuery(JDBC3PreparedStatement.java:65)
[11:06:01] [Server thread/WARN]: at com.griefcraft.sql.PhysDB.resolveProtections(PhysDB.java:811)
[11:06:01] [Server thread/WARN]: ... 12 more
[11:06:01] [Server thread/ERROR]: Error occurred while enabling LWC v${project.version} (Is it up to date?)
com.griefcraft.scripting.ModuleException: java.sql.SQLException: statement is not executing
at com.griefcraft.sql.Database.printException(Database.java:204) ~[?:?]
at com.griefcraft.sql.PhysDB.precache(PhysDB.java:873) ~[?:?]
at com.griefcraft.lwc.LWC.load(LWC.java:1549) ~[?:?]
at com.griefcraft.lwc.LWCPlugin.onEnable(LWCPlugin.java:203) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337) [spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:402) [spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:384) [spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:333) [spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:206) [spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:545) [spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_144]
Caused by: java.sql.SQLException: statement is not executing
at org.sqlite.core.CoreStatement.checkOpen(CoreStatement.java:50) ~[spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at org.sqlite.core.CorePreparedStatement.batch(CorePreparedStatement.java:117) ~[spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at org.sqlite.jdbc3.JDBC3PreparedStatement.setInt(JDBC3PreparedStatement.java:324) ~[spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at com.griefcraft.sql.PhysDB.precache(PhysDB.java:862) ~[?:?]
... 10 more

SQLException: No operations allowed after statement closed.

LWC dev 17

@dmulloy2

Player tried purging someone from the database 3 times. Error occurred all 3 times.

[19:53:01] [Server thread/INFO]: player issued server command: /lwc admin purge creppycrepper123
[19:53:01] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'lwc' in plugin LWC v4.6.0-SNAPSHOT
	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[patched_1.12.jar:git-Paper-1152]
	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:151) ~[patched_1.12.jar:git-Paper-1152]
	at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:670) ~[patched_1.12.jar:git-Paper-1152]
	at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1424) ~[patched_1.12.jar:git-Paper-1152]
	at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1229) ~[patched_1.12.jar:git-Paper-1152]
	at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) ~[patched_1.12.jar:git-Paper-1152]
	at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[patched_1.12.jar:git-Paper-1152]
	at net.minecraft.server.v1_12_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:14) ~[patched_1.12.jar:git-Paper-1152]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_131]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_131]
	at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [patched_1.12.jar:git-Paper-1152]
	at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:842) [patched_1.12.jar:git-Paper-1152]
	at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:423) [patched_1.12.jar:git-Paper-1152]
	at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:766) [patched_1.12.jar:git-Paper-1152]
	at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:664) [patched_1.12.jar:git-Paper-1152]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
Caused by: com.griefcraft.scripting.ModuleException: LWC Module threw an uncaught exception! LWC version: 4.6.0
	at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:358) ~[?:?]
	at com.griefcraft.lwc.LWCPlugin.onCommand(LWCPlugin.java:167) ~[?:?]
	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[patched_1.12.jar:git-Paper-1152]
	... 15 more
Caused by: com.griefcraft.scripting.ModuleException: java.sql.SQLException: No operations allowed after statement closed.
	at com.griefcraft.sql.Database.printException(Database.java:187) ~[?:?]
	at com.griefcraft.sql.PhysDB.invalidateHistory(PhysDB.java:1263) ~[?:?]
	at com.griefcraft.lwc.LWC.fastRemoveProtectionsByPlayer(LWC.java:940) ~[?:?]
	at com.griefcraft.modules.admin.AdminPurge.onCommand(AdminPurge.java:85) ~[?:?]
	at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:340) ~[?:?]
	at com.griefcraft.lwc.LWCPlugin.onCommand(LWCPlugin.java:167) ~[?:?]
	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[patched_1.12.jar:git-Paper-1152]
	... 15 more
Caused by: java.sql.SQLException: No operations allowed after statement closed.
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:964) ~[patched_1.12.jar:git-Paper-1152]
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:897) ~[patched_1.12.jar:git-Paper-1152]
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:886) ~[patched_1.12.jar:git-Paper-1152]
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:860) ~[patched_1.12.jar:git-Paper-1152]
	at com.mysql.jdbc.StatementImpl.checkClosed(StatementImpl.java:442) ~[patched_1.12.jar:git-Paper-1152]
	at com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:3340) ~[patched_1.12.jar:git-Paper-1152]
	at com.mysql.jdbc.PreparedStatement.setInt(PreparedStatement.java:3302) ~[patched_1.12.jar:git-Paper-1152]
	at com.griefcraft.sql.PhysDB.invalidateHistory(PhysDB.java:1258) ~[?:?]
	at com.griefcraft.lwc.LWC.fastRemoveProtectionsByPlayer(LWC.java:940) ~[?:?]
	at com.griefcraft.modules.admin.AdminPurge.onCommand(AdminPurge.java:85) ~[?:?]
	at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:340) ~[?:?]
	at com.griefcraft.lwc.LWCPlugin.onCommand(LWCPlugin.java:167) ~[?:?]
	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[patched_1.12.jar:git-Paper-1152]
	... 15 more

Wildcards do not function whatsoever.

LWC dev 14

@dmulloy2 The wildcard protection IDs do not function at all. I am not able to lock any doors or shulker boxes in-game.

Set in the main core.yml.

        "*_door":
            enabled: true
        "*_fence_gate":
            enabled: true
        "*_shulker_box":
            enabled: true

I have to use their specific name to be able to lock the items.

SQLException: No operations allowed after statement closed

Paper dev 1170 (Spigot 1.12.1)
LWC dev 18

[20:25:13] [Server thread/INFO]: player issued server command: /lwc admin purge IchBinDerFuhrer
[20:25:13] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'lwc' in plugin LWC v4.6.0-SNAPSHOT
	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[patched_1.12.1.jar:git-Paper-1170]
	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:151) ~[patched_1.12.1.jar:git-Paper-1170]
	at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:666) ~[patched_1.12.1.jar:git-Paper-1170]
	at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1425) ~[patched_1.12.1.jar:git-Paper-1170]
	at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1230) ~[patched_1.12.1.jar:git-Paper-1170]
	at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) ~[patched_1.12.1.jar:git-Paper-1170]
	at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[patched_1.12.1.jar:git-Paper-1170]
	at net.minecraft.server.v1_12_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:14) ~[patched_1.12.1.jar:git-Paper-1170]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_144]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_144]
	at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [patched_1.12.1.jar:git-Paper-1170]
	at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:843) [patched_1.12.1.jar:git-Paper-1170]
	at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:424) [patched_1.12.1.jar:git-Paper-1170]
	at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:767) [patched_1.12.1.jar:git-Paper-1170]
	at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:665) [patched_1.12.1.jar:git-Paper-1170]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]
Caused by: com.griefcraft.scripting.ModuleException: LWC Module threw an uncaught exception! LWC version: 4.6.0
	at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:358) ~[?:?]
	at com.griefcraft.lwc.LWCPlugin.onCommand(LWCPlugin.java:167) ~[?:?]
	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[patched_1.12.1.jar:git-Paper-1170]
	... 15 more
Caused by: com.griefcraft.scripting.ModuleException: java.sql.SQLException: No operations allowed after statement closed.
	at com.griefcraft.sql.Database.printException(Database.java:187) ~[?:?]
	at com.griefcraft.sql.PhysDB.invalidateHistory(PhysDB.java:1263) ~[?:?]
	at com.griefcraft.lwc.LWC.fastRemoveProtectionsByPlayer(LWC.java:940) ~[?:?]
	at com.griefcraft.modules.admin.AdminPurge.onCommand(AdminPurge.java:85) ~[?:?]
	at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:340) ~[?:?]
	at com.griefcraft.lwc.LWCPlugin.onCommand(LWCPlugin.java:167) ~[?:?]
	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[patched_1.12.1.jar:git-Paper-1170]
	... 15 more
Caused by: java.sql.SQLException: No operations allowed after statement closed.
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:964) ~[patched_1.12.1.jar:git-Paper-1170]
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:897) ~[patched_1.12.1.jar:git-Paper-1170]
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:886) ~[patched_1.12.1.jar:git-Paper-1170]
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:860) ~[patched_1.12.1.jar:git-Paper-1170]
	at com.mysql.jdbc.StatementImpl.checkClosed(StatementImpl.java:442) ~[patched_1.12.1.jar:git-Paper-1170]
	at com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:3340) ~[patched_1.12.1.jar:git-Paper-1170]
	at com.mysql.jdbc.PreparedStatement.setInt(PreparedStatement.java:3302) ~[patched_1.12.1.jar:git-Paper-1170]
	at com.griefcraft.sql.PhysDB.invalidateHistory(PhysDB.java:1258) ~[?:?]
	at com.griefcraft.lwc.LWC.fastRemoveProtectionsByPlayer(LWC.java:940) ~[?:?]
	at com.griefcraft.modules.admin.AdminPurge.onCommand(AdminPurge.java:85) ~[?:?]
	at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:340) ~[?:?]
	at com.griefcraft.lwc.LWCPlugin.onCommand(LWCPlugin.java:167) ~[?:?]
	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[patched_1.12.1.jar:git-Paper-1170]
	... 15 more

Publish to repo

Hi Dan

Mate I was hoping you could start publishing LWC snapshots to your nexus repo, saves me setting up a build server for it just to get the artifacts to allow my builds to proceed ok.

4.6 was the latest

Thanks in advance

cleanup broken

Build #1โ€‹9
Command /lwc admin cleanup

error:
null
org.bukkit.command.CommandException: Unhandled exception executing command 'lwc' in plugin LWC v4.6.0-SNAPSHOT
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[craftbukkit.jar:git-Spigot-65e8124-357b573]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[craftbukkit.jar:git-Spigot-65e8124-357b573]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:647) ~[craftbukkit.jar:git-Spigot-65e8124-357b573]
at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1386) [craftbukkit.jar:git-Spigot-65e8124-357b573]
at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1221) [craftbukkit.jar:git-Spigot-65e8124-357b573]
at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [craftbukkit.jar:git-Spigot-65e8124-357b573]
at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) [craftbukkit.jar:git-Spigot-65e8124-357b573]
at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [craftbukkit.jar:git-Spigot-65e8124-357b573]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_101]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_101]
at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [craftbukkit.jar:git-Spigot-65e8124-357b573]
at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748) [craftbukkit.jar:git-Spigot-65e8124-357b573]
at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [craftbukkit.jar:git-Spigot-65e8124-357b573]
at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [craftbukkit.jar:git-Spigot-65e8124-357b573]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [craftbukkit.jar:git-Spigot-65e8124-357b573]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
Caused by: com.griefcraft.scripting.ModuleException: LWC Module threw an uncaught exception! LWC version: 4.6.0
at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:358) ~[?:?]
at com.griefcraft.lwc.LWCPlugin.onCommand(LWCPlugin.java:167) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit.jar:git-Spigot-65e8124-357b573]
... 15 more
Caused by: com.griefcraft.scripting.ModuleException: java.sql.SQLException: No operations allowed after statement closed.
at com.griefcraft.sql.Database.printException(Database.java:204) ~[?:?]
at com.griefcraft.sql.PhysDB.fetch(PhysDB.java:128) ~[?:?]
at com.griefcraft.sql.PhysDB.getProtectionCount(PhysDB.java:139) ~[?:?]
at com.griefcraft.modules.admin.AdminCleanup.onCommand(AdminCleanup.java:88) ~[?:?]
at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:340) ~[?:?]
at com.griefcraft.lwc.LWCPlugin.onCommand(LWCPlugin.java:167) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit.jar:git-Spigot-65e8124-357b573]
... 15 more
Caused by: java.sql.SQLException: No operations allowed after statement closed.
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:964) ~[craftbukkit.jar:git-Spigot-65e8124-357b573]
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:897) ~[craftbukkit.jar:git-Spigot-65e8124-357b573]
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:886) ~[craftbukkit.jar:git-Spigot-65e8124-357b573]
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:860) ~[craftbukkit.jar:git-Spigot-65e8124-357b573]
at com.mysql.jdbc.StatementImpl.checkClosed(StatementImpl.java:442) ~[craftbukkit.jar:git-Spigot-65e8124-357b573]
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1919) ~[craftbukkit.jar:git-Spigot-65e8124-357b573]
at com.griefcraft.sql.PhysDB.fetch(PhysDB.java:118) ~[?:?]
at com.griefcraft.sql.PhysDB.getProtectionCount(PhysDB.java:139) ~[?:?]
at com.griefcraft.modules.admin.AdminCleanup.onCommand(AdminCleanup.java:88) ~[?:?]
at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:340) ~[?:?]
at com.griefcraft.lwc.LWCPlugin.onCommand(LWCPlugin.java:167) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit.jar:git-Spigot-65e8124-357b573]
... 15 more

MySQL SSL Error

Can you please add a option to set "useSSL=false" or "useSSL=yes"?

After i update my MySQL Server i get this warning every second ->

WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.

Reports of protections disappearing.

LWC 4.6.0-SNAPSHOT commit 92b5396

I'm getting reports from players and staff alike that entity protections (like item frames) and doors are disappearing after a while. Is this an issue? :( Cache is only 55% full.

LWC::Event: c.g.l.LWCPlayerListener (PlayerInteractEvent) causing high tick lag and lag spikes.

LWC dev 18 on a fresh new database with less than 1k protections.

I was getting some random lag spikes occasionally so I ran a timings report. LWC is reported as being near the top of causing the problem. Is there any micro-optimizing that can be done to the interact listener?

Timings report.
https://timings.aikar.co/?id=cd10e2beb4784d9d9f47017650008ab5

core:
    locale: en
    flushInterval: 10
    cacheSize: 30000
    precache: -1
    showNotices: true
    showMyNotices: false
    opIsLWCAdmin: true
    disableHistory: true
    townyBorders: false
    groupPrefix: group.
    updateNotifier: false
optional:
    onlyProtectWhenOwnerIsOnline: false
    onlyProtectWhenOwnerIsOffline: false
    exemptBlocks: []
    optOut: true
    blacklistedBlocks:
    - 166
    - 154
    blacklistedPlayers:
    - plr
    useProtectionLimits: true
    fastHopperProtection: true
database:
    adapter: mysql
    path: plugins/LWC/lwc.db
    host: localhost
    database: 
    username: 
    password: 
    prefix: 
    ping_interval: 300
protections:
    denyRedstone: false
    denyHoppers: true
    autoRegister: false
    ignoreBlockDestruction: false
    ignoreLeftClick: false
    ignoreRightClick: false
    ignoreExplosions: false
    allowEntityBreakDoor: false
    allowEntityInteract: false
    quiet: false
    readonly-modify: false
    readonly-remove: false
    blocks:
        chest:
            enabled: true
        trapped_chest:
            enabled: true
        furnace:
            enabled: true
        dispenser:
            enabled: true
        wooden_door:
            enabled: true
        iron_door:
            enabled: true
        spruce_door:
            enabled: true
        birch_door:
            enabled: true
        jungle_door:
            enabled: true
        acacia_door:
            enabled: true
        dark_oak_door:
            enabled: true
        trap_door:
            enabled: true
        iron_trapdoor:
            enabled: true
        fence_gate:
            enabled: true
        spruce_fence_gate:
            enabled: true
        birch_fence_gate:
            enabled: true
        jungle_fence_gate:
            enabled: true
        acacia_fence_gate:
            enabled: true
        dark_oak_fence_gate:
            enabled: true
        standing_banner:
            enabled: true
        wall_banner:
            enabled: true
        white_shulker_box:
            enabled: true
        orange_shulker_box:
            enabled: true
        magenta_shulker_box:
            enabled: true
        light_blue_shulker_box:
            enabled: true
        yellow_shulker_box:
            enabled: true
        lime_shulker_box:
            enabled: true
        pink_shulker_box:
            enabled: true
        gray_shulker_box:
            enabled: true
        silver_shulker_box:
            enabled: true
        cyan_shulker_box:
            enabled: true
        purple_shulker_box:
            enabled: true
        blue_shulker_box:
            enabled: true
        brown_shulker_box:
            enabled: true
        green_shulker_box:
            enabled: true
        red_shulker_box:
            enabled: true
        black_shulker_box:
            enabled: true
modes:
    droptransfer:
        enabled: false
        crossWorld: false
    persist:
        enabled: true

NullPointerException from optional.blacklistedBlocks

LWC dev 30
Paper-1.13 dev 152 (Spigot 1.13)

Testing plugins out in a new 1.13 environment to see what doesn't work. Noticed this error from LWC at start-up.

[13:07:41] [Server thread/INFO]: [LWC] Enabling LWC v4.7.0-SNAPSHOT
[13:07:41] [Server thread/INFO]: [LWC] Connecting to SQLite
[13:07:41] [Server thread/INFO]: [LWC] Failed to parse "154" from optional.blacklistedBlocks:
[13:07:41] [Server thread/WARN]: java.lang.NullPointerException
[13:07:41] [Server thread/WARN]: 	at org.bukkit.material.MaterialData.hashCode(MaterialData.java:93)
[13:07:41] [Server thread/WARN]: 	at java.util.HashMap.hash(HashMap.java:339)
[13:07:41] [Server thread/WARN]: 	at java.util.HashMap.put(HashMap.java:612)
[13:07:41] [Server thread/WARN]: 	at java.util.HashSet.add(HashSet.java:220)
[13:07:41] [Server thread/WARN]: 	at com.griefcraft.listeners.LWCBlockListener.loadAndProcessConfig(LWCBlockListener.java:545)
[13:07:41] [Server thread/WARN]: 	at com.griefcraft.listeners.LWCBlockListener.<init>(LWCBlockListener.java:78)
[13:07:41] [Server thread/WARN]: 	at com.griefcraft.lwc.LWCPlugin.registerEvents(LWCPlugin.java:309)
[13:07:41] [Server thread/WARN]: 	at com.griefcraft.lwc.LWCPlugin.onEnable(LWCPlugin.java:206)
[13:07:41] [Server thread/WARN]: 	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264)
[13:07:41] [Server thread/WARN]: 	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:325)
[13:07:41] [Server thread/WARN]: 	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405)
[13:07:41] [Server thread/WARN]: 	at org.bukkit.craftbukkit.v1_13_R1.CraftServer.enablePlugin(CraftServer.java:433)
[13:07:41] [Server thread/WARN]: 	at org.bukkit.craftbukkit.v1_13_R1.CraftServer.enablePlugins(CraftServer.java:347)
[13:07:41] [Server thread/WARN]: 	at net.minecraft.server.v1_13_R1.DedicatedServer.init(DedicatedServer.java:231)
[13:07:41] [Server thread/WARN]: 	at net.minecraft.server.v1_13_R1.MinecraftServer.run(MinecraftServer.java:764)
[13:07:41] [Server thread/WARN]: 	at java.lang.Thread.run(Thread.java:748)
[13:07:41] [Server thread/INFO]: [LWC] Failed to parse "166" from optional.blacklistedBlocks:
[13:07:41] [Server thread/WARN]: java.lang.NullPointerException
[13:07:41] [Server thread/WARN]: 	at org.bukkit.material.MaterialData.hashCode(MaterialData.java:93)
[13:07:41] [Server thread/WARN]: 	at java.util.HashMap.hash(HashMap.java:339)
[13:07:41] [Server thread/WARN]: 	at java.util.HashMap.put(HashMap.java:612)
[13:07:41] [Server thread/WARN]: 	at java.util.HashSet.add(HashSet.java:220)
[13:07:41] [Server thread/WARN]: 	at com.griefcraft.listeners.LWCBlockListener.loadAndProcessConfig(LWCBlockListener.java:545)
[13:07:41] [Server thread/WARN]: 	at com.griefcraft.listeners.LWCBlockListener.<init>(LWCBlockListener.java:78)
[13:07:41] [Server thread/WARN]: 	at com.griefcraft.lwc.LWCPlugin.registerEvents(LWCPlugin.java:309)
[13:07:41] [Server thread/WARN]: 	at com.griefcraft.lwc.LWCPlugin.onEnable(LWCPlugin.java:206)
[13:07:41] [Server thread/WARN]: 	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264)
[13:07:41] [Server thread/WARN]: 	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:325)
[13:07:41] [Server thread/WARN]: 	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405)
[13:07:41] [Server thread/WARN]: 	at org.bukkit.craftbukkit.v1_13_R1.CraftServer.enablePlugin(CraftServer.java:433)
[13:07:41] [Server thread/WARN]: 	at org.bukkit.craftbukkit.v1_13_R1.CraftServer.enablePlugins(CraftServer.java:347)
[13:07:41] [Server thread/WARN]: 	at net.minecraft.server.v1_13_R1.DedicatedServer.init(DedicatedServer.java:231)
[13:07:41] [Server thread/WARN]: 	at net.minecraft.server.v1_13_R1.MinecraftServer.run(MinecraftServer.java:764)
[13:07:41] [Server thread/WARN]: 	at java.lang.Thread.run(Thread.java:748)

iron door right click

since 1.9 player can only open protected iron doors with left click. right click play the right sound but dont open the door. player in creative mode cant open this door because left click destroy the door. pls remove left click and add only right click. thanks

1.13 support

Hey dmulloy2,

is the latest build (#28) compatible with the new spigot version 1.13?

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.