From 9796dbca4c64c689fd14d89fcd93d35f8110f348 Mon Sep 17 00:00:00 2001 From: TheKaVu Date: Tue, 23 May 2023 09:29:59 +0200 Subject: [PATCH] Changed playerCount to Set of players and renamed to players in PlayerLeaveGameEvent (#30) --- .../dev/kavu/gameapi/event/PlayerLeaveGameEvent.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/java/dev/kavu/gameapi/event/PlayerLeaveGameEvent.java b/src/main/java/dev/kavu/gameapi/event/PlayerLeaveGameEvent.java index 1121bd9..9be322a 100644 --- a/src/main/java/dev/kavu/gameapi/event/PlayerLeaveGameEvent.java +++ b/src/main/java/dev/kavu/gameapi/event/PlayerLeaveGameEvent.java @@ -4,19 +4,21 @@ import org.bukkit.entity.Player; import org.bukkit.event.HandlerList; +import java.util.Set; + public class PlayerLeaveGameEvent extends PlayerGameEvent { private static final HandlerList handlers = new HandlerList(); - private final int playerCount; + private final Set players; - public PlayerLeaveGameEvent(GameType gameType, Player player, int playerCount) { + public PlayerLeaveGameEvent(GameType gameType, Player player, Set players) { super(gameType, player); - this.playerCount = playerCount; + this.players = players; } - public int getPlayerCount() { - return playerCount; + public Set getPlayers() { + return players; } @Override