From c7658647fc9d6464bbbf705232105ae2b0c88137 Mon Sep 17 00:00:00 2001 From: ayunami2000 Date: Sun, 17 Apr 2022 19:44:42 -0400 Subject: [PATCH] fix list --- src/main/java/dev/plex/request/impl/ListEndpoint.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/dev/plex/request/impl/ListEndpoint.java b/src/main/java/dev/plex/request/impl/ListEndpoint.java index c9ae9f1..567f257 100644 --- a/src/main/java/dev/plex/request/impl/ListEndpoint.java +++ b/src/main/java/dev/plex/request/impl/ListEndpoint.java @@ -13,11 +13,10 @@ import org.bukkit.entity.Player; public class ListEndpoint extends AbstractServlet { - List players = new ArrayList<>(); - @GetMapping(endpoint = "/api/list/") public String getOnlinePlayers(HttpServletRequest request, HttpServletResponse response) { + List players = new ArrayList<>(); for (Player player : Bukkit.getOnlinePlayers()) { players.add(player.getName());