Skip to content

Commit

Permalink
Optimize PlayerContainer.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ProjectHSI committed Oct 25, 2023
1 parent c532229 commit 947e6d8
Showing 1 changed file with 5 additions and 4 deletions.
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;
}
}

0 comments on commit 947e6d8

Please sign in to comment.