mirror of
https://github.com/array-in-a-matrix/brainwine.git
synced 2025-04-02 11:11:58 -04:00
Add getConnection() method to Player class
This commit is contained in:
parent
3a4abfadc6
commit
4437acbaed
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue