mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 04:21:41 +09:00
Small edits
This commit is contained in:
@@ -34,7 +34,7 @@ end
|
||||
-- this returns a global list
|
||||
function Ranking._presets()
|
||||
if not global.exp_core then global.exp_core = {} end
|
||||
if not global.exp_core.ranking then global.exp_core.ranking = {meta=Ranking._meta(),old={},current={}} end
|
||||
if not global.exp_core.ranking then global.exp_core.ranking = {meta=Ranking._meta(),old={},current={},last_jail=nil} end
|
||||
return global.exp_core.ranking
|
||||
end
|
||||
|
||||
@@ -134,6 +134,16 @@ function Ranking.give_rank(player,rank,by_player,tick)
|
||||
old_rank=old_rank
|
||||
})
|
||||
end
|
||||
if rank.group.name == 'Jail' and Ranking._presets().last_jail ~= player.name then
|
||||
discord_emit{
|
||||
title='Player Jail',
|
||||
color=Color.to_hex(defines.text_color.med),
|
||||
description='There was a player jailed.',
|
||||
['Player:']=player.name,
|
||||
['By:']='<<inline>>'..by_player_name,
|
||||
['Reason:']='No Reason'
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
--- Revert the last change to a players rank
|
||||
|
||||
Reference in New Issue
Block a user