Exion-Pk
Would you like to react to this message? Create an account in a few clicks or log in to continue.


A 24/7 No Lag Server!
 
HomeLatest imagesSearchRegisterLog in

 

 Server stuff.

Go down 
2 posters
AuthorMessage
legionkiller
Noob
legionkiller


Posts : 4
Join date : 2010-05-11
Age : 30
Location : Netherlands

Server stuff. Empty
PostSubject: Server stuff.   Server stuff. I_icon_minitimeTue Aug 10, 2010 7:00 pm

Staff Capes
search 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
Back to top Go down
http://www.dpserver.tk
legionkiller
Noob
legionkiller


Posts : 4
Join date : 2010-05-11
Age : 30
Location : Netherlands

Server stuff. Empty
PostSubject: Re: Server stuff.   Server stuff. I_icon_minitimeTue 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
Back to top Go down
http://www.dpserver.tk
legionkiller
Noob
legionkiller


Posts : 4
Join date : 2010-05-11
Age : 30
Location : Netherlands

Server stuff. Empty
PostSubject: Re: Server stuff.   Server stuff. I_icon_minitimeTue Aug 10, 2010 7:52 pm

Donatorzone tele
Search 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.
Back to top Go down
http://www.dpserver.tk
legionkiller
Noob
legionkiller


Posts : 4
Join date : 2010-05-11
Age : 30
Location : Netherlands

Server stuff. Empty
PostSubject: Re: Server stuff.   Server stuff. I_icon_minitimeWed Aug 11, 2010 5:56 pm

Staff swords
Search 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;
}
Back to top Go down
http://www.dpserver.tk
Michael
Admin



Posts : 15
Join date : 2010-05-09

Server stuff. Empty
PostSubject: Re: Server stuff.   Server stuff. I_icon_minitimeThu Aug 12, 2010 10:39 am

Back to top Go down
https://exion-pk.board-directory.net
Michael
Admin



Posts : 15
Join date : 2010-05-09

Server stuff. Empty
PostSubject: Adding A Teleport Command   Server stuff. I_icon_minitimeThu 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
Back to top Go down
https://exion-pk.board-directory.net
Sponsored content





Server stuff. Empty
PostSubject: Re: Server stuff.   Server stuff. I_icon_minitime

Back to top Go down
 
Server stuff.
Back to top 
Page 1 of 1
 Similar topics
-
» Vote For The Server!

Permissions in this forum:You cannot reply to topics in this forum
Exion-Pk :: Exion-Pk :: Server Help/Guides-
Jump to: