feat: add Player:GetXP() (#77)
This commit is contained in:
@@ -960,6 +960,17 @@ namespace LuaPlayer
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the [Player]'s experience points
|
||||
*
|
||||
* @return uint32 xp
|
||||
*/
|
||||
int GetXP(lua_State* L, Player* player)
|
||||
{
|
||||
Eluna::Push(L, player->GetUInt32Value(PLAYER_XP));
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns rested experience bonus
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user