legionkiller Noob
Posts : 4 Join date : 2010-05-11 Age : 30 Location : Netherlands
| Subject: Server stuff. Tue Aug 10, 2010 7:00 pm | |
| Staff Capessearch for - Code:
-
public boolean wear(int wearID, int slot) { and add this beneath it - Code:
-
if(wearID == xxxx && (rights != 1)) { sM("you need to be a moderator to wear this"); return false; } if(wearID == xxxx && (rights != 2)) { sM("you need to be an admin to wear this"); return false; } if(wearID == xxxx && (rights != 3)) { sM("you need to be an owner or co-owner to wear this"); return false; }
Last edited by legionkiller on Tue Aug 10, 2010 7:52 pm; edited 1 time in total | |
|
legionkiller Noob
Posts : 4 Join date : 2010-05-11 Age : 30 Location : Netherlands
| Subject: Re: Server stuff. Tue Aug 10, 2010 7:34 pm | |
| Admin trading Search for - Code:
-
public void tradeReq(int id) { And add this somewhere below - Code:
-
if(playerRights = 2){ sM("Admins cannot trade in this server, this is to protect the economy"); return; } if(playerRights = 2){ sM("Admins cannot trade in this server, this is to protect the economy"); return; }
Last edited by legionkiller on Tue Aug 10, 2010 7:52 pm; edited 1 time in total | |
|
legionkiller Noob
Posts : 4 Join date : 2010-05-11 Age : 30 Location : Netherlands
| Subject: Re: Server stuff. Tue Aug 10, 2010 7:52 pm | |
| Donatorzone teleSearch for - Code:
-
"home" and paste this somewhere between the teleports - Code:
-
if (command.equalsIgnoreCase("donatorzone") && donator == 1) { triggerTele(xxxx, yyyy, 0); }
You might have to change something in the code, as i don't know how donor is set up in the server. | |
|
legionkiller Noob
Posts : 4 Join date : 2010-05-11 Age : 30 Location : Netherlands
| Subject: Re: Server stuff. Wed Aug 11, 2010 5:56 pm | |
| Staff swordsSearch for - Code:
-
public boolean wear(int wearID, int slot) { and add this somewhere below - Code:
-
if(wearID == xxxx && (playerRights !>= 1)) { sM("you need to be a moderator or higher to wear this"); return false; } | |
|
Michael Admin
Posts : 15 Join date : 2010-05-09
| Subject: Re: Server stuff. Thu Aug 12, 2010 10:39 am | |
| | |
|
Michael Admin
Posts : 15 Join date : 2010-05-09
| Subject: Adding A Teleport Command Thu Aug 12, 2010 7:52 pm | |
| go into client.java and hit ctrl+f then search - Code:
-
if (command.equalsIgnoreCase now after u see that with a command look for a " } " hit enter after that and paste this there: - Code:
-
if (command.equalsIgnoreCase("xxxx")) { triggerTele(xxxx, xxxx, 0); sM("type what you want it to say when you use the command here."); } now just replace the xxxx with the command name and the xxxx, xxxx with the coords you want it to tele you too! enjoy | |
|
Sponsored content
| Subject: Re: Server stuff. | |
| |
|