Page 1 of 2

[REJECTED] Colored [Admin] or [Mod] tag above staffs heads

Posted: Tue Apr 24, 2012 6:44 pm
by koalaboy13
I propose adding a colored (coloured in Canada, UK and elsewhere) tag above the heads of staff and in the online users grid overlay. This would make quickly scanning the list for staff much easier and help inform new users as to who the staff are as opposed to asking in chat. Admins would have an [Admin] tag above their heads and mods would have a
MODERATED
tag above their heads. Donors could be included and get a [Donor] tag.

Implementation:
In the playerListener class
Code: Select all
                        .
                        .
                        .
    
    @EventHandler(priority=EventPriority.HIGHEST)
    public void onPlayerJoin(PlayerJoinEvent event) {
        Player player = event.getPlayer();
        if (isAdmin(player)) {
            player.setDisplayName(ChatColor.RED + "[Admin]" + ChatColor.WHITE + player.getName());
            player.setPlayerListName(ChatColor.RED + "[Admin]" + ChatColor.WHITE + player.getName()));
        } else if (isMod(player)) {
            player.setDisplayName(ChatColor.BLUE + "[Mod]" + ChatColor.WHITE + player.getName());
            player.setPlayerListName(ChatColor.BLUE + "[Mod]" + ChatColor.WHITE + player.getName()));
        } else if (isDonor(player)) {
            player.setDisplayName(ChatColor.AQUA + "[Donor]" + ChatColor.WHITE + player.getName());
            player.setPlayerListName(ChatColor.AQUA + "[Donor]" + ChatColor.WHITE + player.getName()));
        }
    }
                        .
                        .
                        .
                        

Re: Colored [Admin] or [Mod] tag above staffs heads (code in

Posted: Tue Apr 24, 2012 6:53 pm
by TechnoProdigy
Seems like a good suggestion. Glad to finally see a suggestion with actual code needed right there.

Re: Colored [Admin] or [Mod] tag above staffs heads (code in

Posted: Tue Apr 24, 2012 7:07 pm
by koalaboy13
TechnoProdigy wrote:Seems like a good suggestion. Glad to finally see a suggestion with actual code needed right there.
Thank you! and BTW the code is adapted from ColorOP found here: http://forums.bukkit.org/threads/misc-c ... 1-0.70464/

Re: Colored [Admin] or [Mod] tag above staffs heads (code in

Posted: Tue Apr 24, 2012 7:39 pm
by Prodigy9
I'm not sure that this would be all that useful--seeing admins or mods in chat is more common than actually seeing their characters in-game. However, it certainly couldn't hurt, and might be kind of neat; also, by offering ready-to-implement code it seems like a pretty easy thing to do.

+1

Re: Colored [Admin] or [Mod] tag above staffs heads (code in

Posted: Tue Apr 24, 2012 8:48 pm
by lizardsrock4
Wouldn't work, the plugin does it by op status, which Intelli doesn't do. Hint: make it change each staffs name into a colored name *cough*renderliving*cough*
Edit: derp, I thought u were talking about doing it client side

Re: Colored [Admin] or [Mod] tag above staffs heads (code in

Posted: Wed Apr 25, 2012 5:21 am
by schmidtbochum
This isnt compatible with the new autocomplete feature of the minecraft client.
(You type "I" and press TAB --> "Intelli")

Re: Colored [Admin] or [Mod] tag above staffs heads (code in

Posted: Wed Apr 25, 2012 1:39 pm
by Agentred
I don't see the point. It would be kind of dumb.

I mean, if I were a mod I wouldn't want a floating tag over my head!

Anyhow, doesn't Intelli code all his own plugins?

Re: Colored [Admin] or [Mod] tag above staffs heads (code in

Posted: Thu May 03, 2012 12:54 am
by lollingwaffle
I disagree. whilst it would be easier for new players to tell whos a mod itll probably prevent them from learning all of the mods themselves. ive seen videos of other servers with tons of tags all over the place making it impossible to tell whats what.
i think that this will start that cycle and end up in loads of confusing coloured tags all over the place. :s

Re: Colored [Admin] or [Mod] tag above staffs heads (code in

Posted: Thu May 03, 2012 1:21 am
by bcbarton
Overhead tags would be annoying but it would sure be nice to see staff colors on the TAB screen.

Re: Colored [Admin] or [Mod] tag above staffs heads (code in

Posted: Thu May 03, 2012 2:33 am
by Intelli
You can't change the text that displays over players heads. Rejected.