Simplify command handling

This commit is contained in:
games647
2018-03-11 11:47:02 +01:00
parent a29dd849f9
commit 61c1364506
15 changed files with 207 additions and 142 deletions
@@ -49,4 +49,13 @@ public class ChangePremiumMessage implements ChannelMessage {
output.writeUTF(playerName);
output.writeBoolean(isSourceInvoker);
}
@Override
public String toString() {
return this.getClass().getSimpleName() + '{' +
"playerName='" + playerName + '\'' +
", willEnable=" + willEnable +
", isSourceInvoker=" + isSourceInvoker +
'}';
}
}
@@ -19,4 +19,9 @@ public class SuccessMessage implements ChannelMessage {
public void writeTo(ByteArrayDataOutput output) {
//empty
}
@Override
public String toString() {
return this.getClass().getSimpleName() + "{}";
}
}