Merge branch 'core'

This commit is contained in:
Cooldude2606
2018-03-22 21:52:01 +00:00

View File

@@ -159,6 +159,17 @@ function Ranking.give_rank(player,rank,by_player,tick)
['Reason:']='No Reason' ['Reason:']='No Reason'
} }
end end
game.write_file('ranking.json',
table.json({
tick=tick,
play_time=player.online_time,
player_name=player.name,
by_player_name=by_player_name,
new_rank=rank.name,
old_rank=old_rank.name,
power_increase=(old_rank.power-rank.power)
})..'\n'
, true, 0)
end end
--- Revert the last change to a players rank --- Revert the last change to a players rank