package org.stevewinfield.suja.idk.game.plugins;

import org.stevewinfield.suja.idk.Bootloader;
import org.stevewinfield.suja.idk.game.rooms.RoomInstance;
import org.stevewinfield.suja.idk.network.sessions.Session;

public class PluginHelper {
    public Object[] getActiveSessions() {
        return Bootloader.getSessionManager().getSessions().toArray();
    }

    public Object[] getRoomPlayers(final RoomInstance room) {
        return room.getRoomPlayers().values().toArray();
    }
}

@@ -148,16 +148,73 @@
 stance;%0A
+import org.stevewinfield.suja.idk.game.rooms.RoomPlayer;%0A
 import o
@@ -301,30 +301,38 @@
 %0A    public 
-Object
+static Session
 %5B%5D getActive
@@ -404,32 +404,96 @@
 sions().toArray(
+new Session%5BBootloader.getSessionManager().getSessions().size()%5D
 );%0A    %7D%0A%0A    pu
@@ -501,14 +501,25 @@
 lic 
-Object
+static RoomPlayer
 %5B%5D g
@@ -613,16 +613,69 @@
 toArray(
+new RoomPlayer%5Broom.getRoomPlayers().values().size()%5D
 );%0A    %7D

Fix PluginHelper