Hey! I'm working on a project where i need to get the amount of all online players. What i'm doing is calling the getOnlinePlayers()-method and checking the length of it(.length), but it always gives me an NPE. Any ideas? It should not be null. It even returns null when there are players online, and an integer should not return null either.