Spigot LampControl 4.0.0-SNAPSHOT

Official LampControl plugin on Spigot

  1. When I place something, glass or carpet next to it, it turns off... is there a way to prevent this?
     
    • Like Like x 2
  2. Can do that.
     
  3. This error is thrown when the plugin disables and prevents the server from stopping in 1.14.4:

    Code (Text):
    [10:05:38] [Server thread/ERROR]: Error occurred while disabling LampControl v3.1.2_4 (Is it up to date?)
    java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/v1_13_R2/command/CraftCommandMap
        at cz.ceph.lampcontrol.commands.core.CommandHandler.getKnownCommands(CommandHandler.java:110) ~[?:?]
        at cz.ceph.lampcontrol.commands.core.CommandHandler.unloadAll(CommandHandler.java:124) ~[?:?]
        at cz.ceph.lampcontrol.LampControl.onDisable(LampControl.java:91) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:265) ~[spigot-1.14.4.jar:git-Spigot-065a373-763e560]
        at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:377) [spigot-1.14.4.jar:git-Spigot-065a373-763e560]
        at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:438) [spigot-1.14.4.jar:git-Spigot-065a373-763e560]
        at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:430) [spigot-1.14.4.jar:git-Spigot-065a373-763e560]
        at org.bukkit.craftbukkit.v1_14_R1.CraftServer.disablePlugins(CraftServer.java:395) [spigot-1.14.4.jar:git-Spigot-065a373-763e560]
        at net.minecraft.server.v1_14_R1.MinecraftServer.stop(MinecraftServer.java:690) [spigot-1.14.4.jar:git-Spigot-065a373-763e560]
        at net.minecraft.server.v1_14_R1.DedicatedServer.stop(DedicatedServer.java:683) [spigot-1.14.4.jar:git-Spigot-065a373-763e560]
        at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:856) [spigot-1.14.4.jar:git-Spigot-065a373-763e560]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]
     
  4. Thanks for keeping this plugin updated. I updated to 1.15 today with the release and have the attached log to share.
    [21:02:33] [Server thread/ERROR]: Error occurred while enabling LampControl v3.1.2_4 (Is it up to date?)
    java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/v1_14_R1/command/CraftCommandMap
    at cz.ceph.lampcontrol.commands.core.CommandHandler.getKnownCommands(CommandHandler.java:110) ~[?:?]
    at cz.ceph.lampcontrol.commands.core.CommandHandler.containsCommand(CommandHandler.java:115) ~[?:?]
    at cz.ceph.lampcontrol.commands.core.CommandHandler.registerCommand(CommandHandler.java:149) ~[?:?]
    at cz.ceph.lampcontrol.commands.core.CommandHandler.lambda$loadCommands$0(CommandHandler.java:67) ~[?:?]
    at java.util.ArrayList.forEach(Unknown Source) ~[?:1.8.0_231]
    at cz.ceph.lampcontrol.commands.core.CommandHandler.loadCommands(CommandHandler.java:55) ~[?:?]
    at cz.ceph.lampcontrol.LampControl.onEnable(LampControl.java:79) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:352) [spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:417) [spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.craftbukkit.v1_15_R1.CraftServer.enablePlugin(CraftServer.java:462) [spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.craftbukkit.v1_15_R1.CraftServer.enablePlugins(CraftServer.java:376) [spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:456) [spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:266) [spigot.jar:git-Spigot-530f668-4633e6c]
    at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:783) [spigot.jar:git-Spigot-530f668-4633e6c]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_231]
    Caused by: java.lang.ClassNotFoundException: org.bukkit.craftbukkit.v1_14_R1.command.CraftCommandMap
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:81) ~[spigot.jar:git-Spigot-530f668-4633e6c]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_231]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_231]
    ... 16 more
     
  5. Having the same problem.
     
  6. I'll look into this today :)
     
    • Like Like x 1
  7. Hi. It’s been nearly a month, and I was wondering if you’ve figured it out. I would love to use this wonderful plugin on my 1.15.1 server! :)
     
    • Friendly Friendly x 1
  8. I am super busy right now, not sure when I'll have time to finish it. :/
     
    • Optimistic Optimistic x 1
  9. Update is ready right now! <3
     
    • Winner Winner x 1
  10. Hi, is it possible to make this compatible with WorldGuard?
    I want to grant players permission to use this feature, but it would be bad if they turned off all the lamps at spawn :(
    Great plugin btw