Initial commit

This commit is contained in:
NOTPIES
2026-03-15 22:25:51 -03:00
commit c356c7b911
100 changed files with 8788 additions and 0 deletions

18
Commands/MeCommand.cpp Normal file
View File

@@ -0,0 +1,18 @@
#include "stdafx.h"
#include "MeCommand.h"
#include "../../Minecraft.Client/MinecraftServer.h"
#include "../../Minecraft.Client/ConsoleInputSource.h"
#include "../../Minecraft.Client/PlayerList.h"
#include "../../Minecraft.World/ChatPacket.h"
void MeCommand::execute(const wstring& args, ConsoleInputSource *src, MinecraftServer *server)
{
if (args.empty())
{
src->warn(L"Usage: /me <action ...>");
return;
}
wstring msg = L"* Server " + args;
server->getPlayers()->broadcastAll(shared_ptr<Packet>(new ChatPacket(msg)));
src->info(msg);
}