[CHAT] Colors v2.0.2 (2.0.3b4) - Adds color to your chat [1.6.4-R2.0] [Permissions/bPermissions/PEX]

Discussion in 'Archived: Plugin Releases' started by tyzoid, Apr 23, 2011.

  1. Offline


    Latest version:
    Dev Build:
    All Downloads:​

    Beta 2.0.3b4 needs more extensive testing. It works fine on bPermissions/bPermissions nano
    Description: (open)

    Allows users to color their chat by using a configurable character (By default, the ampersand "&" and the carat "^") followed by a hexadecimal number (0-F). I recieved a request to post this plugin after someone used it on my server.

    Rainbow mode is toggled by a configurable command (by default "/colors" and "/colours"). This can be disabled in the settings.

    Admin can use the admin command (by default "/ca") to set and reset players' and groups' prefixes/suffixes. If you don't have permissions installed, the admin command will default to Op, and the two groups that will exist are: "Op" and "Default"

    Users can change their own prefixes and suffixes using configurable commands (by default "/prefix" and "/suffix").

    A small note about version numbers: x.y.z
    • X.Y represents the Minecraft version number that was out when the update was released.
    • The Z represents the release number.
    So the version 1.7.2 would indicate that it is the second release of the plugin, on minecraft 1.7

    Starting with version 2.0.0,
    The version number is unrelated to the minecraft version. It goes by major.minor.release
    Any questions, comments, suggestions, or plugin breaks (I'm not always on the latest version of CB), please post here.
    Example: (open)

    Hello &9there.
    results in:
    Hello there.

    /colors Hello there.
    results in:
    (If the image isn't loading, click here.)
    List of Color Codes (open)

    The Admin Command: (open)

    /<colorsadmin> [set/get/remove/reset] [prefix/suffix] [p:/g:] <name> (<prefix/suffix>)

    Command breakdown:
    • [Set/get/remove/reset]
      • Required
      • Remove and reset are alises
      • Remove and reset removes the prefix/suffix
      • Set sets a prefix/suffix
      • Get tells the admin what the current prefix/suffix is
    • [prefix/suffix]
      • Required
      • Self explanatory
    • [p:/g:]
      • Required
      • p: tells the plugin you are setting the player's prefix/suffix
      • g: tells the plugin you are setting the group's prefix/suffix
    • <name>
      • Required
      • Fill it in with either the group, or player name, depending on what you put for [p:/g:]
    • (<prefix/suffix>)
      • Required in certain contexts
      • Only use if you are setting a username [set]
      • Just type in the prefix/suffix you want to set here.
    To color a name, just set a prefix with the last 2 characters be the hex code for the color (using the character set in the properties file).

    /ca set prefix p: tyzoid &cAdmin &a
    When tyzoid (me) talks, it will look like this:
    <Admin Tyzoid> Hello.
    Permissions nodes: (open)

    Permissions nodes:
    • colors.hex
      • This is the node that allows people to use (or not use) the "&" or "^" character (or a different one, depending on your configuration) followed by a hexadecimal code.
    • colors.rainbow
      • This is the node that allows people to use (or not use) rainbow mode. (Use with care - can create an eyesore)
    • colors.admin
      • This is the node that allows people to use the admin commands. (Setting/resetting prefixes and suffixes) Use with care.
    • colors.prefix
      • This node allows users to change their own prefix.
    • colors.suffix
      • This node allows users to change their own suffix.
    • colors.reload
      • This node allows people to reload the settings in-game.
    Changelog: (open)

    Version 1.7.4
    • Added support for superperms
    • Added ability to reload configuration files in-game (Default command: /creload and /cr)
    • New permissions node
      • colors.reload
    • Added crash protection (If the server crashes, prefix/suffix data will not be lost.
    Version 1.7.3
    • Fixed bug #5
    Version 1.7.2
    • Added ability for players to color their own names.
    • added two new permissions nodes
      • colors.prefix
      • colors.suffix
    • The suffix no longer needs to be colored white.
    Version 1.7.1
    • Minor bugfixs
    • Player names are no longer case sensitive. (Group names still are)
    Version 1.6.2
    • Fixed bug #2
    • Fixed bug #3
    • Fixed bug #4
    Version 1.6.1
    • Build with a newer version of permissions
    • Fixed bug #1
    Version 1.5.5
    • Added admin commands.
    • Added a permissions node:
      • colors.admin
    • Added a few more configuration options.
    • Added Prefixes and suffixes.
    Version 1.5.4
    • Added permissions support.
    • Added two permissions nodes:
      • colors.hex
      • colors.rainbow
    Version 1.5.3
    • Added a configuration file.
    Version 1.5.2
    • Releasing my plugin by request.
    Bugs and Todo: (open)

    1. Prefixes and suffixes clear if the server crashes.(Fixed in 1.6.1)
    2. Incompatibility with defaultCommands.(Fixed in 1.6.2)
    3. Individual suffix not setting.(Fixed in 1.6.2)
    4. Permissions nodes not working.(Fixed in 1.6.2)
    5. Bug with superperms not having groups.(Fixed in 1.7.3)
    6. Double chat with some chat plugins.(Fixed in 1.7.5)
    7. Player's name as "null"(Fixed in 2.0.0)
    8. Fix regex error.(Fixed in 2.0.1)
    9. Fix another permissions glitch.(Fixed in 2.0.1)
    10. Fix NPE when the person is offline.(Fixed in 2.0.1)
    • Add a configuration file.(Added in 1.5.3)
    • Add Permissions Support(Added in 1.5.4)
    • Add an admin command (by default "/ca") to allow prefixing names.(Added in 1.5.5)
    • Add ability of players (with permissions) to be able to color their own names.(Added in 1.7.2)
    • Support bukkit's new internal permissions manager.(Added in 1.7.4)
    • Add chat formatting. (Toggle-able)(Added in 2.0.0)
    • Add rainbow prefixes.(Added in 2.0.0)
    • Add color lock for messages.(Added in 2.0.0)
    • Implement support for PEX and bPermissions for groups.

    Attached Files:

  2. Offline


    I am hopefully implementing something of the like in the next release. You cannot currently use groups without Permissions 2.x/3.x.
    And thank you for the compliment :) made my day.

    That will be implemented in the next release.

    Edit: I've implemented @zaczac 's request. I just need to test it, and add persistence.
  3. Offline


    Thank you very much!, Will the admins be able to set other player's colors as well?
  4. Offline


    Not currently, but I'll add something to the admin command.
  5. Offline


    Hey tyzoid. You've been a great help with this.
    Re-installing essentials did not fix the problem.
    This sounds like it will be a great plugin but I just cant get it to work! :mad:

    I can't give you the essentials folder.. I can't upload folders, only txt documents.
    This is an awesome plugin, it looks like you put a lot of work into it. You're one of the cooler plugin designers out there :)
  6. Offline


    Thanks for the compliments :)

    Just zip your folder. It should allow you to upload the compressed version.
  7. Offline


  8. Offline


  9. Offline


    How do i use this? Is there a guide somewhere?
  10. Offline


    Just unzip the plugin and put it into your plugins folder. It will automatically generate all files necessary when you start the server.

    You can set the permissions nodes (outlined in the OP under permissions nodes) in the permissions plugin of your choice.
    You can also change the configuration, but the default configs should work just fine.
  11. Offline


    Uhm.. Could you just tell me what to do exactly? :3
    I downloaded it, put it into the plugin folder and reloaded the server. What now?
    Permissions etc? where to put those

    How to set permission nodes.. Just make a new yml file named permissions? or..

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 14, 2016
  12. Offline


    Do you have a permissions plugin? If not, you don't need to set anything.

    Although, I am not sure what your problem is. Do you have any other plugins?
  13. Offline


    Ya alot of other :3
  14. Offline


    Could you post your plugin list?
  15. Offline


  16. Offline


    Try disabling Essentials temporarily and see if that helps.
  17. Offline


    is there a way to change the brackets? <> to []?
  18. Offline


    That functionality is implemented and will be released in the next update.
  19. Offline


    Turned essentials off.
    I typed: /ca set prefix p: Lunethz &2
    Nothing happened..

    Owh your right, essentials blocks it..

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 14, 2016
  20. Offline


    @Luneth2 @tucketdog44
  21. Offline


    awesome! i love this plugin since it works without permissions :)
  22. Offline


    Everytime I type the command my name changes to null.. why is that?
  23. Offline


    I don't know what causes the bug, but I am going to remove the offending code in the next update.
  24. Offline


    Very intresting plugin I must say. I just dont understand the commands very well. How do I set color for admins?
    Please answer as fast as possible Sincerly Javaprogrammer. ;)
  25. Offline


    If you have permissions,
    /ca set prefix g: <Groupname> <prefix/color_code>

    If not, I will be working on a new update to use bPermissions and PermissionsEx
  26. Offline


    Hi again! I just wanted to say that it might work now just gonna test it! Sincerly Javaprogrammer!
  27. Offline


    Is it still broken when used with Essentials Chat?

  28. Offline


  29. Offline


  30. Offline


    Why is it when I type the command with everything right, the after the prefix, it says null. It's so annoying.
  31. Offline


    Is the player's name itself null?

    If so, this is an issue that has been confirmed, but I haven't had much time recently to code.

    Hopefully there will be a fix soon.

Share This Page