Description: To make Commands not be able to be used in Wildy except Admins
Difficulty: 1-10
Assumed Knowledge: Copy and Paste, Finding Cases
Tested Server: RevivalScape
Files/Classes Modified: Client.Java
Credits: Me for Adding
Ok, go into client .java and search for Replace that case with:
Code:
case 103: // Custom player command, the ::words
String playerCommand = inStream.readString();
println_debug("playerCommand: " + playerCommand);
if(!inSafezone() && playerRights >=2) {
customCommand(playerCommand);
println_debug("playerAdminCommand: " + playerCommand);
}
if(inSafezone()) {
customCommand(playerCommand);
} else if(!inSafezone() && playerRights <=0) {
sendMessage("You can not use commands in this zone");
}
break;
This will make it so that people can't use any Commands in the Wilderness. Only Admins. I hope you like, it is a very easy thing to do.
Have fun!