[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

    tyzoid

    Attached Files:

  3. Offline

    Joshuame13

    It works perfectly. Thank you.
     
  4. Offline

    aciid

    Well I meant it's a bug that plugins blocking colored chat for some users will NOT block the colored chat if using the other symbol
     
  5. Offline

    tyzoid

    Not sure what you mean...

     
  6. Offline

    aciid

  7. Offline

    tyzoid

    I mean the issue of "u00a74u00a75u00a73u00a74v|1"
     
  8. Offline

    aciid

    Oh, yea the issue is still fixed, what'd you change?
     
  9. Offline

    tyzoid

    What happened, is if you enabled chat-formatting, my plugin would still display chat messages that were supposed to be cancelled.

    I just told it: if it is cancelled, don't display it.
     
  10. Offline

    aciid

    Nice, sounds like a less intensive task than checking the chat and removing certain words.
     
  11. Offline

    tyzoid

    Yea, plus, it fixes it for mute plugins.
     
  12. Offline

    MintyLollipop

    I'm sorry if this has been asked before, but the problem I'm having is whenever I do /reload, I lose my colorlocked text. How do I make it permanent?
     
  13. Offline

    tyzoid

    I'll add this in 2.0.3

    Thanks for reminding me... I forgot about that... :p
     
  14. Offline

    MintyLollipop

    Oh, thank you so much! This is the only problem I had, otherwise it does exactly what I want.
     
  15. Offline

    tyzoid

    I'll notify you when it comes out.
     
  16. Offline

    MintyLollipop

    One more question- How do I change group prefixes/suffixes/colourlock in-game? I can't change groups.list since it resets when I reload.
     
  17. Offline

    tyzoid

    You can't change colorlock for groups,


    but you can use /ca set (prefix/suffix) g: <groupname> <prefix/suffix>
     
  18. Offline

    MintyLollipop

    OK, thanks again!
    edit:
    so i would do something like:
    /ca set prefix g: default [&3User&f] ?
    another edit:
    nevermind, got it
     
  19. Offline

    tyzoid

    Yup.

    Just remember that the group names are case-sensitive.
     
  20. Offline

    Ghost-wolfer

    Hi. Your plugin looks good but I'm not English so I have difficulties to understand its complicated commands. So I just wanna know how to change the color of my playername like that : <Ghostwolfer> Hello guys !
    Tell me the command pls ! Thanks !
     
  21. Offline

    tyzoid

    /prefix &a

    What's your primary language? Just curious.
     
  22. Offline

    Ghost-wolfer

    I'm French :) Ok gonna try it.

    Hmm when I type this nothing happens...
    Just saying "Your user prefix has been set."
     
  23. Offline

    tyzoid

    The next time you chat, it should have set your name colored.

    If not, I'll need a plugin list.
     
  24. Offline

    Mlgpro

    Well i will check into this Plugin but one problom i dont have bukkit please HELP!! if fo then than you. :D
     
  25. Offline

    migsthegod

    If we use the chat formatting, it doesnt display FACTIONS.

    I tried using [FACTION], {FACTION}, and even*FACTION*

    No faction support yet? :(

    Also, it doesnt seem to hook into and display PEX groups (pex 1.19.1)
     
  26. Offline

    tyzoid

    No it doesn't support factions - yet.

    You have to manually declare groups for now. Colors doesn't read the prefix and suffix set with PEX, or any other permissions plugin.

    How to set a group prefix: /ca set prefix g: <groupname> <group_prefix>
     
  27. Offline

    migsthegod

    I see thanks.

    Can't seem to find the command for group addition
    How do you add a player to a group?

    Lets say:
    My player is in group test (pex group)
    i do:
    /ca set prefix g: test &cqwerty

    Still doesnt display prefix.
    What do i do? :)


    Also i saw your code,
    does it have to be: "§"
    cant you just use: "§"
    So that when people see the <tab> list they dont see Â's before player names


    I really think this is a great plugin for colors. Its lightweight and very configurable.

    I'll go ahead and suggest this:
    I just noticed however, color LOCKS dont work if you don't have "chat-formatting" option set to true, or if u use another chat formatting plugin. Any ideas on fixing that?


    Also, why not make RAINBOW look like a real rainbow instead of just &1,2,3,4,5,6
    Try &4,c,6,e,a,2,b,9
     
  28. Offline

    tyzoid

    That's odd... I have bPermissions, so I'll have to test this later.

    That should not be happening... I do, in fact just use "§"

    Why thank you :D

    Odd... Again, I'll have to test this... but I think I know what is going wrong...

    I'll probably add a configuration option for this :p
     
  29. Offline

    lakitu64

    shauwk
    use essentialschat, that way you can customize the entire message, not just prefixes and/or suffixes

    edit: downside is that essentialschat does not support individual user prefixes/suffixes. also, this plugin is a lot more lightweight, especially if you just want colors
     
  30. Offline

    tyzoid

    This plugin does allow you to do that...

    In the configs, change
    Code:
    use-chat-formatting=false
    
    to true, and
    Code:
    chat-formatting=<*prefix**displayname**suffix*&f> *message*
    
    to
    Code:
    chat-formatting=[*prefix**displayname**suffix*&f] *message*
    
     
  31. Offline

    lakitu64

    o i did not realize that forgive me i think I must have been replying to an old comment
    great job w/ the plugin
     

Share This Page