Minor bug fixes

This commit is contained in:
Cooldude2606
2019-05-26 15:32:52 +01:00
parent 7079f84a68
commit 6432326b1b
31 changed files with 130 additions and 174 deletions

View File

@@ -23,14 +23,14 @@ Commands.new_command('go-to-spawn','Teleport to spawn')
:add_alias('spawn','tp-spawn')
:register(function(player,action_player)
if not action_player then
return Commands.error{'exp-commands.spawn-unavailable'}
return Commands.error{'expcom-spawn.unavailable'}
elseif action_player == player then
if not teleport(player) then
return Commands.error{'exp-commands.spawn-unavailable'}
return Commands.error{'expcom-spawn.unavailable'}
end
elseif Roles.player_allowed(player,'command/go-to-spawn/always') then
if not teleport(action_player) then
return Commands.error{'exp-commands.spawn-unavailable'}
return Commands.error{'expcom-spawn.unavailable'}
end
else
return Commands.error{'expcore-commands.unauthorized'}