Spigot BookApi 1.4.2

dev-friendly API for interactive book creation

  1. This seems very usefull. Might use this in one of my projects.
     
    • Like Like x 1
  2. Ty, if you really find this useful please rate it :)
     
    • Like Like x 1
  3. Andre_601

    Supporter

    Can this API be used to also open a book and quill GUI, where the player can enter text and then save the content of this as JSON or similar to later load again?
    Would love to make a mail plugin that uses this instead of the boring chat.
     
  4. Great Idea! It's not currently in the scope of our library (I don't even remember if book and quills were present when we wrote this) but it could be included in the project, the dev. team is working on other projects right now but this project is on github so you can fork it if you want.
     
  5. Andre_601

    Supporter

    Good idea, but I sadly aren't as skilled in this things so I couldn't really implement this.
     
  6. Can you update the plugin for 1.16+?
     
  7. Have you tested it on 1.16 yet?
     
  8. Sorry for the wait, 1.16 has been implemented and tested.
    We strangely don't get any notification from this thread so ask on github (or send us an email) for other requests!
     
  9. This does not work. I reported it as an issue on github. I get this console message when I try to use it.
    Code (Text):
    Caused by: java.lang.ClassNotFoundException: xyz.upperlevel.spigot.book.BookUtil
    The full console:

    Code (Text):
    14.01 14:33:44 [Server] ERROR null
    14.01 14:33:44 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'ah' in plugin Survival vBETA
    14.01 14:33:44 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[patched_1.12.2.jar:git-Paper-1618]
    14.01 14:33:44 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:152) ~[patched_1.12.2.jar:git-Paper-1618]
    14.01 14:33:44 [Server] INFO at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:685) ~[patched_1.12.2.jar:git-Paper-1618]
    14.01 14:33:44 [Server] INFO at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1492) ~[patched_1.12.2.jar:git-Paper-1618]
    14.01 14:33:44 [Server] INFO at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1297) ~[patched_1.12.2.jar:git-Paper-1618]
    14.01 14:33:44 [Server] INFO at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) ~[patched_1.12.2.jar:git-Paper-1618]
    14.01 14:33:44 [Server] INFO at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[patched_1.12.2.jar:git-Paper-1618]
    14.01 14:33:44 [Server] INFO at net.minecraft.server.v1_12_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:14) ~[patched_1.12.2.jar:git-Paper-1618]
    14.01 14:33:44 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_265]
    14.01 14:33:44 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_265]
    14.01 14:33:44 [Server] INFO at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) ~[patched_1.12.2.jar:git-Paper-1618]
    14.01 14:33:44 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:850) ~[patched_1.12.2.jar:git-Paper-1618]
    14.01 14:33:44 [Server] INFO at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:423) ~[patched_1.12.2.jar:git-Paper-1618]
    14.01 14:33:44 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:774) ~[patched_1.12.2.jar:git-Paper-1618]
    14.01 14:33:44 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:666) ~[patched_1.12.2.jar:git-Paper-1618]
    14.01 14:33:44 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_265]
    14.01 14:33:44 [Server] INFO Caused by: java.lang.NoClassDefFoundError: xyz/upperlevel/spigot/book/BookUtil
    14.01 14:33:44 [Server] INFO at me.liamhbest.auction.AuctionTutorial.openBook(AuctionTutorial.java:39) ~[?:?]
    14.01 14:33:44 [Server] INFO at me.liamhbest.auction.AuctionCommand.onCommand(AuctionCommand.java:28) ~[?:?]
    14.01 14:33:44 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[patched_1.12.2.jar:git-Paper-1618]
    14.01 14:33:44 [Server] INFO ... 15 more
    14.01 14:33:44 [Server] INFO Caused by: java.lang.ClassNotFoundException: xyz.upperlevel.spigot.book.BookUtil
    14.01 14:33:44 [Server] INFO at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[?:1.8.0_265]
    14.01 14:33:44 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:156) ~[patched_1.12.2.jar:git-Paper-1618]
    14.01 14:33:44 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:104) ~[patched_1.12.2.jar:git-Paper-1618]
    14.01 14:33:44 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_265]
    14.01 14:33:44 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_265]
    14.01 14:33:44 [Server] INFO at me.liamhbest.auction.AuctionTutorial.openBook(AuctionTutorial.java:39) ~[?:?]
    14.01 14:33:44 [Server] INFO at me.liamhbest.auction.AuctionCommand.onCommand(AuctionCommand.java:28) ~[?:?]
    14.01 14:33:44 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[patched_1.12.2.jar:git-Paper-1618]
    14.01 14:33:44 [Server] INFO ... 15 more
     
  10. As I wrote in the github issue, this is not a plugin on itself, it's just a library and you have to include it in your plugin's JAR file, follow the Wiki on Github to know how to do it
     
  11. Great update, it will definitely help some developers as it took me 30 minutes to figure out you needed to set the author after a MC update or the whole book would just break :p