login plugin works yoy

This commit is contained in:
2026-07-26 01:02:27 +02:00
parent d9dfff3339
commit f93521a879
5 changed files with 55 additions and 31 deletions

View File

@@ -166,9 +166,11 @@ void ServerSideNetworkHandler::handle(const RakNet::RakNetGUID& source, ChatPack
// This is a command
auto cmd = Util::stringTrim(packet->message.substr(1));
if (PluginsManager::get().emitCommands(cmd, LuaPlayer(source))) {
if (PluginsManager::get().emitCommands(cmd, source)) {
ChatPacket resp(minecraft->commandManager().execute(*minecraft, *player, cmd));
return sendPrivate(resp, source);
} else {
return;
}
}