}
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();
}