mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Added ExpGamingCommands.cheatMode
This commit is contained in:
14
modules/ExpGamingCommands/cheat-mode/control.lua
Normal file
14
modules/ExpGamingCommands/cheat-mode/control.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
--- A full ranking system for factorio.
|
||||
-- @module ExpGamingCommands.kill
|
||||
-- @author Cooldude2606
|
||||
-- @license https://github.com/explosivegaming/scenario/blob/master/LICENSE
|
||||
|
||||
--- Toogles cheat mode for a player
|
||||
-- @command cheat-mode
|
||||
-- @param[opt] player the player to toggle if nil then the player using the command
|
||||
commands.add_command('cheat-mode', 'Toggles cheat mode for a player', {
|
||||
['player']={false,'player'}
|
||||
}, function(event,args)
|
||||
local player = args.player or game.player
|
||||
if player.cheat_mode == true then player.cheat_mode = false else player.cheat_mode = true end
|
||||
end)
|
||||
21
modules/ExpGamingCommands/cheat-mode/softmod.json
Normal file
21
modules/ExpGamingCommands/cheat-mode/softmod.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "cheatMode",
|
||||
"version": "4.0.0",
|
||||
"type": "Module",
|
||||
"description": "Adds a command which allow you to toggle cheatmode",
|
||||
"location": "<blank>",
|
||||
"keywords": [
|
||||
"Cheat",
|
||||
"Commands",
|
||||
"Admin",
|
||||
"ExpGaming",
|
||||
"Cheat Mode",
|
||||
"Hacks"
|
||||
],
|
||||
"author": "<blank>",
|
||||
"contact": "<blank>",
|
||||
"license": "<blank>",
|
||||
"dependencies": {
|
||||
"ExpGamingCore.Commands": "^4.0.0"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user