Package org.getspout.spout.player

Examples of org.getspout.spout.player.SpoutCraftPlayer


    ((SimpleSkyManager) SpoutManager.getSkyManager()).reset();
    ((SimplePlayerChunkMap) SpoutManager.getPlayerChunkMap()).onPluginDisable();
    Player[] online = getServer().getOnlinePlayers();
    for (Player player : online) {
      try {
        SpoutCraftPlayer scp = (SpoutCraftPlayer) SpoutCraftPlayer.getPlayer(player);
        scp.resetMovement();
        if (scp.isSpoutCraftEnabled()) {
          scp.sendPacket(new PacketRenderDistance(true, true));
        }
      } catch (Exception e) {
        e.printStackTrace();
      }
    }
View Full Code Here


        int ticksLeft = timer.get(player.getName());
        if (--ticksLeft > 0) {
          timer.put(player.getName(), ticksLeft);
        } else {
          timer.remove(player.getName());
          SpoutCraftPlayer scp = (SpoutCraftPlayer)SpoutManager.getPlayer(player);
          Bukkit.getServer().getPluginManager().callEvent(new SpoutcraftFailedEvent(scp));
          scp.queued = null;
          if (player.hasPermission("spout.plugin.ignorespoutcraft")) {
            break;
          }
View Full Code Here

    if (chat.trim().isEmpty()) {
      return;
    }
    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.");
        warning.setX(100).setY(100).setPriority(RenderPriority.Lowest);
        player.getMainScreen().attachWidget(Spout.getInstance(), warning);
      }
      return;
    }
    super.a(packet);
  }
View Full Code Here

TOP

Related Classes of org.getspout.spout.player.SpoutCraftPlayer

Copyright © 2018 www.massapicom. 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.