-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c532229
commit 947e6d8
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
9 changes: 5 additions & 4 deletions
9
src/main/java/io/github/projecthsi/mobarena/containers/PlayerContainer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
package io.github.projecthsi.mobarena.containers; | ||
|
||
import io.github.projecthsi.mobarena.arena.Arena; | ||
import org.bukkit.entity.Player; | ||
|
||
import java.util.ArrayList; | ||
import java.util.HashMap; | ||
|
||
public class PlayerContainer { | ||
private static ArrayList<Player> trackedPlayers = new ArrayList<>(); | ||
private static HashMap<Player, Arena> trackedPlayers = new HashMap<>(); | ||
|
||
public static void setTrackedPlayers(ArrayList<Player> newTrackedPlayers) { | ||
public static void setTrackedPlayers(HashMap<Player, Arena> newTrackedPlayers) { | ||
trackedPlayers = newTrackedPlayers; | ||
} | ||
|
||
public static ArrayList<Player> getTrackedPlayers() { | ||
public static HashMap<Player, Arena> getTrackedPlayers() { | ||
return trackedPlayers; | ||
} | ||
} |