Update GlobalMethods and PlayerMethods

Add KickPlayer reason for Trinity
This commit is contained in:
RedSkull-666
2020-04-09 11:07:47 +02:00
parent 082be57c01
commit 2cdf63d45f
2 changed files with 8 additions and 0 deletions

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