[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

    Stormshout

    Why can't I put spaces after a prefix? is that a Permissions Issue? or does Colors not support that yet?

    Thanks
    -Stormshout
     
  3. Offline

    Theundercow

    When i chat i get an error like this:

    08:26:29 [SEVERE] Could not pass event PlayerChatEvent to Colors
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:303)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:62)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:459)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:786)

    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
    at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:7
    8)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NullPointerException
    at org.anjocaido.groupmanager.permissions.NijikoPermissionsProxy.permiss
    ion(NijikoPermissionsProxy.java:180)
    at org.anjocaido.groupmanager.permissions.NijikoPermissionsProxy.has(Nij
    ikoPermissionsProxy.java:163)
    at tk.tyzoid.plugins.lib.Perms.hasPermission(Perms.java:112)
    at tk.tyzoid.plugins.colors.colors.hasPermission(colors.java:58)
    at tk.tyzoid.plugins.listeners.colorsPListener.onPlayerChat(colorsPListe
    ner.java:412)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:301)
    ... 11 more




    Please Help me if you know how to fix this problem.
     
  4. Offline

    tyzoid

    It appears to be a bug in groupmanager...
     
  5. Offline

    Hockey9785

    i use group manager and colors (dev build 2.03a) and im not getting any errors
     
  6. Offline

    tyzoid

    You need to place a color code after the prefix.
    Minecraft automatically chops ending spaces off to save bandwidth.

    i.e. /prefix &chello &f
     
  7. Offline

    Joey989811

    Can I change it so that when I do /colors it does it in red? not rainbow?
     
  8. Offline

    tyzoid

    /cl &c
     
    Joey989811 likes this.
  9. Offline

    Joey989811

    Thank you so much!
     
  10. Offline

    tyzoid

    No problem :)
     
    Joey989811 likes this.
  11. Offline

    Stormshout

    Thanks =D
     
  12. Offline

    Gotomtom95

    does anyone have an alternative downloadlink?
     
  13. Offline

    Theundercow

    Thanks i'l see what i can do :D

    Thank you so much!!!!!!!!!! It worked i reinstalled group manger and the plugin worked a gain. Thanks :D

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

    tyzoid

    Glad you fixed your issue.

    http://server.tymcs.tk/plugins/colors/2.0.3a/Colors.jar

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

    Theway2cool1

    On every reload, I get an error like this:
    Code:
    2012-05-01 19:33:34 [SEVERE] Could not pass event PlayerChatEvent to Colors
    org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:786)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
        at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
        at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.RuntimeException: Permissions manager is not accessable. Is the PermissionsEx plugin enabled?
        at ru.tehkode.permissions.bukkit.PermissionsEx.getPermissionManager(PermissionsEx.java:148)
        at ru.tehkode.permissions.bukkit.PermissionsEx.getUser(PermissionsEx.java:155)
        at ru.tehkode.permissions.bukkit.superperms.PermissiblePEX.isPermissionSet(PermissiblePEX.java:202)
        at org.bukkit.permissions.PermissibleBase.hasPermission(PermissibleBase.java:71)
        at ru.tehkode.permissions.bukkit.superperms.PermissiblePEX.checkPermission(PermissiblePEX.java:113)
        at ru.tehkode.permissions.bukkit.superperms.PermissiblePEX.hasPermission(PermissiblePEX.java:102)
        at org.bukkit.craftbukkit.entity.CraftHumanEntity.hasPermission(CraftHumanEntity.java:102)
        at org.bukkit.craftbukkit.CraftServer.broadcast(CraftServer.java:962)
        at org.bukkit.craftbukkit.CraftServer.broadcastMessage(CraftServer.java:322)
        at tk.tyzoid.plugins.listeners.colorsPListener.onPlayerChat(colorsPListener.java:467)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
        ... 11 more
    It only happens on reload and it prevents anyone from chatting.
    Colors v2.0.2
    Craftbukkit 1.2.5-R1.0
     
  16. Offline

    tyzoid

    Reloading sometimes screws stuff up...

    I'll ask the permissionsEx dev, as I have no clue why this is happening.
     
  17. Offline

    Theway2cool1

    Ok thanks :)
     
  18. Offline

    Gotomtom95

    oh, had some other question!

    can you make it multi world supportive?
    or at least compatible with prefixes that Multiverse adds
     
  19. Offline

    tyzoid

    I'll add it to my to-do list.

    I haven't really been actively coding recently, as I am loaded with homework in preperation for exams in the near future.

    I should be able to add some new features in ~2 weeks.
     
  20. Offline

    wouter140

    Oke It looks like a graat plugin, Buth can you disable the part of player can change the color of tekst in chat?
    And can only a op change the part before your name?
    And can you change the color of the part before your name?
     
  21. Offline

    tyzoid

    you can set the permissions to do that.

    What permissions plugin are you using?
     
  22. Offline

    Mineguy12345

    Can you PLEASEEEE include color lock for specific ranks in group manager in the next update. it would be soooo helpful, but other than that, the plugin is amazing.
     
  23. Offline

    tyzoid

    Thanks.

    Color locks for groups should come in ~2 weeks.

    I have some exams I need to study for.
     
  24. Offline

    Rex1946

    How Do you set your name not prefix or suffix your name like rex1946 if i want that coloured how will i do that
    :confused:
     
  25. Offline

    tyzoid

    You set your prefix to a color code.

    for example, /prefix &c will color your name red.
     
  26. Offline

    wouter140

    I'm using commandbin.
     
  27. Offline

    Hockey9785

    so in the next update there will be color lock saving and permissions for it? :D
     
  28. Offline

    tyzoid

    Yup.

    I'll have to make a whole list of the things I plan on implementing.
     
  29. Offline

    Bigi

    I have some problem with PEX and Colors 2.0.2.

    Players prefixes not load from Pex. Its normal ? )
    Players without permissions ( colors.hex, colors.rainbow,colors.prefix) can use this commands ( /color &, /color ^ , /colors, /prefix )... I think that permissions not work ...
     
  30. Offline

    tyzoid

    Yea.

    Colors doesn't read prefixes from permissions plugins.
    You can, however, set prefixes in-game.

    /ca set prefix g: <groupname> <prefix>

    or
    /ca set prefix p: <playername> <prefix>
     
  31. Offline

    Bigi

    thanks :)
    And what about permissions ?
     

Share This Page