How would I create a '/give <player> <item>' plugin??

Status
This thread has been locked.

Erapicman

Feedback score
1
Posts
9
Reactions
9
Resources
0
I've tried numerous times to create this command, I just don't know how to get the item?

Any Ideas??
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Tig3ax

Feedback score
3
Posts
196
Reactions
41
Resources
0
Material.gettypeid(args[1])
Hopes that helps you
 

Perotin

Developer & Illustrator
Premium
Feedback score
4
Posts
275
Reactions
175
Resources
0
Material.gettypeid(args[1])
Hopes that helps you

or Material.valueOf(String) if they are inputting the name rather than an ID
 

Dori

Full Stack Developer
Supreme
Feedback score
28
Posts
459
Reactions
198
Resources
0
You might want to use this thing:
It has a lot of names for items, just make a method that gets the B column value when you enter the right A column.
 
Status
This thread has been locked.
Top