Change string representation of TagsPacket
This commit is contained in:
parent
20e054c0f8
commit
d067be39c8
1 changed files with 4 additions and 1 deletions
|
@ -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())})"
|
||||||
|
}
|
||||||
|
|
Reference in a new issue