Link items using new chat feature 1.7.2

Discussion in 'Archived: Plugin Requests' started by Jocke155, Dec 3, 2013.

  1. Offline

    Jocke155

    Lionhard It's exactly how i want it :) A gui that comes up when hovering over the accepted "link" :D
     
  2. Jocke155 Cool, so wish me luck to get it to work and learn it. ;) I, sadly, cannot promise you anything, because, as already told, I have to learn it. ;)
     
  3. Offline

    Jocke155

    Lionhard Haha good luck, and thanks for trying atleast! :D
     

  4. Maybe I'm not understanding something. I don't know, but it just seems as if your request (after your edits) do not have much do with any chat features.
     
  5. Offline

    Jocke155

  6. TehMinecraftPoke It has exactly what the title says, new chat features from 1.7.2. ;) It is the tellraw feature.

    Jocke155 Hi, I have actually some really, really, really good news and some, how to say, not that good news. :D
    Let's start with the good ones, I learned it and it works, I can make the plugin!!
    The bad news, I tried so many libraries and none of them worked, now finally found one, but that one uses "NMS" codes or whatever and with that the plugin will probably break in future updates. :/

    Also, there is a problem, do you really need that thing with 30 seconds to respond? I actually never did that and dont know how to do it. I might first do it without it, and then make an update with it containing?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 5, 2016
  7. Offline

    Jocke155

    Lionhard You can add the 30 sec thing later.

    and i'm happy about the good news, and we'll see what happens in future updates! :)
     
  8. Jocke155 actually, timtower told he would add reflections to it, so it should work in future updates
     
    Jocke155 and timtower like this.
  9. Offline

    Jocke155

    timtower likes this.
  10. Jocke155 Iam working currently on it, if you wait a hour or so I will have it done. currently it prints the message in the chat and if the item has a custom name, it prints its custom name when hovered over, if not, it tells the minecraft name, if it has durability it shows his current durability, like 123/456 and now working on showing all enchants the item has, if it has some. Do you have any more things you wish you havve added?

    Oh and another problem I encountered, sorry :/ Idk how to make it so you send a request to someone with the item, might I first, for the first release, just do it so you type something and then the other player can see it in the chat?
    :/
     
  11. Offline

    Jocke155

    Lionhard Yeah sure, i mean that can be fixed in later versions, but does it show lores?
    Edit: It would be good if color names/lores shows also :)
     
  12. Jocke155 Lores not, but that shouldn't be a problem I hope :D And ok, I will add color support :D
     
  13. Offline

    Jocke155

    Lionhard Perfect :DD i'm so excited for this
    i've noticed that i'm extremely creative on ideas on plugins that people never done ;D
     
  14. Jocke155 Ok, it was a bit later, but I have finished it now. I asked already timtower about the reflection part, going to upload it now without it and make a to-do list containing it. ;)
     
  15. Offline

    Jocke155

    Lionhard Super great! :D I can't wait until i test it haha :)
     
  16. Offline

    Jocke155

    Lionhard Awesome! Really fun that you could make it
     
  17. Offline

    Jocke155

    Lionhard yupp, but i have a problem, i don't have anyone online on the server for testing, and you can't show to yourself xD
     
  18. Jocke155 Actually, you can.

    Jocke155 I did test it that way. :p

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 5, 2016
  19. Offline

    Jocke155

    Lionhard Then somthing is really wrong, because i get an error... Wich Craftbukkit build did you use?
    EDIT:
    Code:
    [21:59:18 INFO]: Joke1398 issued server command: /isc show Joke1398
    [21:59:18 ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'isc'
    in plugin ItemShowcase v0.0.1
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[ser
    ver.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:19
    6) ~[server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
            at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServe
    r.java:542) ~[server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
            at net.minecraft.server.v1_7_R1.PlayerConnection.handleCommand(PlayerCon
    nection.java:932) [server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
            at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java
    :814) [server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
            at net.minecraft.server.v1_7_R1.PacketPlayInChat.a(PacketPlayInChat.java
    :28) [server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
            at net.minecraft.server.v1_7_R1.PacketPlayInChat.handle(PacketPlayInChat
    .java:47) [server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
            at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:146
    ) [server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
            at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [serv
    er.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
            at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:6
    55) [server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
            at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:2
    50) [server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
            at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:5
    45) [server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
            at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java
    :457) [server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
            at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:6
    17) [server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
    Caused by: java.lang.NullPointerException
            at de.mineteria.Lionhard98.ItemShowcase.ItemShowcase.onCommand(ItemShowc
    ase.java:83) ~[?:?]
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[ser
    ver.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
            ... 13 more
    >
     
  20. Jocke155 The newest, but anyway, timtower helped me now, no need to use NMS, I will just reupload it without the NMS, then it should work.

    Jocke155 Get the latest build, I have just worked out that it doesn't work without NMS, so timtower will probably have to look at it again. :/ Get the latest build and it should work.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 5, 2016
  21. Offline

    Jocke155

    Lionhard Doesn't work with my legendary sword, and i have another problem, the gui opens, but it's too small, it should be more lines. not a single line. I must go now, so i show the problems tomorrow, cya
     
  22. Jocke155 Did you use the latest build?? It expands the lines automatically. I will show you screenshots when Im home today.
     
  23. Offline

    timtower Administrator Administrator Moderator

  24. timtower Yap.

    Jocke155 Here is a screenshot from in-game:
    [​IMG]

    Actually, the only one problem is that there are those "DURABILITY" and "DAMAGE_ALL" messages, I used them for test enchantments and forgot to delete them, I'll do it in the next version, together with the reflections.

    EDIT: Jocke155 Oh, nvm. I have forgot that the DURABILITY and DAMAGE_ALL messages show up only for me. ;)
     
  25. Offline

    Jocke155

    Lionhard Hi again! Yes i used the latest build! I'll show a pic..
    This is the sword that i wan't to show, but i get a interal error, wool works, and looks like that.
    [​IMG]
     
  26. Offline

    timtower Administrator Administrator Moderator

    Jocke155 Please post the error. And is the inventory glitching or modded?
     
  27. Offline

    Jocke155

    timtower Okay, i'll try to find the error lol. You mean client side? I've not modded anything at all client side.
    Code:
    [16:52:00 INFO]: Joke1398 issued server command: /isc show Joke1398
    [16:52:00 ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'isc'
    in plugin ItemShowcase v0.0.1
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[ser
    ver.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:19
    6) ~[server.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]
            at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServe
    r.java:542) ~[server.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]
            at net.minecraft.server.v1_7_R1.PlayerConnection.handleCommand(PlayerCon
    nection.java:932) [server.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]
            at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java
    :814) [server.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]
            at net.minecraft.server.v1_7_R1.PacketPlayInChat.a(PacketPlayInChat.java
    :28) [server.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]
            at net.minecraft.server.v1_7_R1.PacketPlayInChat.handle(PacketPlayInChat
    .java:47) [server.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]
            at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:146
    ) [server.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]
            at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [serv
    er.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]
            at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:6
    55) [server.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]
            at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:2
    50) [server.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]
            at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:5
    45) [server.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]
            at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java
    :457) [server.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]
            at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:6
    17) [server.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]
    Caused by: java.lang.NullPointerException
            at de.mineteria.Lionhard98.ItemShowcase.ItemShowcase.formatEnchantments(
    ItemShowcase.java:123) ~[?:?]
            at de.mineteria.Lionhard98.ItemShowcase.ItemShowcase.onCommand(ItemShowc
    ase.java:78) ~[?:?]
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[ser
    ver.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]
            ... 13 more
    >
     
  28. What is that "[Common]". Maybe thats why it doesn't work.

    Jocke155 Actually, do you have any other plugins which maybe might break something in it? I do not see a sense, we both use the same bukkit version, we both use the same plugins version, for me it works perfect on every item, I tested items with durability, items without durability, items with metadata like colored wools, everything worked perfect.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 5, 2016

Share This Page