Class GameFinishedEvent
- java.lang.Object
-
- org.kikikan.deadbymoonlight.events.Event
-
- org.kikikan.deadbymoonlight.events.world.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 (likegetPerkUser()
) which will cause aNullPointerException
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)
-
-
-
Constructor Detail
-
GameFinishedEvent
public GameFinishedEvent(Game game, boolean isForceful)
-
-