[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

    Thanks.

    It happens to the best of us :p
     
  3. Offline

    migsthegod

    Thanks for reading man :D

    May i also suggest the option to change a player's name only.
    As of now, players color their names with "/prefix &_" however, that also allows them to add prefixes like "/prefix buttcrack" So maybe a seperate command that only allows hex codes? Maybe like: "/colorname &_"

    I know suggesting and coding are 2 different things but i hope at least faction support is added soon.
    Hope to use this on our server :)
     
  4. Offline

    tyzoid

    I think the easiest way to do this, is to use just permissions.

    I.e.:
    • colors.prefix.*
    • colors.prefix.color
    • colors.prefix.text

    I'll see what I can implement. I'm pretty busy this semester, so I might not be able to code much :(
     
  5. Offline

    Hockey9785

    Amazing plugin but please add a feature where your chat is permanently one color...Keep up the good work though!
     
  6. Offline

    tyzoid

    /cl &5
     
  7. Offline

    Jeanzl2000

    Hey i put the .jar file into my plugins folder and then reloaded the plugins with /reload and the folder saying Colors like the one in the video hasn't appeared in the plugins folder.

    when i do /plugins it shows colors

    Is there a way to make your name a certain color so people know you are an admin?

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

    tyzoid

    Yea.

    /prefix &c
     
  9. Offline

    Jeanzl2000

    Hey how do you change the group people are in and can you do that int he console?
     
  10. Offline

    tyzoid

    That depends on your permissions system.

    Colors currently supports bPermissions and PEX (and vPerms I believe, i'll have to check).

    If you don't have a permission system, or have one that colors does not currently support, there are two default groups.
    "Op" and "Default"

    to set the prefix for the groups, type

    /ca set prefix g: <groupname> <prefix>
     
  11. Offline

    Jeanzl2000

    sorry wrong place
     
  12. Offline

    tyzoid

    ok...? :p
     
  13. Offline

    S3thc0n

    Colors in the player list (TAB) do not need a client mod.

    I'd like to know if this plugin supports the &k code.
     
  14. Offline

    tyzoid

  15. Offline

    S3thc0n

    Really? I'm pretty sure I have seen plugins doing that without a mod. But maybe my memory spits out random stuff again :\
     
  16. Offline

    tyzoid

    not sure what you meqn my "mod"

    That is just a custom dev version with that feature in it.
     
  17. Offline

    pplzsayheey

    It won't let me drag it into my plugins folder....
     
  18. Offline

    tyzoid

    Did you unzip it first?
     
  19. Offline

    Hockey9785

    thank you so much amazing plug in
     
  20. Offline

    tyzoid

    No problem :p

    I think I may need to improve documentation somewhat :eek:
     
  21. Offline

    Hockey9785

    one quick question is there a designated way to set a color for each group? i use group manager
     
  22. Offline

    tyzoid

    Not for groupmanager, sorry.

    By default, there should be two groups on your server, "Op" and "Default" if that helps any.

    Then just: /ca set prefix g: <groupname> &5

    Edit:
    Were you talking about prefix/suffixes? or about the color lock in the chat?
     
  23. Offline

    Hockey9785

    the color lock in chat

    can you add support for group manager in the next update please? other than that, amazing plug in

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

    S3thc0n

    Oh, did misunderstand that then. I said this because tyzoid stated that he doesn't believe it is possible withpout a client mod to color that list somewhen.
     
  25. Offline

    tyzoid

    Attached Files:

  26. Offline

    Hockey9785

    Thanks for the new update, but one more quick question. I was wondering how to incorporate this into GroupManager where each group has their own specified chat color. I am a relatively new server owner so I am not the best at stuff like this. Thanks a ton

    the color lock seems to go away when i shut down or restart the server? I don't know if that is a problem or it is supposed to happen?

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

    tyzoid

    Yea, I don't save it. Should be in the next update, as for your other feature request.
     
  28. Offline

    Hockey9785

    thanks so much
     
  29. Offline

    migsthegod

    Please dont add saving for color lock if it will reduce performance :p

    Also, 2.0.3 returns unknown commands.
    No error logs
     
  30. Offline

    tyzoid

    It won't reduce performance...

    What 2.0.3 version are you using?
    Try this one: http://plugins.tyzoid.tk/plugins/colors/2.0.3a/Colors.jar
     
  31. Offline

    Hockey9785

    Will the update be for the next Minecraft or just a random update? And i follow you will i be notified by your updates?
     

Share This Page