Yes, I just want to know if a player enters a server (multiplayer) and get data from the server, such as the host, connected users, maximum number of players and those things
It works, thanks, but the event "PlayerLoggedInEvent" is not launched, I probe it using the chat event to check and that way it works, but I want to detect when it enters a server or even a world (single player)
ServerLifecycleHooks.getCurrentServer();
Returns null values if the player is on a multiplayer server
Well, I want to obtain the data of the server in which the user is connected, I found some help post but they do not work for me, I think it is different in 1.13.2
Hi, I want to get the information of the server the player is on, try "PlayerEvent.PlayerLoggedInEvent" to get the server with "player.getServer();" but returns null
7 replies
Important Information
By using this site, you agree to our Terms of Use.