Made requested changes

This commit is contained in:
Cooldude2606
2021-04-08 18:08:41 +01:00
parent 93a446747b
commit 70664ffd0c
4 changed files with 5 additions and 5 deletions

View File

@@ -78,4 +78,4 @@ get-beer-2= 🍻 Chears Mate 🍻
verify=Please return to our discord and type r!verify __1__
[report-jail]
jail=__1__ was jailed because they have been reported too many times.
jail=__1__ was jailed because they were reported too many times.

View File

@@ -29,7 +29,7 @@ not-jailed=__1__ is not currently in jail.
[expcom-report]
player-immune=This player can not be reported.
self-report=You can not report your self.
self-report=You cannot report yourself.
non-admin=__1__ was reported for __2__.
admin=__1__ was reported by __2__ for __3__.
already-reported=You can only report a player once, you can ask a moderator to clear this report.

View File

@@ -1,4 +1,4 @@
--- When a player is reported by players with a greater combined delta playtime, the player is automatically jailed
--- When a player is reported, the player is automatically jailed if the combined playtime of the reporters exceeds the reported player
-- @addon report-jail
local Event = require 'utils.event' ---@dep utils.event
@@ -6,7 +6,7 @@ local Jail = require 'modules.control.jail' ---@dep modules.control.jail
local Reports = require 'modules.control.reports' --- @dep modules.control.reports
local format_chat_player_name = _C.format_chat_player_name --- @dep expcore.common
--- Returns the playtime of the reporter, used to sum the playtime of all reporters
--- Returns the playtime of the reporter. Used when calculating the total playtime of all reporters
local function reporter_playtime(_, by_player_name, _)
local player = game.get_player(by_player_name)
if player == nil then return 0 end

View File

@@ -132,7 +132,7 @@ function Reports.report_player(player, by_player_name, reason)
if not player then return end
local player_name = player.name
if reason == nil or not reason:find("/S") then reason = 'Non given' end
if reason == nil or not reason:find("/S") then reason = 'No reason given' end
local reports = user_reports[player_name]
if not reports then