Skip to content

Commit

Permalink
Added GameEvent.java class (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheKaVu committed May 23, 2023
1 parent 3f67f30 commit 7cc12c3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/java/dev/kavu/gameapi/event/GameEvent.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package dev.kavu.gameapi.event;

import dev.kavu.gameapi.game.GameType;
import org.bukkit.event.Event;

public abstract class GameEvent extends Event {

private final GameType gameType;

public GameEvent(GameType gameType) {
this.gameType = gameType;
}

public GameType getGameType() {
return gameType;
}
}

0 comments on commit 7cc12c3

Please sign in to comment.