Class GameFinishedEvent


  • public class GameFinishedEvent
    extends Event
    Called after a Game has ended. A Game can be shut down forcefully by the Server stopping, or by a Creator wanting to edit it. You should handle this event especially if you work with Cooldowns, since they might use soon-to-be-deleted references (like getPerkUser()) which will cause a NullPointerException to be thrown.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean isForceful
      True if the Game ended forcefully.
    • Constructor Summary

      Constructors 
      Constructor Description
      GameFinishedEvent​(Game game, boolean isForceful)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • isForceful

        public final boolean isForceful
        True if the Game ended forcefully.
    • Constructor Detail

      • GameFinishedEvent

        public GameFinishedEvent​(Game game,
                                 boolean isForceful)