[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

    Oland3

    I have the same problem. Any suggestions how to fix this?
     
  3. Offline

    Sketchy13

    dude are you going to update this to 1.3.2 or did you do it already?[pig]
     
  4. Offline

    tyzoid

    This is a result of the new(ish) chat feature in bukkit, which is multi-threaded chat. This allows chat messages to still go through even if worldedit/tnt is going on.

    Unfortunately, due to how bukkit is set up, no permissions checks work, and many bukkit features are unavailable when handling chat messages in the new thread. This plugin uses the old, single threaded method, while some newer plugins (which don't need permissions checks/get around them using other means) use the multi-threaded chat. Hence, two chat messages (one from the main thread, and one from the new thread).

    If this is confusing, don't worry, I have a fix in mind, however it isn't an easy one, and I haven't found much time recently to code, and as such (as you have probably noticed) I haven't been very active recently.

    It should work with 1.3.2, (as it is working fine on my server)

    If you have an issue, please let me know.

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

    alfonsus3d

    Im a little bit dissapointed.. My Server just Duplicate the Chat in to 2 Everytimes i Say Somthing it goes like this

    [Info] <Alfonsus3d> Hello
    [Info] <Alfonsus3d> Hello

    when i try to delete your plugin in the Plugin Folder, the problem Fixed..

    But Can You Please fix that problem so i can use your Plugin again?

    :D :D :D :D :D
     
  6. Offline

    tyzoid

    My above post explains the problem:
    This means you have another chat plugin interfering with what colors is doing.
    If you have essentials, you can try and disable the chat functions.

    In the meantime, I do have plans for updating colors, but I often cannot find the time as I am usually buried in work.
     
  7. Offline

    alfonsus3d

    i'll try it on
    thx for that
     
  8. Offline

    Vengeur69

    &o Italique
    &k Aléatoire(nombre de lettre dans [TEXT] = au nombre de caractère aléatoire)
    &l Gras
    &m Barré
    &n Souligné

    can you add this 'colors'
    Pls
    Thanks
     
  9. Offline

    tyzoid

    Already implemented, just download the latest version.
     
  10. Offline

    Vengeur69

    ow thanks i didn't notice that i have a previous version
     
    tyzoid likes this.
  11. Offline

    tyzoid

    Yeah, I haven't officially released 2.0.3 because it's still in beta.
     
  12. Offline

    Vengeur69

    i try but &k and others are not working ..
    how to enabled them ?
     
  13. Offline

    tyzoid

    Did you download 2.0.3 beta 2?
     
  14. Offline

    tyzoid

    It's thanksgiving break and I'm finally getting around to updating the plugin.
    Features coded:
    • Support for a vast number of permissions systems by default (without vault)
    • Vault support (if you are using a permissions system that colors doesn't support by default)
    Features partially coded:
    • Prefixes/suffixes from other plugins (i.e. permissions plugins)
    • Support for Async Chat
    Features still to code:
    • Tags (personal and group)
    Edit: And obviously, I need to test this as well. If anyone wants to get an early beta, let me know and I'll get one out for you to help me test.
     
  15. Offline

    Super1049

    how do i remove my prefix?
     
  16. Offline

    tyzoid

    just type /prefix
    It will clear any user prefix you may have.
     
  17. Offline

    Super1049

    Thanks
     
  18. Offline

    Jesus_Nales

    Is there a way to set a group's prefix via permissions nodes? For example, if I wanted to set the prefix "Admin" for the admin group in my permissions.
     
  19. Offline

    tyzoid

    Unfortunately, not. I'm going to work on a rewrite when I have time, but not currently. Sorry.
     
  20. Offline

    bounceraff

    Is the current build (2.0.2) or the beta (2.0.3b2) compatible with bPermissions? I've been messing with it and have some prefixes set in the bPermissions settings, but nothing is showing up? Sorry if this question is extremely "Noobish" haha
     
  21. Offline

    tyzoid

    Yes, and in fact, I have another beta build I am going to release.

    Download beta 2.0.3b4.
     
  22. Offline

    bounceraff

    I still can't get it to work for some reason, I filed a ticket for it.
     
    tyzoid likes this.
  23. Offline

    tyzoid

    Thanks. Looking back at the code, I had only half implemented it. Hopefully I can finish that up soon, but I'm also trying to do a code refactor, as I wrote the base of the plugin over two years ago when I was fourteen and still learning. (Hint: it's terribly, terribly written and hard to maintain).
     
  24. Offline

    RomanChicken

    Does that apply to the GroupManager permission method too?
     
  25. Offline

    tyzoid

    Yes.
     
  26. Offline

    tyzoid

    Hi all! Sorry for the lack of activity here. I haven't pushed out any updates in a while because the plugin still works on current versions of bukkit.

    Due to the recent changes in the bukkit/craftbukkit project, this plugin may not work after the 1.7 update. In light of this situation, I have resumed active development of the project to attempt to get a working chat plugin out when bukkit has an update available.

    Some features include:
    • Metrics tracking
    • Better support for other permissions plugins (and built-in prefixes)
    • Vault support
    • Improved handling of multithreaded chat. (may not be ready in time for the update)
    • Reliability/Speed fixes
    • and many other improvements I'm forgetting off the top of my head.
     
  27. Offline

    Stereus

    This is one of the plugins I've been looking for. Thanks

    Also the updated features look really great, great plugin you've developed here.
     
    tyzoid likes this.
  28. Offline

    tyzoid

    I've got an alpha build for Colors 2.0.4. I need to test it with the new release, but anyone interested in helping me test it should PM me for a link to the build.
     
  29. Offline

    hookitup

    Hello Folks. im having a little trouble using this plugin wioth PermissionsEX. im sure its been mentioned somewhere in the 22 pages of stuff. maybe you guys can help me.

    my permissions.yml file looks like this, but i havent set anything with colors because i dont know how. anybody have an idea if this plugin can read from permissionEX
    Code:
    users:
        pezx:
            group:
              - 'Administrators'
        fantom:
          group:
            - 'Staff'
        wetwilly:
            group:
              - 'Staff'
    groups:
        Everyone:
            default: true
            permissions: []
            inheritance:
              - ''
            worlds: []
            prefix: '&f[Nobody]-'
            suffix: '&f'
        Regulars:
            default: false
            permissions: []
            inheritance:
              - 'Everyone'
            worlds: []
            prefix: '&a[Reg]-'
            suffix: '&f'
        Moderators:
            default: false
            permissions: []
            inheritance:
              - 'Regulars'
            worlds: []
            prefix: '&1[Mod]-'
            suffix: '&f'
        Administrators:
            default: false
            permissions:
              - '*'
              - 'bukkit.command.*'
            inheritance:
              - 'Moderators'
            worlds: []
            prefix: '&4[Admin]-'
            suffix: '&f'
        Staff:
            default: false
            permissions: []
            inheritance:
              - ''
            worlds: []
            prefix: '&6[ Staff ]-'
            suffix: '&f'
     
    
     
  30. Offline

    tyzoid

    hookitup
    Only the alpha version can. I'll pm you with it, but be forewarned: I haven't tested it with pex.
     
  31. Offline

    StabbedBit

    Will you build in support for PermissionsBukkit? (or just add default support using vault?)

    And it seems this plugin blocks the [player issued server command: <command>] in the console window, any fix for that?

    I also noticed that commands don't work from the console
     

Share This Page