Thread: ::Staff command help

Results 1 to 6 of 6
  1. #1 ::Staff command help 
    Registered Member Taylor Gang or Die's Avatar
    Join Date
    Nov 2011
    Posts
    214
    Thanks given
    52
    Thanks received
    14
    Rep Power
    6
    Can someone give me a command to where when you do :taff or :nlinestaff it shows the online staff members? Owners/mods/admins?

    Ill do anything
    Reply With Quote  
     

  2. #2  
    Zaros Developer

    Nomac's Avatar
    Join Date
    Feb 2011
    Age
    29
    Posts
    1,068
    Thanks given
    318
    Thanks received
    200
    Rep Power
    1092
    Attached image


    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Mar 2011
    Posts
    4,062
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    no need to rip somethign this easy...

    if (playerCommand.equalsIgnoreCase("staff")) {
    int totalAmountOfStaff = 0;
    for (Player p : PlayerHandler.players) {
    if (p != null && p.playerRights > 0 && p.playerRights != 4)
    totalAmountOfStaff++;
    }
    c.sendMessage("Total staff online: " + totalAmountOfStaff);
    }
    Reply With Quote  
     

  4. #4  
    Zaros Developer

    Nomac's Avatar
    Join Date
    Feb 2011
    Age
    29
    Posts
    1,068
    Thanks given
    318
    Thanks received
    200
    Rep Power
    1092
    I think he means with the names of the staff as well, Relex.
    Attached image


    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Mar 2011
    Posts
    4,062
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    @^

    if (playerCommand.equalsIgnoreCase("staff")) {
    int totalAmountOfStaff = 0;
    for (Player p : PlayerHandler.players) {
    if (p != null && p.playerRights > 0 && p.playerRights != 4) {
    totalAmountOfStaff++;
    c.sendMessage((p.playerRights == 1 ? "Moderator: " : p.playerRights == 2 ? "Administrator: " : "Owner") + p.playerName);
    }
    }
    Reply With Quote  
     

  6. #6  
    Extreme Donator


    Join Date
    Oct 2006
    Posts
    1,370
    Thanks given
    64
    Thanks received
    197
    Rep Power
    426
    Code:
    			if (playerCommand.equalsIgnoreCase("staff")) {
    				List<Client> p = new ArrayList<Client>();
    				for (Player pl : PlayerHandler.players) {
    					if (pl.playerRights > 0) {
    						p.add((Client) pl);
    					}
    				}
    				for (Client c2 : p) {
    					c.sendMessage("Online "+(c2.playerRights == 1 ? "moderator: " : (c2.playerRights == 2 ? "administartor: " : "owner: "+Misc.optimizeText(c2.playerName))));
    				}
    			}


    ~flow@hacking . rs
    Reply With Quote  
     

  7. Thankful user:



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. STaff meting command
    By Zenom in forum Requests
    Replies: 1
    Last Post: 12-07-2011, 03:41 AM
  2. Faulty ::Staff command
    By Hidden Gamer in forum Help
    Replies: 3
    Last Post: 08-16-2011, 05:49 AM
  3. Staff Reset Command?
    By Arth in forum Help
    Replies: 0
    Last Post: 08-16-2011, 03:53 AM
  4. Replies: 4
    Last Post: 02-13-2009, 12:32 AM
  5. Superman, command for your staff
    By Shawn101 in forum Tutorials
    Replies: 12
    Last Post: 08-25-2007, 09:59 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •