Question § Not working with intellij idea

Discussion in 'General Help' started by Misteroid, Apr 9, 2015.

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

    Misteroid

    Title pretty much says it all
    (here is what it looks like for me)
     
  2. Offline

    nverdier

    @Misteroid Please post code. The IDE shouldn't matter.
     
  3. Offline

    Misteroid

    Code:
        public void autoMessage(){
           this.getServer().getScheduler().runTaskTimer(this, new Runnable(){
    
               @Override
               public void run(){
    
                   Bukkit.broadcastMessage("§7§l[§4§lYou§f§ltube§7§l] §6Check out ours youtubers with §b§/youtube");
    
               }
    
    
           }, 20, 20);
        }
    
    it doesn't do it with eclipse, but i want to try a new ide
     
  4. Offline

    nverdier

    @Misteroid Try using ChatColor.<COLOR> instead of §<colorcode>.
     
  5. Offline

    Misteroid

    I tried that also, it didnt work either.
     
  6. Offline

    Gater12

    @Misteroid
    What do you mean 'it did not work'?
     
  7. Offline

    Misteroid

    The colors didnt show up
     
  8. Offline

    Gater12

    @Misteroid
    What version of Craftbukkit are you running? Do colors from other plugins work?
     
  9. Offline

    Misteroid

    craftbukkit 1.8.3 only that that one plugin installed
     
  10. Offline

    dsouzamatt

    There are no 1.8 versions of Craftbukkit. Are you using Spigot?
     
  11. Offline

    Misteroid

    Spigots compile of craftbukkit 1.8.3
     
  12. Moved to Bukkit Alternates
     
  13. Offline

    oceantheskatr

    Replace

    Bukkit.broadcastMessage("§7§l[§4§lYou§f§ltube§7§l] §6Check out ours youtubers with §b§/youtube");

    with
    Code:
    Bukkit.broadcastMessage("" + ChatColor.GRAY + ChatColor.BOLD + "[" + ChatColor.DARK_RED + ChatColor.BOLD + "You" + ChatColor.WHITE + ChatColor.BOLD + "Tube" + ChatColor.GRAY + ChatColor.BOLD + "]" + ChatColor.GOLD + " Check out our YouTubers with" + ChatColor.AQUA + ChatColor.BOLD + " /youtube" + ChatColor.GOLD + ".");

    Alternatively, you can do it this way:
    Code:
    String yt = "&7&l[&4&lYou&f&lTube&7&l] &6Check out our YouTubers with &b&l/youtube&6.";
    yt = ChatColor.translateAlternateColorCodes('&', yt);
    Bukkit.broadcastMessage(yt);
     
Thread Status:
Not open for further replies.

Share This Page