SpoutCraftPlayer player = (SpoutCraftPlayer) SpoutCraftPlayer.getPlayer(getPlayer());
if (!player.isSpoutCraftEnabled()) {
player.sendMessage(ChatColor.RED + "Spout does not support the /reload command.");
player.sendMessage(ChatColor.RED + "Unexpected behavior may occur.");
player.sendMessage(ChatColor.RED + "We recommend using /stop and restarting.");
player.sendMessage(ChatColor.RED + "Or you can use /spout reload to reload the config.");
player.sendMessage(ChatColor.RED + "If you want to use /reload anyway, use the command again.");
} else {
Label warning = new DecayingLabel(200, ChatColor.RED + "Spout does not support the /reload command." + "\n" + ChatColor.RED + "Unexpected behavior may occur." + "\n" + ChatColor.RED + "We recommend using /stop and restarting." + " \n" + ChatColor.RED + "Or you can use /spout reload to reload the config." + "\n" + ChatColor.RED + "If you want to use /reload anyway, use the command again.");
warning.setX(100).setY(100).setPriority(RenderPriority.Lowest);
player.getMainScreen().attachWidget(Spout.getInstance(), warning);