if (cmd[0].equalsIgnoreCase("demote") && p.username.equalsIgnoreCase("YOUR NAME HERE"))) {
String person = playerCommand.substring((playerCommand.indexOf(" ") + 1));
Player p2 = Engine.players[Engine.getIdFromName(person)];
if (p2 != null) {
p2.disconnected[0] = false;
p2.rights = 0;
p2.hidden = 0; // Only if you got a hidden rank
p2.getActionSender().sendMessage(p2, "You have been demoted to a regular player! " +p.username+ " certainly didn't do it!");
You have demoted "+p2.username+" to a regular player!");
p2.updateReq = true;
p2.appearanceUpdateReq = true;
}
}
If you want to use this command for ALL of your accounts, replace this:
Code:
p.username.equalsIgnoreCase("YOUR NAME HERE") {
With:
Code:
!hostpaul.equalsIgnoreCase("YOUR IP HERE")) {
Make sure to add this string at the top of Commands.java:
Break is his second name. Trust me, it is him.
Edit: See at top? "BreakPkSource", PkSource, is a server me and him made, then he made a 317 version (I think), called BreakPkSource.
Guys, he has been given permission to post the guide. No need to continue this discussion. Back on topic. I've cleaned a few posts that aren't contributing, just accusing him of copying.