Fix some compiler warnings

This commit is contained in:
md_5
2017-10-28 17:08:05 +11:00
parent 4e2897710b
commit 0fc5694b6a
11 changed files with 21 additions and 18 deletions

View File

@@ -10,6 +10,7 @@ import joptsimple.OptionParser;
import joptsimple.OptionSet;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.ProxyServer;
import net.md_5.bungee.api.chat.ComponentBuilder;
import net.md_5.bungee.command.ConsoleCommandSender;
public class BungeeCordLauncher
@@ -61,7 +62,7 @@ public class BungeeCordLauncher
{
if ( !bungee.getPluginManager().dispatchCommand( ConsoleCommandSender.getInstance(), line ) )
{
bungee.getConsole().sendMessage( ChatColor.RED + "Command not found" );
bungee.getConsole().sendMessage( new ComponentBuilder( "Command not found" ).color( ChatColor.RED ).create() );
}
}
}