mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 20:41:41 +09:00
Made requested changes
This commit is contained in:
@@ -78,4 +78,4 @@ get-beer-2= 🍻 Chears Mate 🍻
|
|||||||
verify=Please return to our discord and type r!verify __1__
|
verify=Please return to our discord and type r!verify __1__
|
||||||
|
|
||||||
[report-jail]
|
[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.
|
||||||
@@ -29,7 +29,7 @@ not-jailed=__1__ is not currently in jail.
|
|||||||
|
|
||||||
[expcom-report]
|
[expcom-report]
|
||||||
player-immune=This player can not be reported.
|
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__.
|
non-admin=__1__ was reported for __2__.
|
||||||
admin=__1__ was reported by __2__ for __3__.
|
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.
|
already-reported=You can only report a player once, you can ask a moderator to clear this report.
|
||||||
|
|||||||
@@ -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
|
-- @addon report-jail
|
||||||
|
|
||||||
local Event = require 'utils.event' ---@dep utils.event
|
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 Reports = require 'modules.control.reports' --- @dep modules.control.reports
|
||||||
local format_chat_player_name = _C.format_chat_player_name --- @dep expcore.common
|
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 function reporter_playtime(_, by_player_name, _)
|
||||||
local player = game.get_player(by_player_name)
|
local player = game.get_player(by_player_name)
|
||||||
if player == nil then return 0 end
|
if player == nil then return 0 end
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ function Reports.report_player(player, by_player_name, reason)
|
|||||||
if not player then return end
|
if not player then return end
|
||||||
local player_name = player.name
|
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]
|
local reports = user_reports[player_name]
|
||||||
if not reports then
|
if not reports then
|
||||||
|
|||||||
Reference in New Issue
Block a user