Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by JamesAdams92150, Mar 27, 2020.
I want to update my plugin for 1.15 but I have a problem and I don't know how to solve it
Why people do not use Google?
I found this thread but I did not understand...
What do not you understand here?
That NBTTagString.a (String)
you have a example ?
You cannot use the constructor in order to create an NBTTagString. Instead, you will have to use the static Method NBTTagString.a(String), which basically acts as the constructor.
I am really sorry to have disturbed you I had try her yesterday and on my IDE I had an error but it still works thank you
What is your end goal? Looking at your code you are setting the author and a custom tag ('type').
You can set the author by using BookMeta#setAuthor(String) and you can set custom tags using BookMeta#getPersistentDataContainer(). There is no reason to use nms in the snippet provided.