Skip to content

Commit

Permalink
Fix jail data
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerkiz committed May 31, 2024
1 parent dda25a3 commit e3f55c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/datastore/jail_data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ local function jail(player, offender, msg, raised, mute)

Event.raise(Public.events.on_player_jailed, {player_index = offender.index})

StatData.get_data(player):increase('jailed')
StatData.get_data(to_jail_player.index):increase('jailed')

Utils.print_to(nil, message)
local data = Server.build_embed_data()
Expand Down Expand Up @@ -717,7 +717,7 @@ local function jail_temporary(player, offender, msg, mute)

Event.raise(Public.events.on_player_jailed, {player_index = offender.index})

StatData.get_data(player):increase('jailed')
StatData.get_data(offender.index):increase('jailed')

offender.clear_console()

Expand Down

0 comments on commit e3f55c2

Please sign in to comment.