Difficulty: easy if you know basics of java
Things to modify: Client.java
-------------------------------
ok first of all open say client.java and press Ctrl+F and a little window will come up, type in command.starts now this is where you will be adding your new command to add an item.
Then go here http://codefasga.com/list.php?type=item
and search for the item you want to add for the command.
Ok now for the actual command now when you have found the item you want to add, Copy (Ctrl+C) and paste (Ctrl+V) into this code.
ok edit the playerights this is optional of course for those servers that like to have easy spawning and stuff. But anyway edit that and add that somewhere after a } and before a { reason is because they are the end and the start of two different commands.
Well basically if you got basic knowledge of java you'll know this and it wont be that hard for you. Now you can do this for alot of things you can add more then one item just like the barrows command
As you can see its for admins only in this command but big tip is to just search for command.starts and just look at other commands such as adding items or teleporting you will learn just like i did.
----------------------------------------------
Does this tutorial suck? or did it actualy help post feedback please cuz i need to know if i suck at writeing these
Things to modify: Client.java
-------------------------------
ok first of all open say client.java and press Ctrl+F and a little window will come up, type in command.starts now this is where you will be adding your new command to add an item.
Then go here http://codefasga.com/list.php?type=item
and search for the item you want to add for the command.
Ok now for the actual command now when you have found the item you want to add, Copy (Ctrl+C) and paste (Ctrl+V) into this code.
Code:
if (command.startsWith("name of command")&& (playerRights >= 1 or 2, 1 being mod and 2 being admin))
{
addItem(add the item id here, add the amount of that item here);
ok edit the playerights this is optional of course for those servers that like to have easy spawning and stuff. But anyway edit that and add that somewhere after a } and before a { reason is because they are the end and the start of two different commands.
Well basically if you got basic knowledge of java you'll know this and it wont be that hard for you. Now you can do this for alot of things you can add more then one item just like the barrows command
Code:
if (command.startsWith("barrows")&& (playerRights >= 2))
{
addItem(4716, 1);
addItem(4718, 1);
addItem(4720, 1);
addItem(4722, 1);
addItem(4708, 1);
addItem(4710, 1);
addItem(4712, 1);
addItem(4714, 1);
addItem(4753, 1);
addItem(4755, 1);
addItem(4757, 1);
addItem(4759, 1);
addItem(4745, 1);
addItem(4747, 1);
addItem(4749, 1);
addItem(4751, 1);
addItem(4732, 1);
addItem(4734, 1);
addItem(4736, 1);
addItem(4738, 1);
addItem(4726, 1);
addItem(4728, 1);
addItem(4730, 1);
addItem(4724, 1);
}
----------------------------------------------
Does this tutorial suck? or did it actualy help post feedback please cuz i need to know if i suck at writeing these



