[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

    tyzoid

    [​IMG]
    Latest version:
    Dev Build:
    All Downloads:​

    Announcements:
    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.
    Video:
    Example: (open)

    Hello &9there.
    results in:
    Hello there.

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

    [​IMG]
    The Admin Command: (open)

    Syntax
    /<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).

    Example:
    /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)

    Bugs:
    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)
    Todo:
    • 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

    blazinbai

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

     
  3. Offline

    tyzoid

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

    Lanuk

    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

    users:
    Lanuk:
    permissions:
    permissions.example: true
    groups:
    - Admin
    madrozo:
    groups:
    - Member
    groups:
    Admin:
    permissions:
    permissions.*: true
    colors.*: true
    Mod:
    permissions:
    inheritance:
    - user
    Member:
    permissions:
    permissions.build: true
    worlds:
    creative:
    coolplugin.item: true
    inheritance:
    - default
    messages:
    build: '&cYou do not have permission to build here.'
     
  5. Offline

    tyzoid

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

    Grrrr159

    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

    tyzoid

    @Grrrr159
    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

    Grrrr159

    Works great thanks :D
     
  9. Offline

    tyzoid

  10. Offline

    Grrrr159

    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

    tyzoid

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

    Gonkii

    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

    tyzoid

    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

    Gonkii

    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

    mahari3

    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

    tyzoid

  17. Offline

    tyzoid

    It's a plugin incompatibility with mcMMO.

    I am contacting the developer.
     
  18. Offline

    Gonkii

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

    tyzoid

    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.

    @Gonkii
    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

    Gonkii

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

    tyzoid

    @Gonkii
    His plugin.

    And you're welcome :)
     
  22. Offline

    OZ4RK

    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

    tyzoid

    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

    Shooty

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

    tyzoid

    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

    Westsider

    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

    tyzoid

    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

    Andrik

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

    My GlobalUsers.yml:

    Code:
    users:
        Andrik:
            groups:
            - Admins
            permissions:
            -   '*': -'*'
        Holy:
            groups:
            - Builder
            permissions:
    GlobalGroups.yml:
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: '&2'
                suffix: '&f'
                build: false
            permissions:
            - commandbook.kit.starter
        Builder:
            default: false
            info:
                prefix: '&2'
                suffix: '&f'
                build: true
            inheritance:
            - Default
            permissions:
            - commandbook.kit.starter
        Moderator:
            default: false
            info:
                prefix: '&b'
                suffix: '&f'
                build: true
            inheritance:
            - Default
            permissions:
            - worldedit.*
            - worldguard.*
        Admins:
            default: false
            info:
                prefix: '&4'
                suffix: '&f'
                build: true
            permissions:
            -   '*':
            - '*'
    
    Player prefix works.
     
  29. Offline

    tyzoid

    @Andrik
    What permissions system are you using?
     
  30. Offline

    Andrik

  31. Offline

    tyzoid

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

Share This Page