Add getConnection() method to Player class

This commit is contained in:
kuroppoi 2022-04-10 17:48:34 +02:00
parent 3a4abfadc6
commit 4437acbaed

View file

@ -723,6 +723,10 @@ public class Player extends Entity implements CommandExecutor {
this.connection = connection;
}
public Connection getConnection() {
return connection;
}
public boolean isOnline() {
return connection != null && connection.isOpen();
}