Jinrake
Welcome to PvP Planet's website!

Please register and view some cool guides and help!

Also vote for us at: Www.Jinrake.at.ua
Jinrake
Welcome to PvP Planet's website!

Please register and view some cool guides and help!

Also vote for us at: Www.Jinrake.at.ua
Jinrake
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Jinrake

Jinrake's website and forum
 
HomeHome  PortalPortal  SearchSearch  Latest imagesLatest images  RegisterRegister  Log inLog in  Vote For PVPVote For PVP  

 

 [Tut] How to Make a Simple Command [Tut]

Go down 
AuthorMessage
Bruce




Posts : 5
Points : 9
Reputation : 0
Join date : 2009-05-14

[Tut] How to Make a Simple Command [Tut] Empty
PostSubject: [Tut] How to Make a Simple Command [Tut]   [Tut] How to Make a Simple Command [Tut] EmptyTue May 19, 2009 5:02 am

Here is a Simple command for people who are starting to Code.

Files edited: Client.java

Difficulty 0.5/10
Search for If(command.equals Then find the } then use this.

Quote :
if(command.equalsIgnoreCase("##") && playerRights >= 0) {
additem(995, 100000);
}

For ## you'd be adding the command name.

Where it says playerRights, if its 0 its for normal users, 1 for Moderators, 2 for admins, 3 for owners,

Additem is to add the item,(Item id, Item amount)

MAKE SURE YOU INCLUDE }

Other wise you'll get errors,

So if you wanted to add a Master command
you could do this.

Quote :
if(command.equalsIgnoreCase("master") && playerRights >= 1) {
addSkillXP(14000000, i);
}

And there you have it, A Simple Command Tutorial,

Hope this helped.

-Ella
Back to top Go down
 
[Tut] How to Make a Simple Command [Tut]
Back to top 
Page 1 of 1
 Similar topics
-
» A yell command that protects more against spamming.
» Adding a ::copy command to your server
» Very simple
» 1 - 99 Crafting Guide - Zkill
» Simple Request.

Permissions in this forum:You cannot reply to topics in this forum
Jinrake :: Rs2 Server :: Rs2 Tutorials-
Jump to: