How do I give myself a specific sword using commands? [duplicate]

I've heard that there is a command that gives me the ability to give myself a sword with Sharpness 32767 and Knockback 32767. How do I use commands to give myself said sword on a server that uses the Essentials mod?


Solution 1:

See this: Possible to add multiple enchantments in one try?

Also, this should work:

/give yourname diamond_sword 1 0 {ench:[{id:16,lvl:32767},{id:19,lvl:32767}]} Don't forget to change "yourname" with your username.

Also you can see this for the sword data values (diamond_sword) and see the enchantment ids from here (16 and 19).