[DEV/EDIT] SignUpdater - Main system for updating signs

Discussion in 'Resources' started by TAT, Jun 30, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    TAT

    [​IMG]SignUpdater v1.0.0
    About SignUpdater
    SignUpdater is a plugin that plugin developers can use for updating signs in the world.
    It's made simple, just send a request to SignUpdater and it will be updated as soon as the server have capacity for it.
    A server can only update a sign every 2 tick and that's what SignUpdater does. SignUpdater have a list over signs that needs to be updated including a priority.
    If a sign must be updated as fast as possible you send it with highest priority and SignUpdater will make sure, that it gets updated as fast as possible.

    API
    Because SignUpdater must be as simple as possible, there is only required one line for updating a sign
    PHP:
    //--Add a sign for update--
    //priority - Is the priority of the update: the higher, the faster it's updated
    //sign    - The sign that must be updated
    //lines    - The new lines of the sign
    SignUpdater.AddSignUpdate(UpdaterPriority prioritySign signString[] lines);
    Example on usage
    You can find an example on how to setup listener for hookup on SignUpdater @ GitHub
    https://github.com/TATDK/SignUpdater/tree/master/example/example

    Plugins using SignUpdater
    • ?
    Download / Source
    Download JAR (TAR.GZ | ZIP)
    Source @ GitHub
     
  2. Offline

    Jaker232

    Nice! Might use this soon.
     
  3. Offline

    TAT

  4. Offline

    Daniel Heppner

    Wait, your code structure. /example/example? And example listener? Dufe, you need to change those.
     
  5. Offline

    TAT

    Why? They are examples to Plugin Developers how to use SignUpdater and they aren't included in the SignUpdater.jar file
     
  6. Offline

    robertcarr22

    The links aren't working for me :/ This looks very useful!
     
  7. Offline

    TAT

    Links updated but I don't know if this works anymore.
     
  8. Offline

    robertcarr22

    Thank you, ill give it a try and see.
    If it doesn't work is there any chance of an update?
     
  9. Offline

    TAT

    I could probably update it if it doesn't work ;)
     
  10. Offline

    robertcarr22

    I copied the example you link to and when I write [mp] on a sign nothing happens and im assuming something is meant to happen when looking at the code :p

    Edit:
    getting this error in the log:
    Code:
    31.07 13:30:44 [Server] INFO ... 14 more
    31.07 13:30:44 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
    31.07 13:30:44 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:606)
    31.07 13:30:44 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    31.07 13:30:44 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    31.07 13:30:44 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    31.07 13:30:44 [Server] INFO at io.github.robertcarr22.incepticraft.myBlockListener.onSignChange(myBlockListener.java:18)
    31.07 13:30:44 [Server] INFO Caused by: java.lang.NullPointerException
    31.07 13:30:44 [Server] INFO at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
    31.07 13:30:44 [Server] INFO at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419)
    31.07 13:30:44 [Server] INFO at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486)
    31.07 13:30:44 [Server] INFO at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226)
    31.07 13:30:44 [Server] INFO at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:590)
    31.07 13:30:44 [Server] INFO at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:30)
    31.07 13:30:44 [Server] INFO at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37)
    31.07 13:30:44 [Server] INFO at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:116)
    31.07 13:30:44 [Server] INFO at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296)
    31.07 13:30:44 [Server] INFO at net.minecraft.server.v1_6_R2.Packet130UpdateSign.handle(SourceFile:46)
    31.07 13:30:44 [Server] INFO at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:1592)
    31.07 13:30:44 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
    31.07 13:30:44 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
    31.07 13:30:44 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    31.07 13:30:44 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
    31.07 13:30:44 [Server] INFO org.bukkit.event.EventException
    31.07 13:30:44 [Server] SEVERE Could not pass event SignChangeEvent to Incepticraft v0.1
     
  11. Offline

    Ty Cleere

    TAT You should do an updated version for 1.6.2 :)
     
  12. Offline

    Ultimate_n00b

  13. Will it continue updating even after a restart?
     
Thread Status:
Not open for further replies.

Share This Page