diff --git a/GlobalMethods.h b/GlobalMethods.h index 6e4db30..26a4e5d 100644 --- a/GlobalMethods.h +++ b/GlobalMethods.h @@ -1926,7 +1926,11 @@ namespace LuaGlobalFunctions int Kick(lua_State* L) { Player* player = Eluna::CHECKOBJ(L, 1); +#ifdef TRINITY + player->GetSession()->KickPlayer("GlobalMethods::Kick Kick the player"); +#else player->GetSession()->KickPlayer(); +#endif return 0; } diff --git a/PlayerMethods.h b/PlayerMethods.h index d8416d0..10e9034 100644 --- a/PlayerMethods.h +++ b/PlayerMethods.h @@ -3629,7 +3629,11 @@ namespace LuaPlayer */ int KickPlayer(lua_State* /*L*/, Player* player) { +#ifdef TRINITY + player->GetSession()->KickPlayer("PlayerMethods::KickPlayer Kick the player"); +#else player->GetSession()->KickPlayer(); +#endif return 0; }