[CHAT] ColorMe (Changed ownership), read first post

Discussion in 'Inactive/Unsupported Plugins' started by Valrix, Feb 27, 2011.

  1. Offline

    Valrix

    NOTICE:
    ColorMe has officially been passed on to another dev, you can see it by clicking this link.

    ColorMe - Color player names:
    Version: 2.4.1

    This is the "sister" plugin of Prefixer that I made a little while back. With this you use the /colorme (or /color, now written as /color[me]) command to add a color to a player's name. Very simple and extremely light-weight.

    COMMANDS (open)
    /color[me] list - Lists colors in the color that they will look like
    /color[me] <name> <color> - Set color of player's name if defined, otherwise set your name's color
    /color[me] <name> - Resets the player back to no color (white)
    HOOKS (open)
    This is only useful for other devs who want to hook into ColorMe.
    • getColor(name) - "name" is a string. Used to get player's color.
    • setColor(name) - Same as above, except used to set the player's color.
    • hasColor(name) - Returns true or false depending on if they have a color set.
    • removeColor(name) - Removes player's name color
    HOW TO HOOK INTO COLORME (open)
    This shall be explained from the perspective of an Eclipse environment.
    1. Add ColorMe to Java Build Path.
    2. Add this import in the main class and each class that'll need to call the hooks:
      Code:
      import com.sparkedia.valrix.ColorMe.ColorMe;
    3. Create a public variable of ColorMe (if it'll be used in multiple classes), for example:
      Code:
      public ColorMe colorme;
    4. In you onEnable() add in this:
      Code:
      Plugin test = this.getServer().getPluginManager().getPlugin("ColorMe");
                          colorme = ((ColorMe)test);
      (Note, it's very similar to hooking into Permissions
    5. Done! Now you can get a player's color by doing colorme.getColor(e.getPlayer());
    PERMISSION NODES (open)
    colorme.list - Allows player to use /color[me] listto see color list

    colorme.self - Allows player to set own prefix
    colorme.other - Allows player to set another player's prefix
    colorme.remove - Allows player to remove another player's prefix

    * All players can remove their own prefix regardless of permissions *
    FAQ (open)

    Q. Why doesn't ColorMe work with iChat?
    A. It does, Drakia even tested it himself. In your iChat config change +name to +displayname and, as he said it, "BAM, it works."

    Features:
    • Add colors to a player's name in chat
    • Bukkit Permissions support
    • iConomy support (other economy plugins are being added)
    • Get/Set/Remove colors from command-line
    • Players are notified if their name color is changed and the new color

    Latest Changes: v2.4.1
    • Patched the "name swap" bug. Thanks Zelif!
    FULL CHANGELOG (open)

    Version 2.4.1
    • Patched the "name swap" bug. Thanks Zelif!
    Version 2.4
    • Fixed NPEs when using /reload
    • Setting your own color is now OP-only by default
    Version 2.3
    • Now supports native Bukkit permissions in place of Permissions.
    • Leaner code & overall clean-up
    • Improved command handling
    • Improved resource management
    Version 2.2
    • Thanks to help from Drakia, ColorMe should now work with iChat, EssentialsChat, etc.
    Version 2.1
    • Updated to work with newest iConomy (v5) *Requires v5*
    • Numerous code improvements
    Version 2.0
    • Fixed the bug where you couldn't remove or set colors at times.
    Version 1.9
    • Fixed the bug with setting someone else's color.
    Version 1.8
    • Fixed a bug with saving prefixes.
    Version 1.7
    • Added Permissions support
    • Added iConomy support
    • Added ability to manipulate player name colors through command-line
    • Many code improvements and tweaks to improve performance
    Version 1.6
    • Added hasColor() method for hooked plugins to check if the player even has a color at all. Mainly for convenience.
    Version 1.5
    • Support to be hooked into, details above.
    Version 1.4
    • A few code improvements, this update is optional since it still works with latest RB.
    Version 1.3
    • Changed priority to HIGHEST, should prevent other plugins from overriding name color, even though they shouldn't be doing so in the first place...
    Version 1.2
    • Fixed a bug with removing the color from the name (now nicer)
    • Only OPs can change another player's name, even if non-OP is set so players can't run around changing each other's names.
    • Changed command to /colorme to keep it from clashing with any other plugins.
    Version 1.1
    • Fixed code to work with new command handler
    • Updated code to fix the "Too many open files" bug
    • Added config file with option to allow non-OP players to set name color
    Version 1.0
    • Release of ColorMe
     
  2. Offline

    Dutchy

  3. Offline

    nbeerbower

    If you don't need MySQL then sign me up. ;)

    EDIT: Works great! Thanks for writing this!
     
  4. Offline

    Valrix

  5. Offline

    pizzamand44

    Nice i love this <33
    --- merged: Feb 28, 2011 9:06 AM ---
    can you make color to signs?
     
  6. Offline

    Juze

    Yet another Prefixer plugin? Again, HeroChat and Permissions.
     
  7. Offline

    GamerX

    Permissions do not give color to names and prefix, iChat does it.
    HeroChat can argue with other plugins.
    And If oyu only want to have a plugin that gives color to names, use ColorMe, it is SIMPLE.
    No permissions needed, only OPs who can change the color on the names, same with Prefixer.
    But ColorMe and Prefixer dont argue with other plugins, I have tested it.
    --- merged: Feb 28, 2011 7:01 PM ---
    You got SignEdit, easy to use and understand
     
  8. Offline

    LethalMG

    This plugin does not work !
    It says " internal error occured !

    I can see the color list but not change...
     
  9. Offline

    ndm250

    I used simplecolours before the minecraft update and it worked good, but its out of date :(. Glad to see you made one. I'll download this soon.
     
  10. Offline

    nichiatu

    Is it just in chat or is it overhead ingame as well? If it is, or is ever implemented, I'm using this instead of nChat/iChat
     
  11. Offline

    icuttu

    It's not working for me. I simply drop the jar file in my plugins folder, correct? It loads up correctly, however when I type any of the commands, nothing happens.
     
  12. Offline

    ark3typ3

    Any chance you could make a config for it so I can let players color their own names?
     
  13. Offline

    Juze

    I like SignColors more.
     
  14. Offline

    Nikc-Nack

    It's a good idea, but I get "incorrect usage of command" on everything I do.
    Not sure why, it may be because I'm running my server through mcmyadmin, but that's unlikely.


    Good work I'm sure,
    Nikc-Nack
     
  15. Offline

    GamerX

    Try to use build 440
     
  16. Offline

    CaptainDDL

    Great plugin Valrix. :) I get an internal error when I just type /color, but everything else works wonderfully.
     
  17. Offline

    ndm250

    works fine with 440+. Fix /color (ik its not a valid command) it poops out network errors for some reason. Also make /color blue (for example) automatically changes the user who typed it to that color.
     
  18. Offline

    Valrix

    Yeah, I'm still gonna work on this. I was thinking of changing it to where the color is first so that if no name is given then it would color the user who gave the command and adding a config option that would be OP=false then everyone can use the command.

    Also, for those who can't get it working, I recommend using the "Recommended Build" since it helps keep stuff from breaking. 440+ is best since that seems to work for most of the plugins currently running. I can't remember why you'd get an "internal error occurred", but my best solution would be to make sure you have a build that is 440 or higher. Using any other builds besides any of the recommended builds is advised against because those have a very high chance of breaking any/all of your plugins and there's nothing I can do about it.

    PROTIP: If you want help or want to suggest something to me or alert me of a bug, my Twitter is probably one of the fastest ways since I'm connected to the net for 90% of my waking hours every day (no seriously, I'm on my computer ALL DAY). The only thing that would slow down the time to respond is if I'm in class, sleeping, or in the shower (yes, I have no life....)
    --- merged: Mar 2, 2011 5:36 PM ---
    Glad that you like it! Just make sure you're running a good build and that should fix the problem. I make sure to test every plugin against the RB every time they release a new one if not the "Bleeding Edge" build every time they update the repo. I try to stay on top of the game the best I can, but when they push out updates so fast and real life comes knocking I get set back and have to work double-time to get everything fixed and such. Especially when they just changed up how you can manage commands, which I still need to work on porting over so I can get my plugins running smoother. Anyway, enjoy!
    --- merged: Mar 2, 2011 5:40 PM ---
    Yes, I mentioned this above. I'm going to make a single config option that will be made when the plugin first runs with the value "OP=true" that you can just go change to false and reload the plugin to make it take effect (though personally I always say it's best to do a restart, but that's just because I'm finicky about a very fresh testing environment). Also, once permissions are native instead of relying on a plugin I will be adding support to nearly all if not every one of my plugins to make sure it can be used exactly how everyone wants it.
    --- merged: Mar 2, 2011 5:42 PM ---
    As of right now overhead names are handled by the client so we don't have a way of changing it. But if and when there is a way to change it then I will make it a config option to also have it change the color of their overhead name. Thanks for the suggestion by the way!
    --- merged: Mar 2, 2011 5:48 PM ---
    You sure like to whine a lot...besides Permissions is too big and breaks too often and shouldn't be used if you want ONLY to color names. That would be too much overhead resource usage to do something so simple. This is a way to give players a colored name easily and without the need for other plugins, etc. as well as being small and taking up the least amount of space possible. I also ask you to stop posting in my plugin threads if all you're going to do is complain about how there are other plugins that do the same thing because I couldn't really care less. If I feel like making a plugin, I'm going to make it.
     
  19. Offline

    o0AzzA0o

    +1

    its whats needed
     
  20. Offline

    ndm250

    New problem, having a color set doesn't allow nicknames in essentials.
     
  21. Offline

    o0AzzA0o

    cheeky feature request .... optional player can set own color ? :p
     
  22. Offline

    Valrix

    I can't help that other plugins may break mine. Essentials and Permissions both break a lot of other plugins and break down a lot on their own. I make sure my plugins play nice, but if their's doesn't, I can't help with that.
    --- merged: Mar 3, 2011 12:13 AM ---
    How do you mean? Like make a config option for anyone to be able to set their own color? If that's what you mean then I already said that I'd do that above.
     
  23. Offline

    ark3typ3

    Now it doesn't seem to work at all. I updated to the latest and now it won't work period.

    *EDIT: I have tried with craftbukkit 493 and there was no success. Could you build it down with the stable snapshots so that I don't have to break all my other plugins to make yours work?
     
  24. Offline

    Valrix

    The thing is that at around 449 the way commands are handled has changed and for some reason 440 broke as well so I had to update to the newest recommended build to just get it working. I don't know why you'd have any problems because I got it to work just fine. I'll build it again and make sure the newest build gets into my dropbox. Also make sure you're using it the way it's supposed to be used now since I changed how the commands are handled to make the command smaller. I'll update the JAR now, shouldn't take more than a few minutes.
     
  25. Offline

    hofec

    Hi Valrix, nice simple plugin !

    Can i please somehow make an alias for /color cmnd, or change this cmnd (like /colour) ?

    I have /color in another plugin (for colorize wool,etc.)

    Much thanks.
     
  26. Offline

    Taeir

    Can you also change the color the console has? I don't like the purple/pink text of the console.
     
  27. Offline

    Enzy

    I have essentials and that has a nickname command but when i use color me it replaces the nick names is it possible to fix this
     
  28. Offline

    Valrix

    Hmm, I was worried that /color would be taken. I think I'll have to change it to /colorme to make sure it doesn't mess with others.
    --- merged: Mar 6, 2011 8:56 PM ---
    I'll fix that.
     
  29. Offline

    hofec

    Okey Valrix, nvm .. i just made alias in PlgEssentials, where the /color cmnd was .. i simply changed to /c ^^ thanks.
     
  30. Offline

    skawke

    How is it possible that some servers I go to have the actual nametag (name above your guy's head) colored?
     

Share This Page