Spigot Redstone Clock Preventer 2 3.4.0

Simple redstone clock detection and prevention

  1. Empire92 submitted a new resource:

    RedstoneClockPreventer 2 - Simple redstone clock detection

    Read more about this resource...
     
  2. Thanks for updating this plugin!
     
  3. Your welcome.

    Although it's not really an update, as the code is entirely different.
     
    • Informative Informative x 1
  4. fergydanny

    Benefactor

    nice plugin but why does it completely stop repeaters? if I build a straight redstone line and place one repeater it will not work. And no I did not configure it to disable-all
     
  5. It should only disable it if you have a lever and you flip it more than every 3 seconds (configured). You can lower this in the config.yml, or completely disable it.

    It's not really clocks that cause lag anyway, but the number of devices connected to them. If you just want to decrease lag and don't care about clocks, you can lower the time limit in the config and just use rely on the device limit in the config.yml.
     
    • Informative Informative x 1
  6. fergydanny

    Benefactor

    Alright, thanks for the info!
     
  7. SuperMonis

    Supporter

    How do I stop people from doing this?
    [​IMG]
     
  8. Yes this works... and looks like some debug messages weren't turned off:
    Code (Text):

    2015-06-25 22:36:07 [INFO] REDSTONE_WIRE
    2015-06-25 22:36:07 [INFO] REDSTONE_WIRE
    2015-06-25 22:36:07 [INFO] REDSTONE_WIRE
    2015-06-25 22:36:07 [INFO] REDSTONE_WIRE
    2015-06-25 22:36:07 [INFO] REDSTONE_WIRE
    2015-06-25 22:36:07 [INFO] REDSTONE_WIRE
    2015-06-25 22:36:07 [INFO] REDSTONE_WIRE
    2015-06-25 22:36:07 [INFO] REDSTONE_WIRE
    2015-06-25 22:36:07 [INFO] REDSTONE_WIRE
    2015-06-25 22:36:07 [INFO] REDSTONE_WIRE
    2015-06-25 22:36:07 [INFO] REDSTONE_WIRE
    2015-06-25 22:36:07 [INFO] REDSTONE_WIRE
    2015-06-25 22:36:07 [INFO] REDSTONE_WIRE
    2015-06-25 22:36:07 [INFO] REDSTONE_WIRE
    2015-06-25 22:36:07 [INFO] REDSTONE_WIRE
    2015-06-25 22:36:07 [INFO] REDSTONE_WIRE
    2015-06-25 22:36:07 [INFO] REDSTONE_WIRE
    2015-06-25 22:36:07 [INFO] REDSTONE_WIRE
    2015-06-25 22:36:07 [INFO] REDSTONE_TORCH_OFF

    My config:
    Code (Text):

    # The version (It gets angry when you change its value)
    version: '1.2'
    # The worlds this plugin is active in
    worlds:
    - plots
    - creativeworld
    # If true, all complex redstone will be disabled
    disable-all: true
    # The interval before a clock can tick (20 ticks = 1 second)
    timeout: 60
    # The maximum number of devices allowed to tick per second
    max-devices: 1
     
    • Like Like x 1
  9. cowgod

    Supporter

    Do I need this plugin for PlotSquared's "redstone" flag to function?
     
  10. No, afaik.
     
  11. I have the nocomplexredstone config option set to true. However, it seems I'm getting these errors whenever someone uses a button or a pressure plate (haven't tested other things yet):
    Code (Text):

    2015-07-11 13:09:38 [ERROR] Could not pass event BlockRedstoneEvent to RedstoneClockPreventer2 v1.3
    org.bukkit.event.EventException
     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot.jar:git-Spigot-6d0ae89-a03743b]
     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-6d0ae89-a03743b]
     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.BlockPressurePlateAbstract.a(BlockPressurePlateAbstract.java:110) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.BlockPressurePlateAbstract.a(BlockPressurePlateAbstract.java:93) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.Entity.checkBlockCollisions(Entity.java:760) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.Entity.move(Entity.java:406) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.EntityLiving.g(EntityLiving.java:1394) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.EntityHuman.g(EntityHuman.java:1355) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.EntityLiving.m(EntityLiving.java:1651) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.EntityHuman.m(EntityHuman.java:393) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.EntityLiving.t_(EntityLiving.java:1486) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.EntityHuman.t_(EntityHuman.java:173) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.EntityPlayer.l(EntityPlayer.java:285) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:381) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.PacketPlayInFlying.a(SourceFile:126) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.PacketPlayInFlying$PacketPlayInPosition.a(SourceFile:57) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_45]
     at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_45]
     at net.minecraft.server.v1_8_R3.SystemUtils.a(SystemUtils.java:19) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:718) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:367) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:657) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:560) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at java.lang.Thread.run(Unknown Source) [?:1.8.0_45]
    Caused by: java.lang.NoClassDefFoundError: com/intellectualcrafters/plot/PlotSquared
     at com.boydti.rcp2.PSHook.isAllowed(PSHook.java:13) ~[?:?]
     at com.boydti.rcp2.Main.onRedstoneEvent(Main.java:139) ~[?:?]
     at sun.reflect.GeneratedMethodAccessor216.invoke(Unknown Source) ~[?:?]
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
     at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot.jar:git-Spigot-6d0ae89-a03743b]
     ... 26 more
    2015-07-11 13:09:43 [ERROR] Could not pass event BlockRedstoneEvent to RedstoneClockPreventer2 v1.3
    org.bukkit.event.EventException
     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot.jar:git-Spigot-6d0ae89-a03743b]
     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-6d0ae89-a03743b]
     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.BlockPressurePlateAbstract.a(BlockPressurePlateAbstract.java:110) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.BlockPressurePlateAbstract.b(BlockPressurePlateAbstract.java:82) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.WorldServer.a(WorldServer.java:653) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.WorldServer.doTick(WorldServer.java:249) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:773) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:367) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:657) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:560) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at java.lang.Thread.run(Unknown Source) [?:1.8.0_45]
    Caused by: java.lang.NoClassDefFoundError: com/intellectualcrafters/plot/PlotSquared
     at com.boydti.rcp2.PSHook.isAllowed(PSHook.java:13) ~[?:?]
     at com.boydti.rcp2.Main.onRedstoneEvent(Main.java:139) ~[?:?]
     at sun.reflect.GeneratedMethodAccessor216.invoke(Unknown Source) ~[?:?]
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
     at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot.jar:git-Spigot-6d0ae89-a03743b]
     ... 12 more
    2015-07-11 13:09:44 [ERROR] Could not pass event BlockRedstoneEvent to RedstoneClockPreventer2 v1.3
    org.bukkit.event.EventException
     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot.jar:git-Spigot-6d0ae89-a03743b]
     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-6d0ae89-a03743b]
     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.BlockPressurePlateAbstract.a(BlockPressurePlateAbstract.java:110) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.BlockPressurePlateAbstract.a(BlockPressurePlateAbstract.java:93) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.Entity.checkBlockCollisions(Entity.java:760) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.Entity.move(Entity.java:406) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.EntityLiving.g(EntityLiving.java:1394) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.EntityHuman.g(EntityHuman.java:1355) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.EntityLiving.m(EntityLiving.java:1651) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.EntityHuman.m(EntityHuman.java:393) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.EntityLiving.t_(EntityLiving.java:1486) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.EntityHuman.t_(EntityHuman.java:173) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.EntityPlayer.l(EntityPlayer.java:285) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:381) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.PacketPlayInFlying.a(SourceFile:126) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.PacketPlayInFlying$PacketPlayInPosition.a(SourceFile:57) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_45]
     at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_45]
     at net.minecraft.server.v1_8_R3.SystemUtils.a(SystemUtils.java:19) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:718) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:367) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:657) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:560) [spigot.jar:git-Spigot-6d0ae89-a03743b]
     at java.lang.Thread.run(Unknown Source) [?:1.8.0_45]
    Caused by: java.lang.NoClassDefFoundError: com/intellectualcrafters/plot/PlotSquared
     at com.boydti.rcp2.PSHook.isAllowed(PSHook.java:13) ~[?:?]
     at com.boydti.rcp2.Main.onRedstoneEvent(Main.java:139) ~[?:?]
     at sun.reflect.GeneratedMethodAccessor216.invoke(Unknown Source) ~[?:?]
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
     at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot.jar:git-Spigot-6d0ae89-a03743b]
     ... 26 more
     
  12. Update the plugin.
     
  13. Weird, I'm not sure why I don't get notified when this plugin updates, even though I'm watching the resource. :S Just looked at my alert activity, I see nothing on Friday.
     
    #14 RoboMWM, Jul 12, 2015
    Last edited: Jul 12, 2015
  14. Ok, no errors this time, but it seems after activating a piston via a button, all redstone is completely disabled in any worlds that redstoneclockpreventer is set to monitor.
     
    #15 RoboMWM, Jul 12, 2015
    Last edited: Jul 15, 2015
  15. "Hidden update". Isn't broadcasted to everyone. (Or he didn't update it :/)
     
  16. He did, it just doesn't show up in the updated tab or whatever. Only that one small sidebar widget stating the last updated timestamp. I'm guessing you can update without a release note, and thus doesn't notify anyone who's watching the resource. Afaik, he's the only developer I know who does this (although he does update very often).
     
  17. I'll check that out. And yes, I haven't posted update logs as the only changes were fixing PlotSquared compatibility, and it was mentioned for you to update in the PlotSquared changelog.
     
  18. According to a player, it actually stopped redstone use in all worlds (I thought I tested it otherwise, but it was only quickly). I can't test it at the moment, but he's been reporting having redstone issues recently (this server is not fully public yet hence just one person atm) in a world that is not listed in the RedStoneClockPreventer's config.

    Update: I tested it, and redstone is working fine for worlds not in clockpreventer's config. However, the activating a piston and all redstone failing to function afterwards remains valid.
     
    #19 RoboMWM, Jul 15, 2015
    Last edited: Jul 16, 2015
  19. It didn't really do anything besides disable redstone. Am I doing something wrong?