Solved Need help with coloring

Discussion in 'Plugin Development' started by zPetersenz, May 27, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    zPetersenz

    Hello eveyone.
    I'm new to make plugins, and i need some help.

    Is there any way i can color the command that say "/Facebook"?

    [​IMG]

    This is my code.

    Code:java
    1. if (cmd.getName().equalsIgnoreCase("Facebook") && sender instanceof Player) {


    I hope someone can help me :)
     
  2. Offline

    Aengo

    zPetersenz
    Code:java
    1. Player player = (Player) sender;
    2. player.sendMessage(ChatColor.GREEN + "Colored text..");

    Is that what you mean?
     
  3. Offline

    HeadGam3z

    Aengo
    I think he's talking about Bukkit's /help command/plugin list. He wants to know if he can color the title of a command/plugin in the /help list.
     
  4. Offline

    zPetersenz

    Well it didn't work for me.

    My code looks like this, after i inserted ChatColor.GREEN

    Code:java
    1. if (cmd.getName().equalsIgnoreCase(ChatColor.GREEN + "Facebook") && sender instanceof Player)


    As you can at the picture it didn't work.. :l
    [​IMG]
     
  5. Offline

    Aengo

    Oh my bad, the picture refused to load.

    zPetersenz have you tried adding this ยง to your description?

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

    1Achmed1

    No, you cannot without creating your own help menu based off of the original bukkit open source, but specifically recolor your command.

    Aengo No, we wants the actual command to be colored, not the description (I think)

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

    zPetersenz

    Okay, thanks for the help.
     
Thread Status:
Not open for further replies.

Share This Page