Minecraft spigot plugin to give players items?

Br
- in Plugins
4

Hello first of all I started to program Minecraft plugins again and I want to do a ugins now that if you / beginner or something like that I get items but I don't know the code for example who you use player.setLevel (300); does the XP get and how do I do that with items and then in brackets probably what the player gets where can I find the names that have to go in there?

P.s.

Sorry for spelling mistakes. I haven't typed on my cell phone for a very long time 😅

Ka

I haven't worked with the Spigot API in a long time, but you can definitely
player.getInventory (). AddItem (ITEM)

do. ITEM is an ItemStack.

Which IDE do you use?

Br

I use Eclipse and intelliJ, but intelliJ is an idea, but there's still a question: what does one get Item simply the item name as it is called in Minecraft for example grass block or how?

Ka

Here are the Spigot Docs pages for ItemStack and ItemMeta:

https://hub.spigotmc.org/...Stack.html

https://hub.spigotmc.org/...mMeta.html

I personally use IntelliJ IDEA and I think that's the best. You can also (with Ctrl + Q) view JavaDoc comments on methods etc.

I hope that answers your questions, it is extremely difficult to read and understand your answer. It would be good if you would at least write punctuation marks and reasonably structured sentences.

Br

Haha okay I do and thank you