This commit is contained in:
Cooldude2606 committed 2019-07-22 18:34:42 +01:00
1 parent 57b1c530bf
commit 604fb66f46
113 files changed
+10840 -88

No files matched your search

+8
View File
@@ -1,3 +1,8 @@
--[[-- Commands Module - Spawn
- Adds a command that allows players to teleport to their spawn point
@commands Spawn
]]
local Commands = require 'expcore.commands' --- @dep expcore.commands
local Roles = require 'expcore.roles' --- @dep expcore.roles
@@ -11,6 +16,9 @@ local function teleport(player)
return true
end
--- Teleport to spawn
-- @command go-to-spawn
-- @tparam[opt=self] LuaPlayer player the player to teleport to their spawn point
Commands.new_command('go-to-spawn','Teleport to spawn')
:add_param('player',true,'player-role-alive')
:set_defaults{