I dont have ideia how to do. If player has a permission admin , will goin to display in /admins her name if he/she is online. I dont have ideia to do this: I try: if (cmd.getName().equalsIgnoreCase("admins")) { //se o player tiver } else { p.sendMessage(ChatColor.RED + "AdminitraĆ§Ć£o offline"); }
NoLiver92 if the player types / admins and he will have a permission pop up a list with your name if you have no one online will appear, type the routine administration offline / list of essentials, plus I have no idea how to start.
Space_BR Code:java String m = "";Player[] o = Bukkit.getOnlinePlayers();for(int z = 0; z < o.length; z++) {if(o[z].hasPermission("your.admin.permission")) {m = m + o[z].getName() + ", ";}}p.sendMessage("Online admins: " + m);
sgavster and not have any online admin as I could be telling, routine administration offline, this type did you do when he does not have anyone appear online ** nothing **, I wanted another message was written when no one had returned online with that Perm, would be possible?
You made the list, but did you check it twice? PS: I realize this has no relevance to the topic... I'm sorry. When I saw the title, I couldn't pass up the offer.