Package org.getspout.spoutapi.player

Examples of org.getspout.spoutapi.player.SpoutPlayer.sendNotification()


      ByteArrayInputStream bais = new ByteArrayInputStream(ssAsPng);
      BufferedImage ss = ImageIO.read(bais);
      SpoutPlayer sp = SpoutManager.getPlayerFromId(playerId);
      ScreenshotReceivedEvent sre = new ScreenshotReceivedEvent(sp, ss);
      Bukkit.getServer().getPluginManager().callEvent(sre);
      sp.sendNotification("Sending screenshot...", "Screenshot received", Material.PAINTING);
    } catch (IOException ioe) {
      ioe.printStackTrace();
    }
  }
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.