Simplify command handling

This commit is contained in:
games647 committed 2018-03-11 11:47:02 +01:00
1 parent a29dd849f9
commit 61c1364506
15 files changed
+207 -142

No files matched your search

+1 -1
View File
@@ -66,7 +66,7 @@
<dependency>
<groupId>com.github.games647</groupId>
<artifactId>craftapi</artifactId>
<version>0.1</version>
<version>0.1.3</version>
</dependency>
<!-- APIs we can use because they are available in all platforms (Spigot, Bungee, Cauldron) -->
@@ -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() + "{}";
}
}