Thread: need a 718 command that demotes them while there offline

Results 1 to 2 of 2
  1. #1 need a 718 command that demotes them while there offline 
    Registered Member
    Join Date
    Aug 2011
    Posts
    124
    Thanks given
    4
    Thanks received
    2
    Rep Power
    11
    or atleast something i can attach to the line

    Code:
    case "demote":
    				name = "";
    				for (int i = 1; i < cmd.length; i++)
    					name += cmd[i] + ((i == cmd.length - 1) ? "" : " ");
    				target = World.getPlayerByDisplayName(name);
    				if (target == null)
    					target = SerializableFilesManager.loadPlayer(Utils.formatPlayerNameForProtocol(name));
    				if (target != null) {
    				if(target.getRights() >= 2)
    						return true;
    					target.setRights(0);
    					player.getPackets().sendGameMessage("You demote " + Utils.formatPlayerNameForDisplay(target.getUsername()));
    				} else {
    					player.getPackets().sendGameMessage("Couldn't find player " + name + ".");
    				}
    				SerializableFilesManager.savePlayer(target);
    				return true;
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Aug 2011
    Posts
    124
    Thanks given
    4
    Thanks received
    2
    Rep Power
    11
    Bump.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [718] Simple Promote/Demote Command
    By Unlucky4ever in forum Snippets
    Replies: 12
    Last Post: 06-03-2013, 06:03 PM
  2. Replies: 6
    Last Post: 01-23-2013, 04:03 AM
  3. Replies: 1
    Last Post: 06-23-2009, 08:39 PM
  4. Need a command that ....
    By .:Programing God:. in forum Help
    Replies: 3
    Last Post: 01-18-2009, 03:22 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •