Package org.getspout.spoutapi.packet

Examples of org.getspout.spoutapi.packet.PacketScreenAction


    ScreenCloseEvent event = new ScreenCloseEvent(player, getActivePopup(), ScreenType.CUSTOM_SCREEN);
    Bukkit.getServer().getPluginManager().callEvent(event);
    if (event.isCancelled()) {
      return false;
    }
    player.sendImmediatePacket(new PacketScreenAction(ScreenAction.Close, ScreenType.CUSTOM_SCREEN));
    activePopup = null;
    player.openScreen(ScreenType.GAME_SCREEN, false);
    return true;
  }
View Full Code Here

TOP

Related Classes of org.getspout.spoutapi.packet.PacketScreenAction

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.