Merge pull request #308 from RedSkull-666/master

Update GlobalMethods and PlayerMethods
This commit is contained in:
Rochet2
2020-04-10 00:18:34 +03:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@@ -1926,7 +1926,11 @@ namespace LuaGlobalFunctions
int Kick(lua_State* L)
{
Player* player = Eluna::CHECKOBJ<Player>(L, 1);
#ifdef TRINITY
player->GetSession()->KickPlayer("GlobalMethods::Kick Kick the player");
#else
player->GetSession()->KickPlayer();
#endif
return 0;
}

View File

@@ -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;
}