a Minecraft server software
from classes import HomuraServerProtocol
class HomuraMCPluginBackends():
@staticmethod
def getPluginName():
return "MyCoolPlugin"
@staticmethod
def getPluginDescription():
return "MyCoolPlugin by nennneko5787"
@staticmethod
def getPluginAuthors():
return ["me"]
@staticmethod
def getPluginVersion():
return "0.0.1"
class HomuraMCPlugin():
@staticmethod
def onChat(self,p_text):
if p_text == "hello":
self.send_packet('title',
self.buff_type.pack_varint(0),
self.buff_type.pack_chat(f"§aHello {self.display_name}"),
)