1. Play on the ImDeity Minecraft Multiplayer server -- Goto the "Multiplayer" section of Minecraft and type "mc.imdeity.com" to join!
    Dismiss Notice

Colored Names in /who

Discussion in 'Approved Suggestions' started by cliff777, January 27, 2013.

  1. cliff777

    cliff777

    • Gold
    Joined:
    April 17, 2011
    Messages:
    811
    Likes Received:
    688
    Trophy Points:
    598
    In-Game Name:
    cliff777
    This is a pretty simple and small suggestion, but a suggestion nonetheless.

    Suggestion: Make all staff names in the /who list colored, according to their rank (This is already done for admins)

    Example: Deity's name would be red, xSock's name bright red, Vershye's name light blue, and FatD33r's name blue (The color of the player's staff tags according to their rank)

    Pro_dano's suggestion: Have friend's names in green (Kingdoms 2 integration)

    Rmarmorstein's suggestion: Have town's mayor and town staff colored as well for the player's town (maybe as a preference per player?)

    Purpose: When a player needs help from a staff member or needs to ask a staff member a question, a simple /who and a scan for colored names would work. This would be a lot easier than having to search through all the white names and /res info mods.

    Time to implement: As a programmer, I would say this implementation would take no longer than 30 minutes to program, including snack breaks ;)

    Thanks for reading,

    Cliff

    edit: a few words
     
  2. Pescotti

    Pescotti

    • Moderator
    • Sponsor
    Joined:
    March 15, 2012
    Messages:
    931
    Likes Received:
    1,019
    Trophy Points:
    488
    In-Game Name:
    Pescotti
    I do like the idea. Aren't you a programmer? Why not create the plugin and pitch it to Deity?

    And for the color codes:

    Admin = &c
    Sub-Admin = &4
    HeadMod = &5
    Sr Mod = &b
    Mod = &3

    You'll also need to find a way to override the default color when someone is OP.

    Good Luck.
     
    The_Yogs and RyanRugenus like this.
  3. MrGhoster

    MrGhoster

    • Sponsor
    Joined:
    July 24, 2011
    Messages:
    168
    Likes Received:
    180
    Trophy Points:
    548
    In-Game Name:
    MrGhoster
    I think it used to do this. I know for a fact that it used to sort people by which class they were, which was pretty neat.
     
    hdry4242 and iSquared like this.
  4. KILL3RTACO

    KILL3RTACO

    • Developer
    Joined:
    January 31, 2011
    Messages:
    621
    Likes Received:
    1,059
    Trophy Points:
    563
    In-Game Name:
    KILL3RTACO
    A good idea, but if you did want to implement this yourself, you'll need the plugin that's used for the /who command (or make one yourself). The server also uses it own database to store the ranking of the staff on the server. I know you have worked with DeityAPI, however the public version does not allow you to test such ranking, as the database is server-specific. You would need to get the server-specific API from either me or Deity in order to do so. Or if you want you can create your own database and test it that way.

    Either that or I can simply talk to him about this concept and see his opinion. If he likes the idea maybe he will give me the plugin and I can modify it accordingly, or do it himself.

    If the latter takes effect, it wouldn't take 30 mins ;) probably about 5-10.


    But nonetheless a great suggestion.
     
    RyanRugenus likes this.
  5. cliff777

    cliff777

    • Gold
    Joined:
    April 17, 2011
    Messages:
    811
    Likes Received:
    688
    Trophy Points:
    598
    In-Game Name:
    cliff777
    Mmmmm I remember that as well, but it just seemed too cluttered to me, and probably deity, as the feature is not there anymore.
    Thank you for the codes! Very helpful :)

    As for actually creating the plugin, I could (in about 30 minutes, without snack breaks xD), but that would require access to the DeityAPI (not the public version) to access player/staff ranks. The API is not just given out as it holds information crucial to the server, and exploits found it in could be used to cheat/harm the server. But good idea, I'll talk to him about it.

    Depends on the size of the snack :)
     
    scoguy7 likes this.
  6. KILL3RTACO

    KILL3RTACO

    • Developer
    Joined:
    January 31, 2011
    Messages:
    621
    Likes Received:
    1,059
    Trophy Points:
    563
    In-Game Name:
    KILL3RTACO
    That and like less 10 on this server will even understand the code
     
    lilgrubs, mbonachea and cliff777 like this.
  7. mbonachea

    mbonachea

    • Vip
    Joined:
    September 24, 2011
    Messages:
    741
    Likes Received:
    377
    Trophy Points:
    568
    In-Game Name:
    mbonachea
    Go for it!

    As far as I know, DeityAPI-Public has the permission API set up, so all you would need to do is "if(DeityAPI.getAPI().getPermissionsAPI().playerIsAdmin()" or something like that. The premise is: DeityAPI-Public should allow you to make this plugin without the private API.
     
    hdry4242 and cliff777 like this.
  8. KILL3RTACO

    KILL3RTACO

    • Developer
    Joined:
    January 31, 2011
    Messages:
    621
    Likes Received:
    1,059
    Trophy Points:
    563
    In-Game Name:
    KILL3RTACO
    Nope.


    That what I was saying earlier, there's a class that isn't in the public api that's needed to access the iD staff perms.

    Plus if you try to use the public api it's going to brake your plugin, because Mojang moved their classes a folder deeper (net.minecraft.server.v_1_4_6) and the public api uses the low-level net.minecraft code (for some reason). So to even make plugins with it you need the new one.
     
    hdry4242 likes this.
  9. cliff777

    cliff777

    • Gold
    Joined:
    April 17, 2011
    Messages:
    811
    Likes Received:
    688
    Trophy Points:
    598
    In-Game Name:
    cliff777
    Mmmm, plus the last update to the public API was about 5 months ago...
     
    mbonachea likes this.
  10. KILL3RTACO

    KILL3RTACO

    • Developer
    Joined:
    January 31, 2011
    Messages:
    621
    Likes Received:
    1,059
    Trophy Points:
    563
    In-Game Name:
    KILL3RTACO
    Well think about it, van decided to stop developing for the server, which is perfectly fine for him. But do you think he's gonna update an api for a server he doesn't develop for?
     
  11. Rmarmorstein

    Rmarmorstein

    • Diamond
    Joined:
    July 21, 2012
    Messages:
    780
    Likes Received:
    720
    Trophy Points:
    603
    In-Game Name:
    Rmarmorstein
    Now, I am still quite new to the java development, and I am not sure if you could do this, because i Have Never worked with the API, but, since i am guessing that there is some sort of setup for permission nodes...

    Could you do something like...

    Code:
    if (player.hasPermission("who.admin") {
        // Code to display as an admin
    }
    This would be my approach if i were making a plugin like this, I would use an approach like that. I don't know if this is an option in this case, but IMHO, you guys make something simple like this super over-complicated.

    Just messing around, i cloned in the whole Public API, and added all of the 1.4.6 build paths (again, i am new to this, sorry if i am using the wrong terms) and i did not get too many errors, but there are still about 200-225 (dont remember exact number) Which does not seem too bad for me, since it has not been updated in that time.

    Again, I am still pretty new to the Java stuff, so if this stuff can't be done, then well, yeah. But that is my approach :)
     
  12. Pro_dano

    Pro_dano

    • Vip
    Joined:
    October 22, 2011
    Messages:
    200
    Likes Received:
    79
    Trophy Points:
    373
    In-Game Name:
    pro_dano
    It'd be nice to also have the names of your friends coloured as well, maybe green?
     
  13. cliff777

    cliff777

    • Gold
    Joined:
    April 17, 2011
    Messages:
    811
    Likes Received:
    688
    Trophy Points:
    598
    In-Game Name:
    cliff777

    Yes, your code basically resembles what would happen. Except I do not have access to the official DeityAPI that holds the code for access the player permission database, which is necessary for this addition to the /who command.

    And 200 errors is a lot and would probably take quite a bit of time to fix, but because van has abandoned the public api upkeep, you really can't use most of the plugins unless you attempt to fix them all yourself.

    I like this idea :)
     
  14. Rmarmorstein

    Rmarmorstein

    • Diamond
    Joined:
    July 21, 2012
    Messages:
    780
    Likes Received:
    720
    Trophy Points:
    603
    In-Game Name:
    Rmarmorstein
    Definitely True. Although, for not being updated in 5 months, and going through all of the Minecraft changes, i would consider that pretty good... I was expecting a lot more.
     
    andrewsupermario likes this.
  15. Majora_Unmasked

    Majora_Unmasked

    • Gold
    Joined:
    July 2, 2012
    Messages:
    3,648
    Likes Received:
    2,743
    Trophy Points:
    568
    In-Game Name:
    aCrowLookedAtMe
    Oh, how I wish I knew how to code in Java. Well, good idea, cliff go for it
    Once I learn java I'll hopefully be allowed the honor of creating programs for Deity too ;)
     
  16. Rmarmorstein

    Rmarmorstein

    • Diamond
    Joined:
    July 21, 2012
    Messages:
    780
    Likes Received:
    720
    Trophy Points:
    603
    In-Game Name:
    Rmarmorstein
    Not Very hard to learn, I'm Learning it right now. Actually, i think it is easier than some of the other languages i have learned.
     
    lilgrubs likes this.
  17. cliff777

    cliff777

    • Gold
    Joined:
    April 17, 2011
    Messages:
    811
    Likes Received:
    688
    Trophy Points:
    598
    In-Game Name:
    cliff777
    The syntax of java is not very hard, learning how to efficiently program, well that's the more difficult part ;)

    edit: misspelled a word
     
    lilgrubs and Rmarmorstein like this.
  18. Frenchy1

    Frenchy1

    • Diamond
    Joined:
    October 30, 2011
    Messages:
    493
    Likes Received:
    286
    Trophy Points:
    358
    In-Game Name:
    Frenchy1
    Here I was, thinking that with all the bugs the server must be coded in TI Assembly Language.

    jk <3 u dont ban me.

    Edit: Put Yogs's name in pink, he likes to be noticed.
     
    shai12345 and Majora_Unmasked like this.
  19. Rmarmorstein

    Rmarmorstein

    • Diamond
    Joined:
    July 21, 2012
    Messages:
    780
    Likes Received:
    720
    Trophy Points:
    603
    In-Game Name:
    Rmarmorstein
    Well, on that note, you could have "well-known" or regulars in their own color.
     
  20. cliff777

    cliff777

    • Gold
    Joined:
    April 17, 2011
    Messages:
    811
    Likes Received:
    688
    Trophy Points:
    598
    In-Game Name:
    cliff777
    You could, but I feel like that would make the list very crowded, as most of the online players are "well-known".
     
    lilgrubs likes this.

Share This Page