1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Force open book 1.13.2

Discussion in 'Skript' started by lukaskabc, Mar 6, 2019.

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

    lukaskabc Member

    Joined:
    Jan 16, 2019
    Messages:
    3
    Likes Received:
    0
    Hi,
    is there some way how to force player to open book?
    I have allready tested much codes for skript and skellet, but skellett looks not very compatible with mc version 1.13.2.
    I have test many variations of this
    Code (Text):
    1.         set {_tool} to player's tool
    2.         set player's tool to {RulesBook}
    3.         open book player's tool to player
    4.         set player's tool to {_tool}
    but all only give book, not open.

    and sometimes i getting this error in console:
    Code (Text):
    1.  java.lang.NoSuchMethodException: net.minecraft.server.v1_13_R2.PacketPlayOutCustomPayload.<init>(java.lang.String, net.minecraft.server.v1_13_R2.PacketDataSerializer)
    2. [10:06:20 WARN]:        at java.lang.Class.getConstructor0(Class.java:3082)
    3. [10:06:20 WARN]:        at java.lang.Class.getConstructor(Class.java:1825)
    4. [10:06:20 WARN]:        at com.gmail.thelimeglass.Books.EffOpenBook.execute(EffOpenBook.java:52)
    5. [10:06:20 WARN]:        at ch.njol.skript.lang.Effect.run(Effect.java:52)
    6. [10:06:20 WARN]:        at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
    7. [10:06:20 WARN]:        at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
    8. [10:06:20 WARN]:        at ch.njol.skript.lang.Trigger.execute(Trigger.java:57)
    9. [10:06:20 WARN]:        at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:298)
    10. [10:06:20 WARN]:        at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:255)
    11. [10:06:20 WARN]:        at ch.njol.skript.command.Commands.handleCommand(Commands.java:254)
    12. [10:06:20 WARN]:        at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:169)
    13. [10:06:20 WARN]:        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    14. [10:06:20 WARN]:        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    15. [10:06:20 WARN]:        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    16. [10:06:20 WARN]:        at java.lang.reflect.Method.invoke(Method.java:498)
    17. [10:06:20 WARN]:        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305)
    18. [10:06:20 WARN]:        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    19. [10:06:20 WARN]:        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500)
    20. [10:06:20 WARN]:        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485)
    21. [10:06:20 WARN]:        at net.minecraft.server.v1_13_R2.PlayerConnection.handleCommand(PlayerConnection.java:1633)
    22. [10:06:20 WARN]:        at net.minecraft.server.v1_13_R2.PlayerConnection.a(PlayerConnection.java:1476)
    23. [10:06:20 WARN]:        at net.minecraft.server.v1_13_R2.PacketPlayInChat.a(PacketPlayInChat.java:45)
    24. [10:06:20 WARN]:        at net.minecraft.server.v1_13_R2.PacketPlayInChat.a(PacketPlayInChat.java:1)
    25. [10:06:20 WARN]:        at net.minecraft.server.v1_13_R2.PlayerConnectionUtils.a(SourceFile:10)
    26. [10:06:20 WARN]:        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    27. [10:06:20 WARN]:        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    28. [10:06:20 WARN]:        at net.minecraft.server.v1_13_R2.SystemUtils.a(SourceFile:199)
    29. [10:06:20 WARN]:        at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:895)
    30. [10:06:20 WARN]:        at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:417)
    31. [10:06:20 WARN]:        at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:830)
    32. [10:06:20 WARN]:        at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:728)
    33. [10:06:20 WARN]:        at java.lang.Thread.run(Thread.java:748)
    34. [10:06:20 WARN]: java.lang.NoSuchMethodException: net.minecraft.server.v1_13_R2.PacketPlayOutCustomPayload.<init>(java.lang.String, net.minecraft.server.v1_13_R2.PacketDataSerializer)
    35. [10:06:20 WARN]:        at java.lang.Class.getConstructor0(Class.java:3082)
    36. [10:06:20 WARN]:        at java.lang.Class.getConstructor(Class.java:1825)
    37. [10:06:20 WARN]:        at com.gmail.thelimeglass.Books.EffOpenBook.execute(EffOpenBook.java:52)
    38. [10:06:20 WARN]:        at ch.njol.skript.lang.Effect.run(Effect.java:52)
    39. [10:06:20 WARN]:        at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
    40. [10:06:20 WARN]:        at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
    41. [10:06:20 WARN]:        at ch.njol.skript.lang.Trigger.execute(Trigger.java:57)
    42. [10:06:20 WARN]:        at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:298)
    43. [10:06:20 WARN]:        at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:255)
    44. [10:06:20 WARN]:        at ch.njol.skript.command.Commands.handleCommand(Commands.java:254)
    45. [10:06:20 WARN]:        at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:169)
    46. [10:06:20 WARN]:        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    47. [10:06:20 WARN]:        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    48. [10:06:20 WARN]:        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    49. [10:06:20 WARN]:        at java.lang.reflect.Method.invoke(Method.java:498)
    50. [10:06:20 WARN]:        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305)
    51. [10:06:20 WARN]:        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    52. [10:06:20 WARN]:        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500)
    53. [10:06:20 WARN]:        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485)
    54. [10:06:20 WARN]:        at net.minecraft.server.v1_13_R2.PlayerConnection.handleCommand(PlayerConnection.java:1633)
    55. [10:06:20 WARN]:        at net.minecraft.server.v1_13_R2.PlayerConnection.a(PlayerConnection.java:1476)
    56. [10:06:20 WARN]:        at net.minecraft.server.v1_13_R2.PacketPlayInChat.a(PacketPlayInChat.java:45)
    57. [10:06:20 WARN]:        at net.minecraft.server.v1_13_R2.PacketPlayInChat.a(PacketPlayInChat.java:1)
    58. [10:06:20 WARN]:        at net.minecraft.server.v1_13_R2.PlayerConnectionUtils.a(SourceFile:10)
    59. [10:06:20 WARN]:        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    60. [10:06:20 WARN]:        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    61. [10:06:20 WARN]:        at net.minecraft.server.v1_13_R2.SystemUtils.a(SourceFile:199)
    62. [10:06:20 WARN]:        at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:895)
    63. [10:06:20 WARN]:        at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:417)
    64. [10:06:20 WARN]:        at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:830)
    65. [10:06:20 WARN]:        at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:728)
    66. [10:06:20 WARN]:        at java.lang.Thread.run(Thread.java:748)

    so is there some way how to force open book to player in minecraft 1.13.2 ?

    (sorry for my bad english :/ )
    and thank you for all answers.
     
Thread Status:
Not open for further replies.
Loading...