diff --git a/Addons/Admin/admin.lua b/Addons/Admin/admin.lua index 80fbb7e2..27fc38dd 100644 --- a/Addons/Admin/admin.lua +++ b/Addons/Admin/admin.lua @@ -53,7 +53,7 @@ function Admin.take_action(action,player,by_player,reason) elseif action == 'Temp Ban' and Admin.temp_ban then Admin.temp_ban(player,by_player,reason) elseif action == 'Kick' then Admin.kick(player,by_player,reason) elseif action == 'Jail' then Admin.jail(player,by_player,reason) - elseif action == 'Go To' then Admin.go_to(player,by_player) + elseif action == 'GoTo' then Admin.go_to(player,by_player) elseif action == 'Bring' then Admin.bring(player,by_player) end end diff --git a/Addons/Guis/admin-gui.lua b/Addons/Guis/admin-gui.lua index b2404db5..3360a321 100644 --- a/Addons/Guis/admin-gui.lua +++ b/Addons/Guis/admin-gui.lua @@ -92,7 +92,7 @@ local take_action = Gui.inputs.add{ local _rank = Ranking.get_rank(_player) if rank.power >= _rank.power then dropdowns.warning.caption = {'admin-commands.rank-high'} return end local _reason = dropdowns['reason-input-admin-commands'] and dropdowns['reason-input-admin-commands'].text - if (selected == 'Jail' or selected == 'Kick' or selected == 'Ban' or selected == 'Temp Ban') and (_reason == 'Enter Reason' or string.len(_reason) < 20) then return end + if (_action == 'Jail' or _action == 'Kick' or _action == 'Ban' or _action == 'Temp Ban') and (_reason == 'Enter Reason' or string.len(_reason) < 20) then return end Admin.take_action(_action,_player,event.player_index,_reason) Gui.center.clear(event) end) @@ -133,7 +133,7 @@ Admin.center = Gui.center.add{ type='flow', direction='vertical' } - player_info_flow.style.height = 300 + player_info_flow.style.height = 280 player_info_flow.style.width = 200 local label = dropdowns.add{ type='label',