feat: toString() for data classes and some other more

This commit is contained in:
ChomeNS
2024-12-07 18:25:01 +07:00
parent 1afcfde5e5
commit 1d3b51cd3f
10 changed files with 91 additions and 13 deletions

View File

@@ -300,6 +300,16 @@ public class Bot {
listeners.add(listener);
}
@Override
public String toString() {
return "Bot{" +
"host='" + host + '\'' +
", port=" + port +
", username='" + username + '\'' +
", loggedIn=" + loggedIn +
'}';
}
public static class Listener extends SessionAdapter {
public void connecting () {}
public void loadedPlugins () {}