mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 12:31:41 +09:00
Moved Files Around
This commit is contained in:
18
old/modules/DONE/Commands/kill/control.lua
Normal file
18
old/modules/DONE/Commands/kill/control.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
--- A full ranking system for factorio.
|
||||
-- @module ExpGamingCommands.kill@4.0.0
|
||||
-- @author Cooldude2606
|
||||
-- @license https://github.com/explosivegaming/scenario/blob/master/LICENSE
|
||||
|
||||
local Game = require('FactorioStdLib.Game')
|
||||
|
||||
--- Kills a player of a lower rank
|
||||
-- @command kill
|
||||
-- @param player the player to be killed
|
||||
commands.add_command('kill', 'Kills a player. No player name kills yourself.', {
|
||||
['player']={false,'player-rank-alive'}
|
||||
}, function(event,args)
|
||||
local _player = Game.get_player(event)
|
||||
local player = args.player
|
||||
if player then player.character.die()
|
||||
else _player.character.die() end
|
||||
end).default_admin_only = true
|
||||
21
old/modules/DONE/Commands/kill/softmod.json
Normal file
21
old/modules/DONE/Commands/kill/softmod.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "ExpGamingCommands.kill",
|
||||
"version": "4.0.0",
|
||||
"description": "Adds a command which can be used to kill a player or yourself.",
|
||||
"location": "FSM_ARCHIVE",
|
||||
"keywords": [
|
||||
"Command",
|
||||
"ExpGaming",
|
||||
"Kill",
|
||||
"Death",
|
||||
"Admin",
|
||||
"Tool"
|
||||
],
|
||||
"dependencies": {
|
||||
"ExpGamingCore.Command": "^4.0.0",
|
||||
"ExpGamingCore.Role": "^4.0.0",
|
||||
"FactorioStdLib.Game": "^0.8.0"
|
||||
},
|
||||
"collection": "ExpGamingCommands@4.0.0",
|
||||
"submodules": {}
|
||||
}
|
||||
Reference in New Issue
Block a user