Package org.getspout.spoutapi.event.screen

Examples of org.getspout.spoutapi.event.screen.ScreenshotReceivedEvent


    }
    try {
      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

Related Classes of org.getspout.spoutapi.event.screen.ScreenshotReceivedEvent

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.