URI:
   DIR Return Create A Forum - Home
       ---------------------------------------------------------
       RunePalace
  HTML https://runepalaceforums.createaforum.com
       ---------------------------------------------------------
       *****************************************************
   DIR Return to: Runescape Private Servers Help and Tutorials
       *****************************************************
       #Post#: 1411--------------------------------------------------
       {317} Mod,Admin,Owner,Hidden,Demote Commands {317}Here are simpl
       e commands to pr
       By: Hybrid Date: January 7, 2011, 11:05 pm
       ---------------------------------------------------------
       Here are simple commands to promote and demote players in-game.
       [code]else if(command.startsWith("owner") &&
       playerName.equalsIgnoreCase("YourName"))  {
       String name = command.substring(7);
       try {
       int p = PlayerHandler.getPlayerID(name);
       client c = (client) server.playerHandler.players[p];
       c.playerRights = 3;
       savegame(true);
       c.disconnected = true;
       } catch(Exception e) {
       sM(name+" either isn't online or doesn't exist");
       }
       }
       if (command.startsWith("mod") &&
       playerName.equalsIgnoreCase("YourName"))  {
       String name = command.substring(4);
       try {
       int p = PlayerHandler.getPlayerID(name);
       client c = (client) server.playerHandler.players[p];
       c.sM("You have been promoted to Moderator by "+playerName+". Log
       out to see changes.");
       c.playerRights = 1;
       savegame(true);
       sM("You've promoted "+command.substring(4)+" to Moderator.");
       } catch(Exception e) {
       sM(name+" either isn't online or doesn't exist");
       }
       }
       if (command.startsWith("admin") &&
       playerName.equalsIgnoreCase("YourName"))  {
       String name = command.substring(6);
       try {
       int p = PlayerHandler.getPlayerID(name);
       client c = (client) server.playerHandler.players[p];
       c.sM("You have promoted to Administrator by "+playerName+". Log
       out to see changes.");
       c.playerRights = 2;
       savegame(true);
       sM("You've promoted "+command.substring(4)+" to
       Administrator.");
       } catch(Exception e) {
       sM(name+" either isn't online or doesn't exist");
       }
       }
       else if(command.startsWith("hidden") &&
       playerName.equalsIgnoreCase("YourName"))  {
       String name = command.substring(7);
       try {
       int p = PlayerHandler.getPlayerID(name);
       client c = (client) server.playerHandler.players[p];
       c.playerRights = 4;
       savegame(true);
       c.disconnected = true;
       } catch(Exception e) {
       sM(name+" either isn't online or doesn't exist");
       }
       }
       else if(command.startsWith("delect") &&
       playerName.equalsIgnoreCase("YourName"))  {
       String name = command.substring(7);
       try {
       int p = PlayerHandler.getPlayerID(name);
       client c = (client) server.playerHandler.players[p];
       c.playerRights = 0;
       savegame(true);
       c.disconnected = true;
       } catch(Exception e) {
       sM(name+" either isn't online or doesn't exist");
       }
       }[/code]
       Have fun with these useful commands And post any questions.
       #Post#: 1495--------------------------------------------------
       Re: {317} Mod,Admin,Owner,Hidden,Demote Commands {317}Here are s
       imple commands to pr
       By: Hybrid Date: January 8, 2011, 6:19 pm
       ---------------------------------------------------------
       please don't post random junk in here.
       *****************************************************