mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 12:31:41 +09:00
Fixed GoTo on admin gui
This commit is contained in:
@@ -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 == '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 == 'Kick' then Admin.kick(player,by_player,reason)
|
||||||
elseif action == 'Jail' then Admin.jail(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)
|
elseif action == 'Bring' then Admin.bring(player,by_player)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ local take_action = Gui.inputs.add{
|
|||||||
local _rank = Ranking.get_rank(_player)
|
local _rank = Ranking.get_rank(_player)
|
||||||
if rank.power >= _rank.power then dropdowns.warning.caption = {'admin-commands.rank-high'} return end
|
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
|
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)
|
Admin.take_action(_action,_player,event.player_index,_reason)
|
||||||
Gui.center.clear(event)
|
Gui.center.clear(event)
|
||||||
end)
|
end)
|
||||||
@@ -133,7 +133,7 @@ Admin.center = Gui.center.add{
|
|||||||
type='flow',
|
type='flow',
|
||||||
direction='vertical'
|
direction='vertical'
|
||||||
}
|
}
|
||||||
player_info_flow.style.height = 300
|
player_info_flow.style.height = 280
|
||||||
player_info_flow.style.width = 200
|
player_info_flow.style.width = 200
|
||||||
local label = dropdowns.add{
|
local label = dropdowns.add{
|
||||||
type='label',
|
type='label',
|
||||||
|
|||||||
Reference in New Issue
Block a user