diff --git a/control.lua b/control.lua index e4b427eb..0d614e09 100644 --- a/control.lua +++ b/control.lua @@ -549,6 +549,7 @@ end function commandInit() commands.add_command('server_interface','Server use only, no players',function(event) + if event.parameter then else return end local byPlayer = game.players[event.player_index] if byPlayer then byPlayer.print('401 - Unauthorized: Access is denied due to invalid credentials') else @@ -558,12 +559,14 @@ function commandInit() end) commands.add_command('autoMessage','Sends the auto message to all players',function(event) autoMessage() end) commands.add_command('onlineTime',' Get a players online time',function(event) + if event.parameter then else game.players[event.player_index].print('Invaild Input, /onlineTime ') return end local byPlayer = game.players[event.player_index] local player = game.players[event.parameter] if player then byPlayer.print(ticktohour(player.online_time)..'H '..(ticktominutes(player.online_time)-60*ticktohour(player.online_time))..'M') else byPlayer.print('Invaild Player Name, input is case senitive') end end) commands.add_command('reviveEntitys',' Reives all entitys in this range. Admins can use all as range',function(event) + if event.parameter then else game.players[event.player_index].print('Invaild Input, /reviveEntitys ') return end local byPlayer = game.players[event.player_index] local range = tonumber(event.parameter) local pos = byPlayer.position