Add toString methods to all relevant classes

This commit is contained in:
games647
2018-02-24 20:43:18 +01:00
parent 2bdd051a41
commit 06bb4b80dd
10 changed files with 87 additions and 9 deletions
@@ -31,4 +31,13 @@ public class BungeeLoginSession extends LoginSession {
public void setAlreadyLogged(boolean alreadyLogged) {
this.alreadyLogged = alreadyLogged;
}
@Override
public String toString() {
return this.getClass().getSimpleName() + '{' +
"alreadySaved=" + alreadySaved +
", alreadyLogged=" + alreadyLogged +
", registered=" + registered +
"} " + super.toString();
}
}
@@ -33,4 +33,11 @@ public class BungeeLoginSource implements LoginSource {
public PendingConnection getConnection() {
return connection;
}
@Override
public String toString() {
return this.getClass().getSimpleName() + '{' +
"connection=" + connection +
'}';
}
}