ColorName

ColorName:

Description:

This plugin is a simple plugin that simply lets players change their name color in chat. Admins with the admin permission or ops can change other people's chat name color. This plugin was made by: Forseth11 and was requested by: icomputerz.

Commands:

User commands:

  • /color <COLOR> - Set the color of your name.
  • /color reset - Reset you name color to white.
  • /color help - Gives you a help list and color list.

Admin/op commands:

  • /color <NAME> <COLOR> - Color another user's name.
  • /color <NAME> <RESET> - Reset user's name color to white.

You can use /colour instead of /color

Permissions:

  • colorname.changecolor - Allows a player to color their name if this permission is set to false or op. Default: true
  • colorname.admin - This gives a player the admin commands. Default: op

Config:

  • colorSet - Message for players when they set their color. (%color is where the color that it was changed to goes.)
  • colorSetDefault - Message to player when they reset their color.
  • colorSetByAdminToAdmin - Message to admin when they change a player's color. (%color is where the color that it was changed to goes. %player is where the changed player's name goes)
  • colorSetByAdmin - Message sent to player when an admin changes their color. (%color is where the color that it was changed to goes.)
  • colorSetByAdminToAdminDefault - Same as colorSetByAdminToAdmin just it is for admin reset.
  • colorSetByAdminDefault - Same as colorSetDefault just it is for admin reset
  • colorDefault - This is where you can change the default color code.

Advanced: Database: If you are using a SQL data base you can use the following settings:

  • enable - Toggle the database function
  • host - The host for the SQL database. This is set as ip:port/databaseName
  • username - The user name for the database
  • password - The password for the database
  • table - The name of the table for the database For the table have two columns. uuid = VARCHAR(37) color = int
  • sharePlayerCount - Allow the plugin to send the number of players online to the plugin creator.

Essentials Conflict: If you have essentials on your server you may have a bit of trouble getting the name colors to change. To avoid this simply go into the essentials config and make "change-displayname: false"

How to use the Config:

How to use permissions:

How to download and use:

Donate

Metrics

This plugin sends statistics about the usage to the server http://mcstats.org/. To disable this go to the plugin metrics folder and in the config change the setting "opt-out" to true. Other than data being sent to mcstats, data is also being sent to my personal server. The data sent is just the player count and the port of the server. The port is combined by the ip which is discovered upon the data being sent to the server. The server ip is not released and is only for me to use to form a list of servers using this plugin. I use this list for me to select servers to play on because they have my plugin. If I am to share the ip I will join the server and contact the owner for permission. The player count is used to analyze this plugin usage. To disable this go to the plugin config and set sharePlayerCount to false.

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of forseth11 forseth11 Jan 21, 2016 at 05:38 UTC - 0 likes

    @Lahemees: Go

    Added.

    http://gallifreycraft.com/images/banner.gif
    Join GallifreyCraft: play.GallifreyCraft.com

  • Avatar of Lahemees Lahemees Jun 20, 2015 at 16:14 UTC - 0 likes

    Can you add an option to save player's colors to MySQL database? It would be perfect!

  • Avatar of k4rshh k4rshh Jun 02, 2015 at 18:58 UTC - 0 likes

    Congratulations on the plugin. (: It would be nice to give us a list of colour datas...!

  • Avatar of Henaminator Henaminator Mar 25, 2015 at 20:39 UTC - 0 likes

    @Henaminator: Go

    I found the bug, when I do change-displayname: false it seem to work, but i loose my groupmanager prefix then :/

  • Avatar of Henaminator Henaminator Mar 25, 2015 at 20:36 UTC - 0 likes

    @forseth11: Go

    I have tried that still dosent seem to be working :/

  • Avatar of forseth11 forseth11 Mar 17, 2015 at 20:08 UTC - 0 likes

    @Henaminator: Go

    Make sure that no other plugin is overriding color name. Essentials commonly overrides it. If your name is red then change the op color name in the essentials config to "".

  • Avatar of Henaminator Henaminator Mar 17, 2015 at 20:05 UTC - 0 likes

    Dosent work please help im using essentials and groupamanager, when i do /color <color> it says that my name color has changed but it dosent when i write something in the chat D:

  • Avatar of AggePagg AggePagg Aug 02, 2014 at 10:58 UTC - 0 likes

    Hello, i discovered a bug with your plugin. When you want to remove someone elses namecolor from the console it wont work. This is the error that pops up in the console when it happens:

    13:00:38 CONSOLE: WARN]: Unexpected exception while parsing console command "color aggepagg reset"
    13:00:38 CONSOLE: exception executing command 'color' in plugin ColorName v1.2.0
    13:00:38 CONSOLE: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_7_R3.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player
    

    Could you please fix this? I really need it fixed! :)

    Also when you do ''/color rainbow'' you get the rainbowy name and a red text on the messages you send in the chat. However after you relog, the red text on the messages you send will become white. That is nothing that bothers me much, but thought i'd just share it anyway.

    Last edited Aug 02, 2014 by AggePagg
  • Avatar of forseth11 forseth11 Mar 14, 2014 at 02:43 UTC - 0 likes

    @Dandamann312: Go That spelling is just for the plugin to check the config to check for information on players. It does not matter. If you want to update this plugin I am fine with sending you the source. All my public Bukkit plugins are junk. I make custom plugins for both my server and others who pay me.

  • Avatar of Dandamann312 Dandamann312 Mar 13, 2014 at 21:39 UTC - 0 likes

    Hey There,

    This is a nice plugin and works fine, one suggestion, maybe make default colour configurable. I have had a quick look through your source-code and it looks easy enough to implement. For now have manually modified your source and rebuilt it changing the reset command to set default to blue.

    Also I found a minor spelling mistake in your code that doesn't seem to affect anything but thought you may want to know about it

    if(args[0].equalsIgnoreCase("DARK_AQUA")){
        cor = true;
        currentColor = "DRAK_AQUA";
        refresh();
        String playerN = player.getName();
        player.sendMessage(ChatColor.GREEN + message[0]);
        player.setDisplayName(ChatColor.DARK_AQUA + playerN+ ChatColor.WHITE);
    }
    

    Should be

    if(args[0].equalsIgnoreCase("DARK_AQUA")){
        cor = true;
        currentColor = "DARK_AQUA";
        refresh();
        String playerN = player.getName();
        player.sendMessage(ChatColor.GREEN + message[0]);
        player.setDisplayName(ChatColor.DARK_AQUA + playerN+ ChatColor.WHITE);
    }
    

    Thanks, Dan

Facts

Date created
Mar 26, 2013
Category
Last update
Jul 04, 2016
Development stage
Mature
Language
  • enUS
License
All Rights Reserved
Curse link
ColorName
Downloads
33,253
Recent files

Authors