Fixed Message On /Jail and /Unjail for when a player is banned

This commit is contained in:
Cooldude2606
2019-01-04 00:44:03 +00:00
parent 6a17b7ce04
commit 382fee77f0

View File

@@ -13,7 +13,7 @@ commands.add_command('jail', 'Jails a player', {
local player = args.player
local reason = args.reason
if Role.has_flag(player,'not_reportable') then player_return{'ExpGamingAdmin.cant-report',args.player.name} return commands.error end
if Admin.is_banned(player) then player_return{'ExpGamingCore_Command.cant-report-ban',args.player.name} return commands.error end
if Admin.is_banned(player) then player_return{'ExpGamingAdmin.cant-report-ban',args.player.name} return commands.error end
Admin.jail(player,event.player_index,reason)
end)
@@ -24,6 +24,6 @@ commands.add_command('unjail', 'Returns a player\'s old rank', {
['player']={true,'player'}
}, function(event,args)
local player = args.player
if Admin.is_banned(player,true) ~= 'jail' then player_return({'ExpGamingCore_Command.cant-report-ban',args.player.name}) return commands.error end
if Admin.is_banned(player,true) ~= 'jail' then player_return({'ExpGamingAdmin.cant-report-ban',args.player.name}) return commands.error end
Server.interface(Role.revert,true,player,event.player_index,2)
end)