[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


    every time i talk it come up prefixnullsuffix
    how can i fix this plzz help

  3. Offline


    Try resetting your prefix. Were you upgrading to a new version?
  4. Offline


    Hmm.. The color of my group won't seem to change. I use:

    /ca set prefix g: Admin &d

    and it says that the color has been changed, but when I speak it comes up normally. I am using SuperPerms and this is what my file looks like if that helps:

    Oh and im using cb1000

    permissions.example: true
    - Admin
    - Member
    permissions.*: true
    colors.*: true
    - user
    permissions.build: true
    coolplugin.item: true
    - default
    build: '&cYou do not have permission to build here.'
  5. Offline


    if you want a group prefix you must first clear your personal prefix. Type
    to clear your prefix.
  6. Offline


    Hello, I am using this plugin with Herochat and it types everything someone says twice. in the console it says "unsupported operation" any help? btw, I don't have essentials
  7. Offline


    That is a bug i am currently working on.

    Thank you for the report.

    The problem should be solved in 1.7.5.

    Update and see if it works.

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


    Works great thanks :D
  9. Offline


  10. Offline


    When I use the /<colorsadmin> [set/get/remove/reset] [prefix/suffix] [p:/g:] <name> (<prefix/suffix>) command, It says it worked, when I type /list it shows as the right prefix, but in chat it is still the same.
  11. Offline


    What plugins do you have? Do you have another chat plugin? It sounds like a plugin incompatibility. :(
  12. Offline


    So I tried to change the prefix to admin and the colors of my name but nothing happens. It says that its been set or w/e but nothing changes at all. The rainbow colored words work and coloring the chat works but I can't add myself a prefix and color :[

    I'm pretty sure I'm doing something wrong. Whats do I do with the players/groups.list? Sorry if I'm asking a retarded question but i get overwhelmed very easily :\
  13. Offline


    It's not a dumb question. You don't understand it, and you asked.
    A wise person once said "The only dumb question is the one you don't ask."

    Anyway, back on topic.
    It seems like a plugin incompatibly. Please give me a list of your plugins, and the CB build you are using.

    And also, post any errors you are getting (if any).
  14. Offline


    BigBrother, iCononmy, iConomyChestShop, Regios, mcMMO, Craftbukkit, LWC, BoatMod, WorldEdit, BedHeal, Permissions, Essentials, SuperHeat.

    And my bukkit build is 1000

    I'm getting no errors.
  15. Offline


    can you make a list of the colors and what they are linked to? (i.e. &c is red [or green im not sure which]) it would really help to have a reference. or does this work with the same letters & numbers as other plugins like this?
  16. Offline


  17. Offline


    It's a plugin incompatibility with mcMMO.

    I am contacting the developer.
  18. Offline


    Alright, hope you can fix it :] Take your time of course I'm in no hurry :p
  19. Offline


    I contacted him. He has his source code on git, so I found the problem.
    This looks like the only incompatibility in your case, so it should be fine until it is fixed.

    This is what he said:
    So it should be fixed in the next update.

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


    His or yours? o: Either way thx for the effort :]
  21. Offline


    His plugin.

    And you're welcome :)
  22. Offline


    I guess I'm an idiot, cuz I have no idea how this works with the groups.list and users.list files. I just want the ADMIN group to show as [&4ADMIN&f] and so on...
  23. Offline


    You don't need to edit those files...
    They are data save files for the prefixes and suffixes.

    to color the prefix, you type:
    /ca set prefix g: <groupname> [&4ADMIN&f]
  24. Offline


    @tyzoid don't work for me for permissions 3.1.X but it's works on bukkitpermissions
  25. Offline


    I'm running it fine using 3.1.5... It should be working. Please post all plugins you have... Explain what doesn't work... and post any errors you are getting.
  26. Offline


    Can you tell me how the group thing works? How can i add members to it? And if i have bPermission wich already has groups, how can i merge them?
  27. Offline


    Colors cannot access groups through the superperms API.
    Colors fully supports Permissions, but I will not add support for other permissions systems (too much coding).

    However, Colors DOES come with default groups.
    OP and Default
    Use these groups to color player's name by group.

    If enough people use bPermissions, I might add it.
  28. Offline


    I enter
    /ca set prefix g: Admin &1[Admin] &f
    Does not work at all. Tried different combinations.

    My GlobalUsers.yml:

            - Admins
            -   '*': -'*'
            - Builder
            default: true
                prefix: '&2'
                suffix: '&f'
                build: false
            - commandbook.kit.starter
            default: false
                prefix: '&2'
                suffix: '&f'
                build: true
            - Default
            - commandbook.kit.starter
            default: false
                prefix: '&b'
                suffix: '&f'
                build: true
            - Default
            - worldedit.*
            - worldguard.*
            default: false
                prefix: '&4'
                suffix: '&f'
                build: true
            -   '*':
            - '*'
    Player prefix works.
  29. Offline


    What permissions system are you using?
  30. Offline


  31. Offline


    I see your problem. The group is Admins not Admin
    Try appending an "s" to the command. Like this:
    /ca set prefix g: Admins &1[Admin] &f

Share This Page