Browse Source

Added RenX_OnServerCreate event to RenX::Plugin.

pull/3/head
JustinAJ 10 years ago
parent
commit
2ea4f81e37
  1. BIN
      Release/Plugins/RenX.Core.lib
  2. 5
      RenX.Core/RenX_Plugin.cpp
  3. 1
      RenX.Core/RenX_Plugin.h
  4. 3
      RenX.Core/RenX_Server.cpp

BIN
Release/Plugins/RenX.Core.lib

Binary file not shown.

5
RenX.Core/RenX_Plugin.cpp

@ -60,6 +60,11 @@ void RenX::Plugin::RenX_OnPlayerUUIDChange(Server *, const RenX::PlayerInfo *, c
return;
}
void RenX::Plugin::RenX_OnServerCreate(Server *)
{
return;
}
bool RenX::Plugin::RenX_OnBan(Server *, const RenX::PlayerInfo *, Jupiter::StringType &)
{
return false;

1
RenX.Core/RenX_Plugin.h

@ -46,6 +46,7 @@ namespace RenX
virtual void RenX_OnPlayerCreate(Server *server, const PlayerInfo *player);
virtual void RenX_OnPlayerDelete(Server *server, const PlayerInfo *player);
virtual void RenX_OnPlayerUUIDChange(Server *server, const PlayerInfo *player, const Jupiter::ReadableString &newUUID);
virtual void RenX_OnServerCreate(Server *server);
virtual bool RenX_OnBan(Server *server, const PlayerInfo *player, Jupiter::StringType &data);
/** Player type logs */

3
RenX.Core/RenX_Server.cpp

@ -2232,6 +2232,9 @@ RenX::Server::Server(const Jupiter::ReadableString &configurationSection)
RenX::Server::configSection = configurationSection;
RenX::Server::calc_uuid = default_uuid_func;
init();
Jupiter::ArrayList<RenX::Plugin> &xPlugins = *RenX::getCore()->getPlugins();
for (size_t i = 0; i < xPlugins.size(); i++)
xPlugins.get(i)->RenX_OnServerCreate(this);
}
void RenX::Server::init()

Loading…
Cancel
Save