Before i start i TAKE NO CREDIT at all like a measly 1% for posting this to help some of you out I spent days looking for a guide, finally decided to post requests and some people replied
so 100% credit to the following
- Digistr ( Stopping staff loosing items on death)
- Loco ( Stoping Mods and admins trading)
So I was starting to get annoied with mods spawning max cash and accidently dieying with it in the wild so i thought it'd be a good idea to stop them from looosing stuff on death aswell as stopping them from trading because they where spawning stuff and giving to mates to get them started..
::.. Stopping Mods / Admins loosing items on death (Credit to Digistr) ..::
search youdied()
in it add
if(playerRight > 0){
return;
}
&& playerRights < 1
::.. Stopping Mods / adming trading (credit to loco) ..::
Under "public void tradeReq(int id) {"
add
Code:
if(playerRights == 2){
sM("Staff Administrators can't trade players.");
return;
}
if(playerRights == 1){
sM("Staff Moderators can't trade players..");
return;
}
if(playerRights == 3){
sM("Owner/Co Owner can't trade.");
return;
}
::.. Stopping Mods / Admins loosing Dropping items (Credit to Loco) ..::
Look for
Code:
public void dropItem(int droppedItem, int slot) {
// misc.printlnTag("droppeditem ["+playerItems[slot]+"] which is
// ["+(droppedItem+1)+"]");
boolean a = true;
Under that add
Code:
if (playerRights == 2) {
sM("Dropping has been disabled, use ::empty to delete your inventoy instead.");
return ;
}
Once again i take no credit for this Just thought it'd be helpfull to post it seeming it took me days to find out how to do this =[]