mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Update GlobalMethods and PlayerMethods
Add KickPlayer reason for Trinity
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user