Okay, this is how to add a command that gives you an item. Like type ::food, it gives 4 manta's(you can change the id and the amount of the items).

This is like -1/10, just copy-paste(noob-proof guide)

Lets start.

First go to: Source\src\palidino76\rs2\io\packets\commands.java
I open this with notepad++(just search on google), this displays the code better.

1. Open Commands.java

2. Add this code:
Spoiler for Edit the code to what you want:
if(cmd[0].equals("food") && p.rights >= 0) {
Engine.playerItems.addItem(p, 391, 4);
}


Let me explain the code:
if(cmd[0].equals("food") && p.rights >= 0) {
Engine.playerItems.addItem(p, 391, 4);
}

1st, the "food" is where your command comes, just change the name between the quotes. NEVER ADD ::, that won't work

Second, the && p.rights >= 0) is what right you need to use the commands, 0 is for normal members, 1 is for moderators, and 2 for admins. So fill in the rights you want.(of course admins and mods can use all commands)

Last, the addItem(p, 391, 4);, the 391 is the item id here, so if you want to change it, go to ItemDB | 666 and search the item you want, just copy the id and paste it. Next comes the "4", this is the amount of items you want, so i took manta rays, if you type the command, it gives you 4 manta rays.

You can also just copy and paste the command and use it in your own source, without any changes.

Save, close & compile.