Spigot NightLamps 1.0

Sets lamps to powered during the night time.

  1. Rustywolf submitted a new resource:

    NightLamps - Sets lamps to powered during the night time.

    Read more about this resource...
     
  2. Question: Why do you have this:
    Code (Text):
        @EventHandler
        public void onBlockPlace(BlockPlaceEvent event) {
            if (event.getBlock().getType() == Material.PISTON_STICKY_BASE || event.getBlock().getType() == Material.PISTON_BASE) {
                event.setCancelled(true);
            }
        }
    ?
     
  3. I... don't know, actually.
     
    • Funny Funny x 1
  4. does this work with 1.8?
     
  5. jap
     
  6. permissions? or is it for everyone?

    Edit:

    i found plugin.yml inside the plugin.jar
    there u descriped all Commands and the permissions:

    name: NightLamp
    main: codes.rusty.nightlamp.NightLamp
    version: 1.0
    commands:
    addlamp:
    description: Allows user to add lamps with block click
    usage: /addlamp
    permission: nightlamp.admin
    permission-message: You don't have permission to use this command!
    savelamps:
    description: Allows user to save the lamp data
    usage: /savelamps
    permission: nightlamp.admin
    permission-message: You don't have permission to use this command!
    addtoggle:
    description: Allows user to add lamps with block click (toggle)
    usage: /addtoggle
    permission: nightlamp.admin
    permission-message: You don't have permission to use this command!
    permissions:
    nightlamp.admin:
    description: Allows user to use /addlamp
    default: op
     
    #7 CloudeLecaw, Dec 11, 2014
    Last edited: Dec 12, 2014
  7. i found a bug : i can not place any pistons : if i remove the nightlamp plugin i can
     
    • Agree Agree x 3
  8. Please fix that:

    Code (Text):
    [19:26:13] [WARN] java.lang.ClassNotFoundException: net/minecraft/server/v1_7_R4/WorldServer
    [19:26:13] [WARN]     at java.lang.Class.forName0(Native Method)
    [19:26:13] [WARN]     at java.lang.Class.forName(Unknown Source)
    [19:26:13] [WARN]     at codes.rusty.nightlamp.util.WorldUtil.getWorldServer(WorldUtil.java:87)
    [19:26:13] [WARN]     at codes.rusty.nightlamp.util.WorldUtil.setLampState(WorldUtil.java:39)
    [19:26:13] [WARN]     at codes.rusty.nightlamp.NightLamp.setLampState(NightLamp.java:77)
    [19:26:13] [WARN]     at codes.rusty.nightlamp.tasks.TimeCheckTask.run(TimeCheckTask.java:29)
    [19:26:13] [WARN]     at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftTask.run(CraftTask.java:71)
    [19:26:13] [WARN]     at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:346)
    [19:26:13] [WARN]     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:862)
    [19:26:13] [WARN]     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:423)
    [19:26:13] [WARN]     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:798)
    [19:26:13] [WARN]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:658)
    [19:26:13] [WARN]     at java.lang.Thread.run(Unknown Source)
    [19:26:13] [WARN] java.lang.NullPointerException
    [19:26:13] [WARN]     at codes.rusty.nightlamp.util.WorldUtil.getStatic(WorldUtil.java:102)
    [19:26:13] [WARN]     at codes.rusty.nightlamp.util.WorldUtil.setLampState(WorldUtil.java:40)
    [19:26:13] [WARN]     at codes.rusty.nightlamp.NightLamp.setLampState(NightLamp.java:77)
    [19:26:13] [WARN]     at codes.rusty.nightlamp.tasks.TimeCheckTask.run(TimeCheckTask.java:29)
    [19:26:13] [WARN]     at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftTask.run(CraftTask.java:71)
    [19:26:13] [WARN]     at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:346)
    [19:26:13] [WARN]     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:862)
    [19:26:13] [WARN]     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:423)
    [19:26:13] [WARN]     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:798)
    [19:26:13] [WARN]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:658)
    [19:26:13] [WARN]     at java.lang.Thread.run(Unknown Source)
    [19:26:13] [WARN]     at codes.rusty.nightlamp.util.WorldUtil.setStatic(WorldUtil.java:112)
    [19:26:13] [WARN]     at codes.rusty.nightlamp.util.WorldUtil.setLampState(WorldUtil.java:43)
    [19:26:13] [WARN]     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:862)
    [19:26:13] [WARN]     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:423)
    [19:26:13] [WARN]     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:798)
    [19:26:13] [WARN]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:658)
    [19:26:13] [WARN]     at java.lang.Thread.run(Unknown Source)
    ...
     
    Running Cauldron 1.7.10
     
  9. I hope it will supported again because this is the only plugin that works on 1.8 with this functions.
    Is it possible to disable the message in the console that "The block database has been saved succesfully".
    It spams too much.
     
  10. @TomXPro
    I think that this plugin is not for Cauldron.
     
  11. Why does it say "Remove extra BlockPlaceEvent event handler" in the updates when it clearly wasn't removed? If it was, we could place pistons! Is this project abandoned somehow?
     
  12. So it seems it must have been taken down, even though the code is open source. Apparently helping the community isn't allowed. PM me for the file.
     
  13. Hello Mooticus! It's me again :D
    Since the Spigot versions 1.8.1-1.8.6 your Plugin NightLampsReloaded causes a "Server is not responding" Error. The hole server loads but after loading it crashes. Could you optimize it for 1.8.1-1-8-6? Or are you not interested in updating?
    At version 1.8 it worked very well.

    Here is the Error:

    The server has stopped responding!
    [11:24:59] [Spigot Watchdog Thread/ERROR]: Please report this to http://www.spigotmc.org/
    [11:24:59] [Spigot Watchdog Thread/ERROR]: Be sure to include ALL relevant console errors and Minecraft crash reports
    [11:24:59] [Spigot Watchdog Thread/ERROR]: Spigot version: git-Spigot-6a6b839-b0e81a4 (MC: 1.8.6)
    [11:24:59] [Spigot Watchdog Thread/ERROR]: ------------------------------
    [11:24:59] [Spigot Watchdog Thread/ERROR]: Server thread dump (Look for plugins here before reporting to Spigot!):
    [11:24:59] [Spigot Watchdog Thread/ERROR]: ------------------------------
    [11:24:59] [Spigot Watchdog Thread/ERROR]: Current Thread: Server thread
    [11:24:59] [Spigot Watchdog Thread/ERROR]: PID: 16 | Suspended: false | Native: false | State: RUNNABLE
    [11:24:59] [Spigot Watchdog Thread/ERROR]: Stack:
    [11:24:59] [Spigot Watchdog Thread/ERROR]: java.lang.String.intern(Native Method)
    [11:24:59] [Spigot Watchdog Thread/ERROR]: java.lang.Class.searchFields(Unknown Source)
    [11:24:59] [Spigot Watchdog Thread/ERROR]: java.lang.Class.getField0(Unknown Source)
    [11:24:59] [Spigot Watchdog Thread/ERROR]: java.lang.Class.getField(Unknown Source)
    [11:24:59] [Spigot Watchdog Thread/ERROR]: codes.rusty.nightlamp.util.WorldUtil.setStatic(WorldUtil.java:111)
    [11:24:59] [Spigot Watchdog Thread/ERROR]: codes.rusty.nightlamp.util.WorldUtil.setLampState(WorldUtil.java:30)
    [11:24:59] [Spigot Watchdog Thread/ERROR]: codes.rusty.nightlamp.tasks.LampSetStateTask.run(LampSetStateTask.java:18)
    [11:24:59] [Spigot Watchdog Thread/ERROR]: org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71)
    [11:24:59] [Spigot Watchdog Thread/ERROR]: org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350)
    [11:24:59] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:726)
    [11:24:59] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:367)
    [11:24:59] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:657)
    [11:24:59] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:560)
    [11:24:59] [Spigot Watchdog Thread/ERROR]: java.lang.Thread.run(Unknown Source)

    The Error is a lot longer and there are other plugins listed too, but your plugin is the first that is mentioned in the Error and when I remove your plugin it works again. So I hope you can fix it :)

    Edit:
    I think that the problem is the loading of the lamps on the server. On a other server with no lamps added it works....