[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

    Krazy

    not work =/
     
  3. Offline

    tyzoid

    @Krazy
    The prefix?

    The prefix is set using the in-game command. Not the info -> prefix.
     
  4. Offline

    odielag

    Hi. I'm having problems getting any Name coloring (suffix/prefix renaming, or else) plugin working with a chat plugin (that shows prefix suffix name)... Anyone get anything working where certain permissions groups can have a node that allows them to change the color of their own name only?

    (getting ready to paste a bunch of pastebins with my settings... feel free to message me on skype: [email protected] or here).... (making pastebins)

    permissionsex permissions.yml
    http://pastebin.com/U3tBZquv

    ichat config.yml
    http://pastebin.com/UjHPT98b

    colors groups.list
    http://pastebin.com/t3wAs2v5

    colors players.list
    http://pastebin.com/WDqDtC7F

    plugins
    http://pastebin.com/miNgYssr

    the text output nomatter what looks like: [] name: text

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

    Krazy

    color not working
    my VIP players msg &5 BLA BLA BLA
    and message in chat is &5 BLA BLA BLA not
    BLA BLA BLA
     
  6. Offline

    tyzoid

    @odielag
    iChat should be able to do this on its own.
    Once the new update comes out, that will cover pretty much everything that iChat does. (except a few chat formatting options).

    @Krazy
    It looks like you are not giving them the correct permissions.
    Please paste your ENTIRE permissions.yml file (on pastebin, of course).
     
  7. Offline

    Krazy

    All files in permissions folder.
     

    Attached Files:

  8. Offline

    tyzoid

    @Krazy
    In your groups.yml, scroll down to the last line.

    Code:
        VIP:
            permissions:
            inheritance:
    
    Change that to this:
    Code:
        VIP:
            permissions:
            inheritance:
            - vipmcbr
    
     
  9. Offline

    Krazy

    not work =/
     
  10. Offline

    tyzoid

    @Krazy
    Did you try moving the everything in the global groups file into the relevant world-specific files? There were bugs with global groups.

    And make sure the default group gets colors.hex
     
  11. Offline

    Krazy

    this plugin no have incompatibility with another?
    i try to use another colors chat and same error =/
     
  12. Offline

    tyzoid

    @Krazy
    What is the error you are getting?

    Is the only problem that normal users can't use the hex feature?
     
  13. Offline

    Krazy

    yeah, this is error ^^, my players can't use colors in chat :(
     
  14. Offline

    mrjoeman1200

    Group Manager Support?
     
  15. Offline

    tyzoid

    @Krazy
    It should be working.
    @mrjoeman1200 Not right now. Use the permissions bridge (or a superperms compatable permissions plugin)
     
  16. Offline

    Gotomtom95

    well, this is a good plugin. BUT, the player prefixes work, group prefixes don't >.<

    if i set a group prefix it just doesnt show up on me...
    but when i set my own player prefix on the other hand i'll see the darned thing just fine

    currently using Craftbukkit [1331] (gonna switch to 1340 in a moment)
     
  17. Offline

    tyzoid

    @Gotomtom95
    What permissions plugin are you using?
    Group prefixes are working on my server...

    Could you give a more descriptive explanation of what is wrong? What version you are using? What CB build? Other useful details... Etc.
     
  18. Offline

    Draconicus

    Sorry for the late response. These are default groups, sure, but how do I use my own?
    I'm using SuperpermsBridge which should look like Permissions 3.x to your plugin...
     
  19. Offline

    Garry198rocks

    What's The Color Coads?[bedrock]
     
  20. Offline

    tyzoid

    Here's the color codes.
    @Draconicus
    Yes. While Superperms pretends to be permissions 3.x, It still doesn't support groups.
    This is because the built in permissions manager within bukkit doesn't support groups.

    Unfortunately, there are multiple permissions systems I'd have to support in order to get groups working, and there is no official way to interface with these plugins to get the group. For now you'll just have to use the default groups.

    I will put custom groups on my to-do list for groups separate from a permissions plugin.

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

    mrbell11

    is this superms
     
  22. Offline

    tyzoid

    This is not a permssions manager. It supports permissions given through superperms by plugins such as bPermissions, PermissionsEx, and permissionsbukkit...

    Remember that Colors can't read groups from the aforementioned plugins.
     
  23. Offline

    Draconicus

    But... uh... I have custom groups working fine for other BukkitPerms plugins. >..>
     
  24. Offline

    tyzoid

    Yea. That's because the plugin directly interfaces with BukkitPerms, not through the permissions manager.

    I have yet to figure out how to do this. In the meantime, Problem one (Compatibility with your name-changing plugin) will be solved by an update this weekend. I almost posted it last weekend, but minecraft was down preventing me from testing the code.
     
  25. Offline

    voodoomike

    how can i make my prefix rainbow
    this is what i want (Owner)voodoo
     
  26. Offline

    Gotomtom95

    i'm using permissionsbukkit 1.1 and CB 1363

    and sorry for my late reply :)

    [edit]
    nevermind, i know why the group prefixes ain't working, you don't support permissionsbukkit (yet)
    [/edit]
     
  27. Offline

    tyzoid

    @voodoomike
    you can't as of yet, however it is on my mental to do list.
    @Gotomtom95
    It's ok. I haven't been on since last Saturday anyway.

    @everyoneusingcolors
    This current update is taking longer than I expected, mainly due to me not having time to do almost anything (Calc and Physics...), and also because I have just gotten carpal tunnel.

    Anyway, I will hopefully be getting the update out this weekend.
     
  28. Offline

    tyzoid

    @voodoomike
    Will be available in this next update.

    However, you will need to enable chat formatting to utilize it in names.
     
  29. Offline

    Gotomtom95

    any chance of you supporting PermissionsBukkit any time soon? :)
     
  30. Offline

    tyzoid

    @Gotomtom95
    Yea, but not in this update. Probably in the one after this one.
     
  31. Does this work with HeroChat?
     

Share This Page