diff --git a/src/main/java/org/geysermc/connect/extension/GeyserConnect.java b/src/main/java/org/geysermc/connect/extension/GeyserConnect.java index 9e9a989..be5dec6 100644 --- a/src/main/java/org/geysermc/connect/extension/GeyserConnect.java +++ b/src/main/java/org/geysermc/connect/extension/GeyserConnect.java @@ -48,6 +48,7 @@ import org.geysermc.geyser.session.GeyserSession; import java.util.Arrays; +import java.util.List; import java.util.stream.Collectors; public class GeyserConnect implements Extension { @@ -159,7 +160,7 @@ public void onCommandDefine(GeyserDefineCommandsEvent event) { return; } - GeyserSession[] sessions = getGeyserSessions(); + List sessions = getGeyserSessions(); switch (type) { case "chat": @@ -231,7 +232,7 @@ public void onCommandDefine(GeyserDefineCommandsEvent event) { .build()); } - private GeyserSession[] getGeyserSessions() { - return this.geyserApi().onlineConnections().stream().map(connection -> (GeyserSession) connection).toList() + private List getGeyserSessions() { + return this.geyserApi().onlineConnections().stream().map(connection -> (GeyserSession) connection).toList(); } } \ No newline at end of file