getConfig() Colors?

Discussion in 'Plugin Development' started by jkjames6, Feb 14, 2014.

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

    jkjames6

  2. Offline

    Arcoz

    Code:java
    1. String name = ChatColor.translateAlternateColorCodes('&', getConfig().getString("name"));

    Code:java
    1. Bukkit.broadcastMessage(name));
     
  3. Offline

    ItsLeandro

    You should try what Arcoz said, if it doesn't work for you for some kind of reason. Tell us :D
     
  4. Offline

    jkjames6

  5. Offline

    Arcoz

    jkjames6

    Be sure to use ' ' in your config so

    name: '&f<&6[&eBOT&6]&7_Firework&f'
     
  6. Offline

    jkjames6

    Arcoz Thanks :)

    Arcoz One more thing... Nothing happens when i do !welcome :/

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

    Arcoz

    jkjames6


    Change
    Code:
    public class spam extends JavaPlugin {
    to
    Code:
    public class spam extends JavaPlugin implements Listener {
    And then enable events on enable
    Code:java
    1. Bukkit.getPluginManager().registerEvents(this, this);
     
Thread Status:
Not open for further replies.

Share This Page