pyCraft/minecraft/networking/packets/plugin_message_packet.py
joo adc8d15ddc Add support for Minecraft 1.13 and 1.13-pre3 to pre10 (protocols 385 to 393).
Add clientbound.login.PluginRequestPacket and serverbound.login.PluginResponsePacket.
2018-07-19 09:50:13 +01:00

13 lines
465 B
Python

from .packet import Packet
from minecraft.networking.types import String, TrailingByteArray
class AbstractPluginMessagePacket(Packet):
"""NOTE: Plugin channels were significantly changed, including changing the
names of channels, between Minecraft 1.12 and 1.13 - see <http://wiki.vg
/index.php?title=Pre-release_protocol&oldid=14132#Plugin_Channels>.
"""
definition = [
{'channel': String},
{'data': TrailingByteArray}]