mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 11:44:42 +02:00
Don't provide direct access to the players map.
This commit is contained in:
@ -1,8 +1,10 @@
|
||||
package com.gmail.nossr50.util.player;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import org.bukkit.OfflinePlayer;
|
||||
import org.bukkit.entity.Player;
|
||||
@ -61,8 +63,12 @@ public final class UserManager {
|
||||
}
|
||||
}
|
||||
|
||||
public static Map<String, McMMOPlayer> getPlayers() {
|
||||
return players;
|
||||
public static Set<String> getPlayerNames() {
|
||||
return players.keySet();
|
||||
}
|
||||
|
||||
public static Collection<McMMOPlayer> getPlayers() {
|
||||
return players.values();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user