Fixed Jail And Things For Mods

This commit is contained in:
Cooldude2606
2018-01-29 17:49:08 +00:00
parent 3f7c39888c
commit e80735daa1
2 changed files with 5 additions and 5 deletions

View File

@@ -120,7 +120,7 @@ function Admin.ban(player,by_player,reason)
['Reason:']=reason
}
Admin.move_inventory(player)
game.ban_player(player,reason)
Server.interface(game.ban_player,true,player,reason)
end
Admin.kick_btn = Gui.inputs.add{
@@ -147,7 +147,7 @@ function Admin.kick(player,by_player,reason)
['Reason:']=reason
}
Admin.move_inventory(player)
game.kick_player(player,reason)
Server.interface(game.kick_player,true,player,reason)
end
Admin.jail_btn = Gui.inputs.add{
@@ -175,7 +175,7 @@ function Admin.jail(player,by_player,reason)
}
Admin.move_inventory(player)
Ranking._presets().last_jail = player.name
Ranking.give_rank(player,'Jail',by_player_name)
Server.interface(Ranking.give_rank,true,player,'Jail',by_player_name)
end
Admin.go_to_btn = Gui.inputs.add{

View File

@@ -197,7 +197,7 @@ function Admin.clear_player(player,by_player)
Admin.clear_warings(player,by_player,true)
Admin.clear_reports(player,by_player,true)
_reports().actions[player.name]=actions.none
if Ranking.get_rank(player).group.name == 'Jail' then Ranking.revert(player,by_player) end
if Ranking.get_rank(player).group.name == 'Jail' then Server.interface(Ranking.revert,true,player,by_player) end
discord_emit{
title='Player Clear',
color=Color.to_hex(defines.text_color.low),
@@ -227,7 +227,7 @@ function Admin.temp_ban(player,by_player,reason)
game.print({'reports.temp-ban',player.name,by_player_name,reason},defines.text_color.info)
Admin.move_inventory(player)
Ranking._presets().last_jail = player.name
Ranking.give_rank(player,'Jail',by_player_name)
Server.interface(Ranking.give_rank,true,player,'Jail',by_player_name)
end
function Admin.is_banned(player)