Beispiel #1
0
 public override void HandlePacket(MinecraftServer Server, ref MinecraftClient Client)
 {
     Server.Log("<" + Client.Username + "> " + Message);
     ChatMessageEventArgs args = new ChatMessageEventArgs(Client, Message);
     Server.FireOnChatMessage(args);
     if (!args.Handled)
         Server.SendChat("<" + Client.Username + "> " + Message);
 }
Beispiel #2
0
 public override void HandlePacket(MinecraftServer server, MinecraftClient client)
 {
     server.Log("<" + client.Username + "> " + Message);
     var args = new ChatMessageEventArgs(client, Message);
     server.FireOnChatMessage(args);
     if (!args.Handled)
         server.SendChat("<" + client.Username + "> " + Message);
 }