Package org.getspout.spoutapi.player

Examples of org.getspout.spoutapi.player.SpoutPlayer


  public void run(int playerId) {
    Plugin plugin = Bukkit.getPluginManager().getPlugin(this.plugin);

    File preCache = PrecacheManager.getPluginCacheZip(plugin);
    if (preCache.exists()) {
      SpoutPlayer player = SpoutManager.getPlayerFromId(playerId);
      if (player != null) {
        player.sendImmediatePacket(new MCCraftPacket0KeepAlive());
        player.sendPacket(new PacketSendPrecache(plugin, preCache));
      }
    }
  }
View Full Code Here


    output.writeString(text);
  }

  @Override
  public void run(int playerId) {
    SpoutPlayer player = SpoutManager.getPlayerFromId(playerId);
    player.setClipboardText(text, false);
  }
View Full Code Here

TOP

Related Classes of org.getspout.spoutapi.player.SpoutPlayer

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.