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)
|
int Kick(lua_State* L)
|
||||||
{
|
{
|
||||||
Player* player = Eluna::CHECKOBJ<Player>(L, 1);
|
Player* player = Eluna::CHECKOBJ<Player>(L, 1);
|
||||||
|
#ifdef TRINITY
|
||||||
|
player->GetSession()->KickPlayer("GlobalMethods::Kick Kick the player");
|
||||||
|
#else
|
||||||
player->GetSession()->KickPlayer();
|
player->GetSession()->KickPlayer();
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3629,7 +3629,11 @@ namespace LuaPlayer
|
|||||||
*/
|
*/
|
||||||
int KickPlayer(lua_State* /*L*/, Player* player)
|
int KickPlayer(lua_State* /*L*/, Player* player)
|
||||||
{
|
{
|
||||||
|
#ifdef TRINITY
|
||||||
|
player->GetSession()->KickPlayer("PlayerMethods::KickPlayer Kick the player");
|
||||||
|
#else
|
||||||
player->GetSession()->KickPlayer();
|
player->GetSession()->KickPlayer();
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user