Ranks done

This commit is contained in:
Cooldude2606
2017-12-10 20:51:38 +00:00
parent 6b409f7cbe
commit 6fc1c7b9d9
5 changed files with 182 additions and 18 deletions

View File

@@ -185,7 +185,7 @@ if commands._expgaming then
local callback = args.code
if not string.find(callback,'%s') and not string.find(callback,'return') then callback = 'return '..callback end
if game.player then callback = 'local player, surface, force = game.player, game.player.surface, game.player.force '..callback end
if Ranking and Ranking.get_rank then callback = 'local rank = Ranking.get_rank(game.player) '..callback end
if Ranking and Ranking.get_rank and game.player then callback = 'local rank = Ranking.get_rank(game.player) '..callback end
local success, err = Server.interface(callback)
player_return(err)
end)