Skip to content

Instantly share code, notes, and snippets.

@Camotoy
Camotoy / updating.md
Last active March 23, 2023 14:04
Updating MCProtocolLib to 1.18

MCProtocolLib is moving to the same packet names that Minecraft: Java Edition uses internally. There is some steps involved, but hopefully this guide helps.

This guide is not perfect and is only based on updating Geyser to the new packet names. Please reach out in the comments or on Geyser's Discord (https://discord.gg/geysermc) for assistance.

Handshake packet: com.github.steveice10.mc.protocol.packet.handshake.client.HandshakePacket -> com.github.steveice10.mc.protocol.packet.handshake.serverbound.ClientIntentionPacket

Login packets

Rename com.github.steveice10.mc.protocol.packet.login.server. to com.github.steveice10.mc.protocol.packet.login.clientbound. Rename com.github.steveice10.mc.protocol.packet.login.client. to com.github.steveice10.mc.protocol.packet.login.serverbound.

@EvieePy
EvieePy / bot_example.py
Last active July 22, 2024 16:51
A Cogs Example for the rewrite version of - discord.py
import discord
from discord.ext import commands
import sys, traceback
"""This is a multi file example showcasing many features of the command extension and the use of cogs.
These are examples only and are not intended to be used as a fully functioning bot. Rather they should give you a basic
understanding and platform for creating your own bot.
These examples make use of Python 3.6.2 and the rewrite version on the lib.