Package org.getspout.spout.player

Examples of org.getspout.spout.player.SpoutCraftPlayer.sendMessage()


    }
    if (!allowReload && chat.equalsIgnoreCase("/reload")) {
      allowReload = true;
      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 {
View Full Code Here


    if (!allowReload && chat.equalsIgnoreCase("/reload")) {
      allowReload = true;
      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.");
View Full Code Here

      allowReload = true;
      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);
View Full Code Here

      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);
View Full Code Here

      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);
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.