Class GameEndEvent


  • public class GameEndEvent
    extends org.bukkit.event.Event
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.bukkit.event.Event

        org.bukkit.event.Event.Result
    • Constructor Summary

      Constructors 
      Constructor Description
      GameEndEvent​(IArena arena, java.util.List<java.util.UUID> winners, java.util.List<java.util.UUID> losers, ITeam teamWinner, java.util.List<java.util.UUID> aliveWinners)
      Triggered when the game ends.
    • Method Summary

      Modifier and Type Method Description
      java.util.List<java.util.UUID> getAliveWinners()
      Get a list of winners.
      IArena getArena()
      Get the arena
      static org.bukkit.event.HandlerList getHandlerList()  
      org.bukkit.event.HandlerList getHandlers()  
      java.util.List<java.util.UUID> getLosers()
      Get a list with people who played and didn't win.
      ITeam getTeamWinner()
      Get the winner team
      java.util.List<java.util.UUID> getWinners()
      Get a list of winners including eliminated teammates
      • Methods inherited from class org.bukkit.event.Event

        getEventName, isAsynchronous
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GameEndEvent

        public GameEndEvent​(IArena arena,
                            java.util.List<java.util.UUID> winners,
                            java.util.List<java.util.UUID> losers,
                            ITeam teamWinner,
                            java.util.List<java.util.UUID> aliveWinners)
        Triggered when the game ends.
    • Method Detail

      • getWinners

        public java.util.List<java.util.UUID> getWinners()
        Get a list of winners including eliminated teammates
      • getTeamWinner

        public ITeam getTeamWinner()
        Get the winner team
      • getLosers

        public java.util.List<java.util.UUID> getLosers()
        Get a list with people who played and didn't win. This includes people who leaved the game etc.
      • getArena

        public IArena getArena()
        Get the arena
      • getAliveWinners

        public java.util.List<java.util.UUID> getAliveWinners()
        Get a list of winners. Teammates killed by final kill excluded.
      • getHandlers

        public org.bukkit.event.HandlerList getHandlers()
        Specified by:
        getHandlers in class org.bukkit.event.Event
      • getHandlerList

        public static org.bukkit.event.HandlerList getHandlerList()