[CHAT] Colors v2.0.2 (2.0.3b4) - Adds color to your chat [1.5.1-R0.2] [Permissions/bPermissions/PEX]

Discussion in 'Plugin Releases' started by tyzoid, Apr 23, 2011.

     
  1. Offline

    tyzoid

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    [IMG]
    Latest version:

    Dev Build:

    All Downloads:

    Announcements:
    Beta 2.0.3b4 needs more extensive testing. It works fine on bPermissions/bPermissions nano

    Notices:
    Works on MC 1.2.5


    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:

    Hello &9there.
    results in:
    Hello there.

    /colors Hello there.
    results in:
    [IMG]
    (If the image isn't loading, click here.)

    [IMG]

    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:
    • 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.

    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:
    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.

    This post has been edited 62 times. It was last edited by tyzoid Apr 23, 2013.
  2.  
  3. Offline

    Shooty

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @tyzoid don't work for me for permissions 3.1.X but it's works on bukkitpermissions
  4. Offline

    tyzoid

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I'm running it fine using 3.1.5... It should be working. Please post all plugins you have... Explain what doesn't work... and post any errors you are getting.
  5. Offline

    Westsider

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Can you tell me how the group thing works? How can i add members to it? And if i have bPermission wich already has groups, how can i merge them?
  6. Offline

    tyzoid

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Colors cannot access groups through the superperms API.
    Colors fully supports Permissions, but I will not add support for other permissions systems (too much coding).

    However, Colors DOES come with default groups.
    OP and Default
    Use these groups to color player's name by group.

    If enough people use bPermissions, I might add it.
  7. Offline

    Andrik

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I enter
    /ca set prefix g: Admin &1[Admin] &f
    Does not work at all. Tried different combinations.

    My GlobalUsers.yml:

    Code:
    users:
        Andrik:
            groups:
            - Admins
            permissions:
            -   '*': -'*'
        Holy:
            groups:
            - Builder
            permissions:
    GlobalGroups.yml:
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: '&2'
                suffix: '&f'
                build: false
            permissions:
            - commandbook.kit.starter
        Builder:
            default: false
            info:
                prefix: '&2'
                suffix: '&f'
                build: true
            inheritance:
            - Default
            permissions:
            - commandbook.kit.starter
        Moderator:
            default: false
            info:
                prefix: '&b'
                suffix: '&f'
                build: true
            inheritance:
            - Default
            permissions:
            - worldedit.*
            - worldguard.*
        Admins:
            default: false
            info:
                prefix: '&4'
                suffix: '&f'
                build: true
            permissions:
            -   '*':
            - '*'
    
    Player prefix works.
  8. Offline

    tyzoid

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Andrik
    What permissions system are you using?
  9. Offline

    Andrik

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME

    This post has been edited 1 time. It was last edited by Andrik Aug 31, 2011.
  10. Offline

    tyzoid

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Andrik
    I see your problem. The group is Admins not Admin
    Try appending an "s" to the command. Like this:
    Code:
    /ca set prefix g: Admins &1[Admin] &f
  11. Offline

    Andrik

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @tyzoid
    Oops, I misspelled "Admins". That did not work, I already tried it.

    This post has been edited 1 time. It was last edited by Andrik Aug 31, 2011.
  12. Offline

    tyzoid

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Andrik
    Does it give you a messages like:
    Code:
    [colors] Group prefix has been set.

    This post has been edited 1 time. It was last edited by tyzoid Aug 31, 2011.
  13. Offline

    Andrik

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  14. Offline

    tyzoid

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Andrik
    Would you mind PMing me the IP?
  15. Offline

    Andrik

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  16. Offline

    Andrik

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thx a lot!


    (solution: copy global group definitions into groups.yml in worlds' folders)
  17. Offline

    Solo7319

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Looks like a sweet plugin, I have been looking for a simple plugin for suffixes and colours for a while now :).
    The only thing that bugs me is that, as a Canadian, I keep mis-typing '/colours' instead of '/colors' :D
  18. Offline

    Solo7319

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Sorry for the double post.
    I've found a bug... I can use /colors, it works fine. All the colour codes (&5, &3, etc) work as well. When I typed this command, however:
    Code:
    /ca set prefix g: Owner &6[King]&1

    The only thing that happens is I get this message:
    Code:
    [Colors] Group prefix has been set

    but my prefix, name colour, and chat colour do not change.
    I can assure you that I DO have the Owner node, and that I am a member of it.
    When I try this command, it is not recognized by the server:
    Code:
    /ca get prefix g: Owner

    However, I did do this: First, i tried just /ca, and I got the syntax help thingamajig. Then /ca get, then /ca get prefix, then /ca get prefix g:.
    All those gave the syntax help message, but when I tried /ca get prefix g: Owner, it didn't recognize the command and gave me that annoying server message: ''Unknown Command. Type 'Help' for help.''
    I may have a reason for this: My server uses Multiverse, which means I have a world suffix already.
    My default chat is not '<Username>:Whatever I say',
    it is: ''[Coloured World Name]<Username>:Whatever I say''. because of this Multiverse world prefix.
    w
    EDIT1: Weird! I tp'ed to my main world, tp'ed back to another world, and now everything works! Who knows why, but....weird!
    EDIT2:Okay, this is still a bug report: the /ca get prefix g: [real, existing group] command is NOT working, so... yeah, .... .....
    EDIT3: New bug found: Try and fill up a full line of /colors text and things go downhill fast. Try it sometime!
    Sorry if this post makes little sense, I'm just a little frazzled trying to install a whole whack of plugins right now :)
    Please reply
    -solo

    This post has been edited 3 times. It was last edited by Solo7319 Sep 28, 2011.
  19. Offline

    Shadow15

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Can someone please help, I've installed many different chat color plug-ins, but none of them work. Whenever I type in something like "&eHello" instead of appearing as "Hello", It appears as "&eHello".
  20. Offline

    tyzoid

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Shadow15
    Does this one not work? It sounds like a plugin incompatibility. What plugins do you have?

    @Solo7319
    What permissions/group plugin are you using?
    And the full line of wacky colored text is something I'm aware about. I'm investigating it.
  21. Offline

    Shadow15

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I found the problem, it was an NPC plugin I was using.
  22. Offline

    Solo7319

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I think I'm using Yeti's permissions... I honestly can't remember. Is there a version file you know of inside the Permissions that I can check? Sorry that I'm not much help from a debugging point of view.:(
  23. Offline

    tyzoid

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Solo7319
    Yea. I build against permissions 3.x
    You are using 2.x. The group prefixes should work though. Remember, they are case sensitive.

    Personal prefixes work, yes?
  24. Offline

    Earlstreim

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Does it or will it be supporting PermissionsBukkit? Right now I can set individual prefix/sufix but I cannot set it up for groups.
  25. Offline

    tyzoid

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Earlstreim
    I am looking into this.
    In the meantime, there should be two default groups on your server: Op, and Default. (Case sensitive)

    I am still using permissions... probably should upgrade :)
  26. Offline

    Earlstreim

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Well, I am looking forward for PermissionsBukkit support. As far as I can see it's getting more and more popular for it's much more easier to set up and maintain then Permissions 2 and 3.

    As for default groups, it's not working. But that's maybe because I added permissions to PermissionsBukkit, so it is using plugin instead of default settings.
  27. Offline

    tyzoid

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Earlstreim
    The groups should still work...
    But ill add a debug message option in the config next release.

    Anyway, I am looking into the issue.
    BTW:
    Any errors? What CraftBukkit build? Colors 1.7.5?
  28. Offline

    Earlstreim

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Colors is loading just fine, no errors here.
    Code:
    00:24:46 [INFO] [Colors] Starting Colors v1.7.5...
    00:24:46 [INFO] [Colors] Permissions not detected. Using defaults.
    00:24:46 [INFO] [Colors] Properties loaded.
    "Permissions not detected." is an issue related to the empty permissions.yml in the main server directory. Dunno if console is showing this line with all permission plugins or just for CraftBukkit, however it's nothing to worry about.

    As for default group, the problem is probably this:
    Code:
    Default=\u2022
    default=[&7guest&f]\u2022
    Didn't know that capital letter here is important.
  29. Offline

    tyzoid

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Earlstreim
    Groups are case sensitive. Usernames are not.

    That's very odd. It appears that superperms isn't being recognized...
    EDIT: Never mind. It appears I didn't change the output code.

    In your groups.list file, change it to:
    Code:
    Default=[&7guest&f]\u2022
    

    This post has been edited 5 times. It was last edited by tyzoid Oct 2, 2011.
  30. Offline

    Krazy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    this work for me, but for my players nothing...
  31. Offline

    tyzoid

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Krazy
    What permissions plugin are you using?
    What CB build?
    What part isn't working?
    Is it shooting lasors out of its face?
  32. Offline

    tyzoid

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I'm finally getting around to coding the chat formatting.

    Should be released next weekend at the latest.

Share This Page