Archived
1
0
Fork 0

Change string representation of TagsPacket

This commit is contained in:
Moritz Ruth 2021-01-02 01:11:36 +01:00
parent 20e054c0f8
commit d067be39c8
No known key found for this signature in database
GPG key ID: AFD57E23E753841B

View file

@ -2,8 +2,11 @@ package space.blokk.net.packet.play
import space.blokk.net.packet.OutgoingPacket import space.blokk.net.packet.OutgoingPacket
import space.blokk.tag.Tag import space.blokk.tag.Tag
import space.blokk.util.pluralizeWithCount
/** /**
* Sent by the server while the player is joining. * Sent by the server while the player is joining.
*/ */
data class TagsPacket(val tags: Iterable<Tag>) : OutgoingPacket() data class TagsPacket(val tags: Iterable<Tag>) : OutgoingPacket() {
override fun toString(): String = "TagsPacket(${pluralizeWithCount("tag", tags.count())})"
}