mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 20:41:41 +09:00
Update admin.lua
This commit is contained in:
committed by
GitHub
parent
eb73a2e092
commit
0635ca7591
@@ -49,7 +49,7 @@ commands.add_command('clear-reports', 'Clears the reports on a player', {'player
|
|||||||
Admin.clear_reports(player,event.player_index)
|
Admin.clear_reports(player,event.player_index)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
commands.add_command('clear-player', 'Clears reports and warnings and removes temp-ban', {'player'}, function(event,args)
|
commands.add_command('clear-player', 'Clears reports and warnings, and removes temp-ban', {'player'}, function(event,args)
|
||||||
local player = Game.get_player(args.player)
|
local player = Game.get_player(args.player)
|
||||||
local reason = args.reason
|
local reason = args.reason
|
||||||
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||||
|
|||||||
Reference in New Issue
Block a user