Browse Source

Added support for PLAYER "Command;" log (currently only used by DevBot).

pull/3/head
Jessica James 8 years ago
parent
commit
ff92356af0
  1. BIN
      Release/Plugins/RenX.Core.lib
  2. 8
      RenX.Core/RenX_Server.cpp

BIN
Release/Plugins/RenX.Core.lib

Binary file not shown.

8
RenX.Core/RenX_Server.cpp

@ -2728,6 +2728,14 @@ void RenX::Server::processLine(const Jupiter::ReadableString &line)
for (size_t i = 0; i < xPlugins.size(); i++) for (size_t i = 0; i < xPlugins.size(); i++)
xPlugins.get(i)->RenX_OnSpeedHack(this, player); xPlugins.get(i)->RenX_OnSpeedHack(this, player);
} }
else if (subHeader.equals("Command;"))
{
// Player | Command
RenX::PlayerInfo *player = parseGetPlayerOrAdd(tokens.getToken(2));
Jupiter::ReferenceString message = gotoToken(3);
this->triggerCommand(Jupiter::ReferenceString::getWord(message, 0, WHITESPACE), player, Jupiter::ReferenceString::gotoWord(message, 1, WHITESPACE));
}
else else
{ {
Jupiter::ReferenceString raw = gotoToken(1); Jupiter::ReferenceString raw = gotoToken(1);

Loading…
Cancel
Save