mirror of
https://github.com/plexusorg/Plex.git
synced 2025-06-29 14:56:43 +00:00
Begin fixing command system
This commit is contained in:
@ -172,12 +172,7 @@ public class PlexUtils
|
||||
|
||||
public static List<String> getPlayerNameList()
|
||||
{
|
||||
List<String> names = new ArrayList<>();
|
||||
for (Player player : Bukkit.getOnlinePlayers())
|
||||
{
|
||||
names.add(player.getName());
|
||||
}
|
||||
return names;
|
||||
return Bukkit.getOnlinePlayers().stream().map(Player::getName).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
public static void broadcast(String s)
|
||||
|
Reference in New Issue
Block a user