forked from mirrors/kolyah35-minecraft-pe-0.6.1
login plugin works yoy
This commit is contained in:
parent
d9dfff3339
commit
f93521a879
5 changed files with 55 additions and 31 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue