Inactive [INFO] TutorialSigns v1.5 | Long messages with signs! [1.3.1-R0.1]

Discussion in 'Inactive/Unsupported Plugins' started by ronyzzn, Jul 27, 2012.

  1. Offline

    ronyzzn

    Newest Bukkit build? Info: I will always test my builds befor uploading! I will only upload it, when i can not find any errors!
     
  2. Offline

    zakdonald

    Make a /tutorialsigns reload command so we can reload the plugin in game when we want to make tutorials in the signs.txt.

    -_- It was working perfectly fine before but then I restarted my computer and I get this error whenever i right click a sign.
    Code:
    2012-08-09 13:50:28 [SEVERE] Could not pass event PlayerInteractEvent to TutorialSigns
    org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:147)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:619)
        at net.minecraft.server.Packet15Place.handle(SourceFile:58)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:281)
        at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
        at net.minecraft.server.ServerConnection.b(SourceFile:35)
        at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
        at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:583)
        at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
        at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: java.lang.NullPointerException
        at de.ronyzzn.tutorialsigns.Listeners.OnSignClick.onPlayerInteract(OnSignClick.java:34)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330)
        ... 16 more
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 27, 2016
  3. See below. This zakdonald has the same problem with me.

     
  4. Wich version is it for JAVA 6 ?:oops:
    And i m so happy that you made for Java6 :D
     
  5. Offline

    ronyzzn

    @zakdonald & Semirotta: This is a problem on my side! Sorry... I've checked the complete 834 lines code and that took a time! In the main post are informations about this error (Bugs category) !

    @bleuguillaume: Version 1.4 will support Java6 ;) The file only need apporval.
     
  6. God i hope u get the 1.4 here fast :3 I get pissed off to that error^^ no matter what people do it pops out. . .
     
  7. Offline

    ronyzzn

    The 1.4 File is already uploaded, but the file must be approved before...
     
  8. Offline

    xS1L3nTx

    I cant reproduce this error...
    I have copied all files to my pc and started the server with no problem...

    Its a great plugin...its a pain if it doesn't work :eek:
    What could it possibly be?
     
  9. Offline

    tombik

    Thanks for this ;) Take this: [diamond]
     
  10. updated and the error message dissappeared :) Thank you mate!
     
  11. Offline

    xS1L3nTx

    Well... after seatching for this error, i got this:
    http://forums.bukkit.org/threads/un...ffd-special-characters-are-not-allowed.68722/
    It seems to be a problem with the unix<->windows charset (It doesnt work with UTF-8) under linux - i tested it with windows, it worked fine, but my server is on a linux-system.

    EDIT:
    At first i was curious, why all files where ANSI...
    After changing it with Notepad++ to UTF-8 a strange behaviour exceeded: the "§" char for color changed to a weird character, i changed it manually to "§", saved it as UTF-8 and reuploaded it to the server.

    IT WORKS!!!
     
  12. Offline

    ronyzzn

    xS1L3nTx: Good to know, but I think my default config.yml contains only UTF-8 characters!
    tombik: Thank you :p
     
  13. Offline

    xS1L3nTx

    Well one thing is curious... My signs wont take the color defined as defaultcolor... can i just place an "&" instead "§"?
     
  14. Offline

    ronyzzn

    No, it must be § by default colors! (I could change it next update ;) )
     
  15. Offline

    xS1L3nTx

    I would appreciate it, it looks like "§" isn't working somehow :)

    BTW: Is there a possibility to force the mc-chat to split a sentence/phrase? (like "/n" in java?)
     
  16. Offline

    ronyzzn

    It's \n in Java... Idk if there is one...
     
  17. Offline

    korikisulda

    Is all that caps really necessary?
     
  18. Offline

    xS1L3nTx

    I found something:
    http://forums.bukkit.org/threads/newline-wont-work-for-player.61914/
    Code:
    String[] message = event.getMessage().split("\n") // Split everytime the "\n" into a new array value
     
    for(int x=0 ; x<message.length ; x++) {
    Bukkit.broadcastMessage(message[x]); // Send each argument in the message
    }
    event.setCancelled(true); // So the message doesn't get sent twice
    I think this can be very useful for all informations contained in the signs.txt
    With that you should be able to Organize your Texts much better or create Lists and so on :)

    And a line in the config.yml to define which wordcombination will force the Line-Break, would be really nice too.
    That way, everyone is able to use "\n","/n", "&h" or whatever combination as example to split lines.

    It would be !great! if you implement it in your next version (including the use of "&" for defaultcolor)

    Thanks in advance,
    xS1L3nTx
     
  19. Offline

    ronyzzn

    I will see what I can do ;)
     
  20. Offline

    Matryan

    Could you add in redstone compatibility
     
  21. Offline

    ronyzzn

    Maybe... Redstone is not easy..
     
  22. Offline

    Zmolahah

    Cool Plugin! Saves space and simple, A nice edition would be when you right click the sign instead of going into chat it just opens a book & quill so you can just read it from a book with pages
     
  23. Offline

    ronyzzn

    I think the Bukkit API doesn't support writing books at the moment!
     
  24. Offline

    CoolCraftServer

    Yes :p
     
  25. Offline

    xS1L3nTx

    I'm just curious:
    When are we able to expect a new Version?

    Sorry, ;)
    xS1L3nTx
     
  26. Offline

    ronyzzn

    Wait and see ;)
     
  27. Offline

    ronyzzn

    UPDATE ;)

    Changelog:

    Code:
    - Default color is now only the Color-ID without § or &
    - Added line breaks with %nl
    - Added variable for the name of the player who clicked a TutorialSign: %user
     
  28. Offline

    xS1L3nTx

    Great!
    The %nl works fine :)

    But One Question: the defaultcolor parameter, does it depend on the [TutorialSign] + ID color? or on the color of the Text, which is show at the first time?
     
  29. Offline

    qualizza1997

    Nice :)
    Works great
     

Share This Page