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

+9 -1
View File
@@ -1,8 +1,16 @@
--[[-- Commands Module - Cheat Mode
- Adds a command that allows players to enter cheat mode
@commands Cheat-Mode
]]
local Commands = require 'expcore.commands' --- @dep expcore.commands
require 'config.expcore-commands.parse_general'
--- Toggles cheat mode for your player, or another player.
-- @command toggle-cheat-mode
-- @tparam[opt=self] LuaPlayer player player to toggle chest mode of, can be nil for self
Commands.new_command('toggle-cheat-mode','Toggles cheat mode for your player, or another player.')
:add_param('player',true,'player') -- player to toggle chest mode of, can be nil for self
:add_param('player',true,'player')
:set_defaults{player=function(player)
return player -- default is the user using the command
end}