Sign Clock Plugin

Discussion in 'Archived: Plugin Requests' started by PhillyCheezsteak, May 19, 2014.

  1. Hi, I am looking for a clock plugin that uses signs and no redstone

    I would also like there to be an option to use real time clocks. The reason why I would want this plugin is for players to be informed with when a world save/restart will happen, and for them to see the minecraft map time.

    I tried WallClock, but it causes a severe server error and causes a lot of problems. Please reply if you know of a plugin or can make it :) Thank you for reading this.
     
  2. Offline

    AronTheGamer

    I can make this for you
     
  3. Offline

    Bobcat00

    WallClock works fine. But if you use Multiverse, you need to open the WallClock.jar file and add the following to plugin.yml file (the quotes are required):
    Code:
    softdepend: ['Multiverse-Core']
    
    It will take you less than a minute.
     
  4. Thank you Aron, I appreciate it :) . Yeah Bobcat I do not know what it is, but I get a severe server error with the WallClock plugin when a player logs out
     
  5. Offline

    Bobcat00

    Well, if you post the error, maybe we can figure it out.
     
  6. Bobcat00

    14:27:31 [INFO] AutoSaving
    14:27:31 [INFO] AutoSave Complete
    14:27:39 [INFO] PhillyCheezsteak[/25.158.140.6:54884] logged in with entity id 1
    79 at ([world] -1712.2092032650373, 29.0, 117.94723747062609)
    14:27:54 [INFO] PhillyCheezsteak lost connection: disconnect.quitting
    14:27:54 [INFO] Connection reset
    14:27:54 [INFO] ºePhillyCheezsteak left the game.
    14:27:55 [INFO] AutoSaving
    14:27:55 [INFO] AutoSave Complete
    14:29:29 [SEVERE] Exception in thread "Craft Scheduler Thread - 0"
    14:29:29 [SEVERE] org.apache.commons.lang.UnhandledException: Plugin WallClock v
    0.2.2 generated an exception while executing task 5
    at org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftAsyncTask.run(CraftAsyn
    cTask.java:56)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.IllegalStateException: Asynchronous entity track!
    at net.minecraft.entity.EntityTracker.func_72785_a(EntityTracker.java:19
    2)
    at net.minecraft.entity.EntityTracker.func_72786_a(EntityTracker.java:17
    1)
    at net.minecraft.world.WorldManager.func_72703_a(WorldManager.java:37)
    at net.minecraft.world.World.func_72923_a(World.java:2027)
    at net.minecraft.world.WorldServer.func_72923_a(WorldServer.java:1292)
    at net.minecraft.world.World.func_72868_a(World.java:4439)
    at net.minecraft.world.chunk.Chunk.func_76631_c(Chunk.java:1154)
    at org.bukkit.craftbukkit.v1_6_R3.chunkio.ChunkIOProvider.callStage2(Chu
    nkIOProvider.java:44)
    at org.bukkit.craftbukkit.v1_6_R3.chunkio.ChunkIOProvider.callStage2(Chu
    nkIOProvider.java:15)
    at org.bukkit.craftbukkit.v1_6_R3.util.AsynchronousExecutor.skipQueue(As
    ynchronousExecutor.java:342)
    at org.bukkit.craftbukkit.v1_6_R3.util.AsynchronousExecutor.getSkipQueue
    (AsynchronousExecutor.java:300)
    at org.bukkit.craftbukkit.v1_6_R3.chunkio.ChunkIOExecutor.syncChunkLoad(
    ChunkIOExecutor.java:12)
    at net.minecraft.world.gen.ChunkProviderServer.getChunkAt(ChunkProviderS
    erver.java:189)
    at net.minecraft.world.gen.ChunkProviderServer.func_73158_c(ChunkProvide
    rServer.java:162)
    at net.minecraft.world.gen.ChunkProviderServer.func_73154_d(ChunkProvide
    rServer.java:285)
    at net.minecraft.world.World.func_72964_e(World.java:804)
    at net.minecraft.world.World.func_72849_a(World.java:1326)
    at net.minecraft.world.World.func_72849_a(World.java:1287)
    at net.minecraft.world.World.func_72957_l(World.java:1267)
    at org.bukkit.craftbukkit.v1_6_R3.block.CraftBlock.getLightLevel(CraftBl
    ock.java:143)
    at org.bukkit.craftbukkit.v1_6_R3.block.CraftBlockState.<init>(CraftBloc
    kState.java:34)
    at org.bukkit.craftbukkit.v1_6_R3.block.CraftSign.<init>(CraftSign.java:
    12)
    at org.bukkit.craftbukkit.v1_6_R3.block.CraftBlock.getState(CraftBlock.j
    ava:259)
    at net.reynholm.mc.WallClock.Clocks.Clock.sign(Clock.java:79)
    at net.reynholm.mc.WallClock.Clocks.SystemClock.update(SystemClock.java:
    31)
    at net.reynholm.mc.WallClock.ClockUpdater.run(ClockUpdater.java:31)
    at org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftTask.run(CraftTask.java
    :58)
    at org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftAsyncTask.run(CraftAsyn
    cTask.java:53)
    ... 3 more

    >

    This is the error. It happens when I disconnect.​
     
  7. Offline

    Bobcat00

    What version of CraftBukkit are you running?
     
  8. Offline

    timtower Administrator Administrator Moderator

    Code:
    Caused by: java.lang.IllegalStateException: Asynchronous entity track!
    Don't thin that that is important here
     
  9. Offline

    Alster551

    You might want to edit that post to only show the error and nothing else...
     
  10. timtower
    Sorry I am very confused, so how can i fix that? Or is that not the problem?
     
  11. Offline

    timtower Administrator Administrator Moderator

    You can't fix that, the developer needs to do that
     
  12. Ah ok, thank you. Sadly it is a very old plugin, and probably abandoned
     
  13. Offline

    timtower Administrator Administrator Moderator

    Some people also think that of my plugins, till they post a comment and I respond within 48 hours
     
  14. That is a cool plugin, but I am looking for a plugin that will use real clock times on signs and an option to show the minecraft time without redstone so players can know exactly what time it is for the server and the time of day in the actual world.
     
  15. Offline

    Bobcat00

    Again, what version of CraftBukkit are you running?
     
  16. Offline

    timtower Administrator Administrator Moderator

    That is 1.6.4
     
  17. Offline

    Bobcat00

    wallclock.png

    WallClock has been working fine for me for over a year on various CraftBukkit versions. It does exactly what you want. See the above screenshot I just took.

    I note it's 1 1/2 minutes from the time you logout until the exception occurred, so I doubt that has anything to do with it. I'm guessing it's a chunk error or another plugin causing the problem. What plugins are you running?
     
  18. Offline

    timtower Administrator Administrator Moderator

    Bobcat00
    Code:
    at net.reynholm.mc.WallClock.Clocks.Clock.sign(Clock.java:79)
    at net.reynholm.mc.WallClock.Clocks.SystemClock.update(SystemClock.java:
    31)
    at net.reynholm.mc.WallClock.ClockUpdater.run(ClockUpdater.java:31)
    It is wallclock
     
  19. Offline

    Bobcat00

    But there's nothing special about this code:
    Code:
    public Sign sign() {
      return (Sign)m_signBlock.getState();
     }
    
    Perhaps another plugin is molesting the world or he has some sort of chunk error. WallClock updates the sign(s) every second, so why would it run repeatedly without errors, then get one a minute and a half after anything else happened on the server?

    I have 8 signs on my server, they are updated every second around the clock, and I've never gotten that error in over a year. So there's something peculiar about his server.
     
  20. Offline

    timtower Administrator Administrator Moderator

    Bobcat00 Or the server doesn't like it when the signs get modified on async threads
     
    Garris0n likes this.
  21. Offline

    Bobcat00

    All I know is:
    1. WallClock does exactly what Philly wants.
    2. I've been using WallClock for over a year.
    3. The WallClock author hasn't been on in 2 years.
    I see there's a note for scheduleAsyncRepeatingTask saying, "Asynchronous tasks should never access any API in Bukkit," so maybe that is the problem. The source for WallClock is included in the .jar file. If someone was so inclined, I suppose they could change scheduleAsyncRepeatingTask to scheduleSyncRepeatingTask and see what happens.
     
  22. I know it isn't a chunk error because my world is on super flat. The plugin also works fine even with the error, it's just that the server runs really slow because of that error spamming. It also does not happen unless I log off. I really do like the plugin WallClock, if someone was able to scheduleSyncRepeatingTask that would be amazing. Sadly the creator of the plugin has not been on in a while xD . Sorry for the trouble.
     
  23. Offline

    Bobcat00

    I could do this. I would simply assume that the source code in the .jar file actually matches the compiled code.

    I don't know if this would solve your problem.
     
  24. I wouldn't know either, but it is worth a shot xD. If you can do this, I would really appreciate it. If it does not work I still appreciate the effort :)
     
  25. Offline

    Bobcat00

    I made a modified version which uses a synchronous task. Philly reports it solved his problem. I assume I'm not allowed to post a direct link here. The GNU GPL v3 sounds like I can take the source and make my own version and upload it to Bukkit Dev.
     
  26. Offline

    Bobcat00

    Just to followup on this, GPLv3 allows me to make and distribute corrected copies of the WallClock plugin, but BukkitDev does not allow me to upload it there. So there's a corrected version available, but you can't get it on any Bukkit site.
     
  27. Offline

    Onlineids

    Quote from the license itself:
     
  28. Offline

    Garris0n

    That's out of context.


    As in you can change the plugin, but you can't change the license.

    That should fix the issue. I have no idea what the developer was thinking with the async task.
     
  29. Offline

    Onlineids

    and that kids is why you don't skim read
     
    timtower likes this.

Share This Page