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

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