[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

    Andrik

    @tyzoid
    Oops, I misspelled "Admins". That did not work, I already tried it.
     
  3. Offline

    tyzoid

    @Andrik
    Does it give you a messages like:
    Code:
    [colors] Group prefix has been set.
     
  4. Offline

    Andrik

  5. Offline

    tyzoid

    @Andrik
    Would you mind PMing me the IP?
     
  6. Offline

    Andrik

    @tyzoid
    Ok.

    Thx a lot!


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

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

    Solo7319

    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

    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

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

    Shadow15

    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".
     
  9. Offline

    tyzoid

    @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.
     
  10. Offline

    Shadow15

    I found the problem, it was an NPC plugin I was using.
     
  11. Offline

    Solo7319

    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.:(
     
  12. Offline

    tyzoid

    @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?
     
  13. Offline

    Earlstreim

    Does it or will it be supporting PermissionsBukkit? Right now I can set individual prefix/sufix but I cannot set it up for groups.
     
  14. Offline

    tyzoid

    @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 :)
     
  15. Offline

    Earlstreim

    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.
     
  16. Offline

    tyzoid

    @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?
     
  17. Offline

    Earlstreim

    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.
     
  18. Offline

    tyzoid

    @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
    
     
  19. Offline

    Krazy

    this work for me, but for my players nothing...
     
  20. Offline

    tyzoid

    @Krazy
    What permissions plugin are you using?
    What CB build?
    What part isn't working?
    Is it shooting lasors out of its face?

    I'm finally getting around to coding the chat formatting.

    Should be released next weekend at the latest.

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

    Draconicus

    I submitted a ticket on dev.bukkit.org, but apparently you don't get those messages.
    Okay, so here are my issues summed up:
    1. Creating a prefix for a group doesn't seem to do anything at all.
    2. Colors appears to not use "displayname" for its target to modify. This makes it incompatible with aliasing plugins like SimpleAlias.
    I really love this plugin. It's what I've been waiting a long time for.
    I want desperately to get away from iChat and other old systems.
    Please come back and tend to your wonderful creation!
    (my ticket had better explanations if you can find it)
     
  22. Offline

    tyzoid

    @Draconicus
    There should be two default groups (Case Sensitive!)
    Default, and Op

    The second thing is what I am working on right now.
     
  23. Offline

    Krazy

    What permissions plugin are you using?
    Permission X3

    What CB build?
    1085

    What part isn't working?
    normal player can't use &5 MESSAGE or /colors MESSAGE. I'M ADMIN can use.

    Is it shooting lasors out of its face?
    WHAT? :confused:
     
  24. Offline

    Earlstreim

    Two things you might wanna know. First, sometimes when I'm setting a prefix or suffix for one of my friends his/her name changes to null. Example /ca set prefix p: Earlstreim &4[&fAdmin&4]&f makes <[Admin]Null> instead of <[Admin]Earlstreim>.

    Second thing, I am using NiftWarp plugin for setting warps and whenever I add/remove prefix or suffix to my name all my private warps are being deleted. I don't know if this is an issue for you or for Nifty Monkey, but either you should prevent Colors from affecting other plugins like this, or he should do something with his plugin to make it recognize raw names without prefixes or suffixes added.
     
  25. Offline

    tyzoid

    @Earlstreim
    Are they deleted? or just don't work?

    @Krazy
    Make sure to add the permissions nodes.

    You need to give them
    Code:
    colors.hex
    
    and
    Code:
    colors.rainbow
    
     
  26. Offline

    Earlstreim

    well, I looked into NiftyWarp.db and it showed that warps are indeed present in there. The thing is, they are assigned to specific name not to the player's account. I guess this issue should go to Nifty Monkey, however I doubt he will do anything about this. Unless a lot of people ask him, he want perform any major changes in the plugin's code.
     
  27. Offline

    Solo7319

    Everything works, personal and group prefixes, its only if I try and 'get' a group prefix that things go awry. Ahh, well, the plugin itself does whats intended, and I'm fine with this bug, I just thought that if it is a bug no-one has found, I should report it, and I did.
    -solo
     
  28. Offline

    tyzoid

    @Earlstreim.
    That is indeed the other plugin's problem, however the next update I am working on will have an option that will fix your issue.

    And I am interested in this null for the name. Can you replicate it under controlled circumstances?
     
  29. Offline

    Earlstreim

    All my attempts failed. But those are the things I observed when the problem occurred:

    #1. It happend when the player logged in for the very first time after installing the plugin (so before nick=\u2022 was added to the players.list
    #2. Removing player's name from players.list does not cause the problem on log in
    #3. Reloading Colors or even reloading the whole server via plugin does not fix the problem.
    #4. Changing/removing prefix or suffix does not fix the problem
    #5. Only logging out and again logging in fix the name.
    #6. When the suffix/prefix was once added successfully the problem never appears again for that player.
     
  30. Offline

    Krazy

    Code:
        eziodpn:
            default: false
            info:
                prefix: '&6[LORD]&f'
                suffix: '&6'
                build: true
            permissions:
            - foo.bar
            - -foo.test
            - essentials.list
            - essentials.spawn
            - worldguard.heal
            - essentials.home
            - essentials.sethome
            - essentials.ping
            - choptree.chop
            - iConomy.access
            - iConomy.rank
            - iConomy.list
            - iConomy.payment
            - stargate.create
            - stargate.destroy.personal
            - essentials.msg
            - essentials.heal
            - ChestShop.shop.buy
            - ChestShop.shop.sell
            - ChestShop.shop.create
            - stargate.use
            - essentials.signs.use.heal
            - stargate.free
            - essentials.kit.free
            - essentials.kit.nopvp
            - essentials.kit.vip
            - essentials.kit
            - factions.participate
            - factions.create
            - lwc.protect
            - factions.viewAnyPower
            - essentials.back
            - essentials.back.ondeath
            - pvptoggle.command.status
            - pvptoggle.command.toggle
            - VIP.VIP
            - DailyBonus.getVIP
            - signColours.*
            - signColours.e
    [B]        - colors.hex[/B]
            - bb.blocks.allow.tnt
            - worldguard.region.flag.flags.*
            - lwc.protect
            - essentials.sethome
            - essentials.sethome.multiple
            - essentials.sethome.multiple.unlimited
            - essentials.home
            - essentials.delhome
            - essentials.warp.labi
            - nSpleef.member.join
            - nSpleef.member.leave
            - nSpleef.member.list
    [B]        - colors.rainbow[/B]
    
    i add permissions nodes man
     
  31. Offline

    tyzoid

    @Krazy
    Code:
        eziodpn:
            default: false
            info:
                prefix: '&6[LORD]&f'
                suffix: '&6'
                build: true
            permissions:
            - foo.bar
            - -foo.test
            - essentials.list
            - essentials.spawn
            - worldguard.heal
            - essentials.home
            - essentials.sethome
            - essentials.ping
            - choptree.chop
            - iConomy.access
            - iConomy.rank
            - iConomy.list
            - iConomy.payment
            - stargate.create
            - stargate.destroy.personal
            - essentials.msg
            - essentials.heal
            - ChestShop.shop.buy
            - ChestShop.shop.sell
            - ChestShop.shop.create
            - stargate.use
            - essentials.signs.use.heal
            - stargate.free
            - essentials.kit.free
            - essentials.kit.nopvp
            - essentials.kit.vip
            - essentials.kit
            - factions.participate
            - factions.create
            - lwc.protect
            - factions.viewAnyPower
            - essentials.back
            - essentials.back.ondeath
            - pvptoggle.command.status
            - pvptoggle.command.toggle
            - VIP.VIP
            - DailyBonus.getVIP
            - signColours.*
            - signColours.e
            - colors.hex
            - bb.blocks.allow.tnt
            - worldguard.region.flag.flags.*
            - lwc.protect
            - essentials.sethome
            - essentials.sethome.multiple
            - essentials.sethome.multiple.unlimited
            - essentials.home
            - essentials.delhome
            - essentials.warp.labi
            - nSpleef.member.join
            - nSpleef.member.leave
            - nSpleef.member.list
            - colors.rainbow
    
    ^
    |
    | Use that
     

Share This Page