[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

    Edy

    I use herochat channels and I can't get the same chat format on any other chat plugin.
     
  3. Offline

    tyzoid

    Ok, so when you do
    Code:
    /prefix examplePrefix
    what does it do?
     
  4. Offline

    Edy

    It just wont show up, but when I disable HeroChat it works fine. So I am guessing HeroChat is blocking that somehow. Oh and it blocks the color chat codes for users too but not for op, it took me 3 hours to find out... When I give herochat color codes permissions to players it just wont work, but when I disable HeroChat. Color codes works fine, that was main reason why I am using this plugin, it lets you change the sign before the color code and then it works fine. The prefix would be a huge feature cause users could change it their selves.
     
  5. Offline

    Kevin Forte

    Here's my config,
    Show Spoiler

    Code:
    #
    #Tue Jun 19 12:42:14 EDT 2012
    use-chat-formatting=false
    commands=/colors,/colours
    chat-formatting=<*prefix**displayname**suffix*&f> *message*
    suffix-commands=/suffix
    use-admin=true
    use-rainbow=true
    colorlock-commands=/cl,/color,/colorlock
    color-chars=&,^
    color-only=true
    prefix-commands=/prefix
    reload-commands=/creload,/cr
    admin-commands=/ca
    

    and here's the screenshot:
    Show Spoiler

    [​IMG]
     
  6. Offline

    Edy

    Did you try to use "^" sign? like : ^4testing
     
  7. Offline

    Disruptor

    Help? When I say something, it repeats it. Also, I'm unable to see factions.
     
  8. Offline

    Edy

    Can you give a list of what plugins you are using on server and paste the colors config too.
     
  9. Offline

    Disruptor

    Bartersigns
    BookWorm
    bPremissions
    ChestShop
    Citizens
    Colors
    craftscripts
    Essentials
    EssentialsGeoIP
    EssentialsXMPP
    Factions
    FakeOP (Cuz I'm a troll. :D)
    FoundBoxx
    Groupmanager
    Mobcatcher
    PluginMetrics
    pvparena
    SafeWorld
    ServerSigns
    SimpleJail
    SimpleSign
    SimpleSignEdit
    Spout
    VanishNoPacket
    WelcomeRulezz
    WorldEdit
    WorldGaurd
    Are all of my plugins. Again, not able to see factions and everything is said twice.

    Color.config does not exist. Just Color. properties...

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

    Edy

    Can you paste the Colors properties too?

    Well that's what I meant, sorry that I confused you.

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

    Disruptor

    #
    #Wed Jun 20 18:30:05 UTC 2012
    use-chat-formatting=true
    commands=/colors,/colours
    chat-formatting=<*prefix**displayname**suffix*&f> *message*
    suffix-commands=/suffix
    use-admin=true
    use-rainbow=true
    colorlock-commands=/cl,/color,/colorlock
    color-chars=&,^
    prefix-commands=/prefix
    reload-commands=/creload,/cr
    admin-commands=/ca
     
  12. Offline

    Edy

    use-chat-formatting=true try to set that to "false" cause I don't think so this plugin supports factions. You can try using no chat format or if you want ranks use EssentialsChat or HeroChat. That what I recommend at least.
     
    tyzoid likes this.
  13. Offline

    goodwargamer

    I lobe this plugin :)
     
  14. Offline

    tyzoid

    Wow, away from bukkit for two days, and a whole list of responses.

    let me try and answer you all one by one :)

    I'll have to do some more testing.

    Thanks for the data.

    I'll see what I can do.

    Are you using the spout client?

    It is a known bug if you use the spout client.

    Edit: And no, factions are not currently supported.

    All of my testing turned up negative.

    Do you have a plugin list?
    Edit: Try this custom version: http://server.tymcs.tk/plugins/colors/CustomBuilds/Colors_0.jar

    Does that work better?

    Thanks for helping out with support while I was away.

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

    Edy

    No problem, I like this plugin a lot. Update me when you have some updates for plugin :D
     
    tyzoid likes this.
  16. Offline

    tyzoid

    Try the custom build I linked above. It might solve your problem too :)
     
  17. Offline

    GhostlyGrin

    How do I use this to change my name color? I nicknamed myself RainbowDash and I wanna make my name color Cyan (&b) *squee*
     
  18. Offline

    tyzoid

    /prefix &b
     
  19. Offline

    ypry01

    Hey the /ca command isn't working for me, how do i sort it?
     
  20. Offline

    GamaCraft

    Seems cool testing now ^^
     
    tyzoid likes this.
  21. Offline

    tyzoid

    What does it do?

    Any errors in the console?
     
  22. Offline

    ypry01

    Its okay i sorted it now but i am using permissionsbukkit and when i set a group prefix, it doesnt come up, are there any plugins which i can use to set groups that will work with permissionsbukkit?? I've attached a pic of what i mean, i change the admin prefix and set myself to admin but the prefix hasnt come up
     

    Attached Files:

  23. Offline

    tyzoid

    permissionsBukkit is currently not supported for groups.

    Hopefully, it will be in the next update.
     
  24. Offline

    xxxXSIRXxxx

    Normal players seem to be able to use the commands is there a way to stop this.
    (btw i am using PEX)
    also there is a way to get your faction name back. Go into the Colors.properties and edit this line to false-use-chat-formatting=false
     
  25. Offline

    tyzoid

    Yes, deny permissions from the users.

    Doing this:
    Code:
    - -colors.prefix
    
    Will prevent the users from using the command /prefix
     
  26. Offline

    xxxXSIRXxxx

    They can also change the color of their chat. I thought if it was perm supported then by default they would not be able to sue the commands unless i gave them perms for it.
     
  27. Offline

    tyzoid

    No, how it works, is that they always have the permission until you give it to them.

    Here's a list of all of the permissions you can deny:
    Code:
    - -colors.rainbow
    - -colors.hex
    - -colors.prefix
    - -colors.suffix
    - -colors.reload
    - -colors.colorLock
    
     
  28. Offline

    xxxXSIRXxxx

     
  29. Offline

    Jesfriis

    mmh but this not works in console ? :(
     
  30. Offline

    tyzoid

    what doesn't work in console, colors with the say command?
     
  31. Offline

    AnimayHound

    You can add prefixes for permission groups, right? If so, how? If not, implement it!!
     

Share This Page