mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-29 20:16:38 +09:00
Moved Files Around
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
--- A full ranking system for factorio.
|
||||
-- @module ExpGamingCommands.cheatMode@4.0.0
|
||||
-- @author Cooldude2606
|
||||
-- @license https://github.com/explosivegaming/scenario/blob/master/LICENSE
|
||||
|
||||
--- Toggles 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).default_admin_only = true
|
||||
@@ -1,19 +0,0 @@
|
||||
{
|
||||
"name": "ExpGamingCommands.cheatMode",
|
||||
"version": "4.0.0",
|
||||
"description": "Adds a command which allow you to toggle cheatmode",
|
||||
"location": "FSM_ARCHIVE",
|
||||
"keywords": [
|
||||
"Cheat",
|
||||
"Commands",
|
||||
"Admin",
|
||||
"ExpGaming",
|
||||
"Cheat Mode",
|
||||
"Hacks"
|
||||
],
|
||||
"dependencies": {
|
||||
"ExpGamingCore.Command": "^4.0.0"
|
||||
},
|
||||
"collection": "ExpGamingCommands@4.0.0",
|
||||
"submodules": {}
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
--- 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
|
||||
@@ -1,21 +0,0 @@
|
||||
{
|
||||
"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": {}
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
--- A full ranking system for factorio.
|
||||
-- @module ExpGamingCommands@4.0.0
|
||||
-- @author Cooldude2606
|
||||
-- @license https://github.com/explosivegaming/scenario/blob/master/LICENSE
|
||||
|
||||
local Game = require('FactorioStdLib.Game')
|
||||
local Role -- ExpGamingCore.Role@^4.0.0
|
||||
|
||||
-- Module Define
|
||||
local module_verbose = false
|
||||
local ThisModule = {
|
||||
on_init=function()
|
||||
if loaded_modules['ExpGamingCore.Role'] then Role = require('ExpGamingCore.Role') end
|
||||
end
|
||||
}
|
||||
|
||||
--- Gives you a tag
|
||||
-- @command tag
|
||||
-- @param tag the tag you want to have
|
||||
commands.add_command('tag', 'Give yourself a custom tag. Use "" to have more than one word.', {
|
||||
['tag'] = {true,'string-len',20}
|
||||
}, function(event,args)
|
||||
local player = Game.get_player(event)
|
||||
if Role then
|
||||
local role = Role.get_highest(player)
|
||||
player.tag = role.tag..' - '..args.tag
|
||||
else player.tag = args.tag end
|
||||
player_return('Your tag has been set. Use /tag-clear to remove your tag')
|
||||
end)
|
||||
|
||||
--- Gives you a tag
|
||||
-- @command tag
|
||||
-- @param tag the tag you want to have
|
||||
commands.add_command('tag-clear', 'Removes a custom tag.', {
|
||||
['player'] = {false,'player-rank'}
|
||||
}, function(event,args)
|
||||
local player = args.player or game.player
|
||||
if Role then
|
||||
local role = Role.get_highest(player)
|
||||
player.tag = role.tag
|
||||
else player.tag = '' end
|
||||
player_return('Your tag has been removed.')
|
||||
end)
|
||||
|
||||
return ThisModule
|
||||
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"name": "ExpGamingCommands.tags",
|
||||
"version": "4.0.0",
|
||||
"description": "Allows tags to be used by users.",
|
||||
"location": "FSM_ARCHIVE",
|
||||
"keywords": [
|
||||
"Tags",
|
||||
"Custom Tags",
|
||||
"Commands",
|
||||
"ExpGaming"
|
||||
],
|
||||
"dependencies": {
|
||||
"ExpGamingLib": "^4.0.0",
|
||||
"ExpGamingCore.Role": "?^4.0.0",
|
||||
"ExpGamingCore.Command": "^4.0.0",
|
||||
"FactorioStdLib.Game": "^0.8.0"
|
||||
},
|
||||
"collection": "ExpGamingCommands@4.0.0",
|
||||
"submodules": {}
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
--- A full ranking system for factorio.
|
||||
-- @module ExpGamingCommands.teleport@4.0.0
|
||||
-- @author Cooldude2606
|
||||
-- @license https://github.com/explosivegaming/scenario/blob/master/LICENSE
|
||||
|
||||
local Admin = require('ExpGamingAdmin')
|
||||
|
||||
--- Teleports the user to the player given
|
||||
-- @command go-to
|
||||
-- @param player player to go to
|
||||
commands.add_command('go-to', 'Go to a player\'s location', {
|
||||
['player']={true,'player-online'}
|
||||
}, function(event,args)
|
||||
Admin.go_to(args.player,event)
|
||||
end)
|
||||
|
||||
--- Teleports a player to the user
|
||||
-- @command bring
|
||||
-- @param player player to go to
|
||||
commands.add_command('bring', 'Bring a player to your location', {
|
||||
['player']={true,'player-online'}
|
||||
}, function(event,args)
|
||||
Admin.bring(args.player,event)
|
||||
end)
|
||||
|
||||
--- Teleports one player to another
|
||||
-- @command tp
|
||||
-- @param player_one the player that is teleported
|
||||
-- @param player_two the player who is the destination
|
||||
commands.add_command('tp', 'Teleport a player to another player\'s location', {
|
||||
['player_one']={true,'player-online'},
|
||||
['player_two']={true,'player-online'}
|
||||
}, function(event,args)
|
||||
Admin.tp(args.player_one,args.player_two)
|
||||
end)
|
||||
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"name": "ExpGamingCommands.teleport",
|
||||
"version": "4.0.0",
|
||||
"description": "Adds a few commands used to teleport players.",
|
||||
"location": "FSM_ARCHIVE",
|
||||
"keywords": [
|
||||
"Teleport",
|
||||
"Tp",
|
||||
"Bring",
|
||||
"GoTo",
|
||||
"ExpGaming",
|
||||
"Command",
|
||||
"Admin",
|
||||
"Tools"
|
||||
],
|
||||
"dependencies": {
|
||||
"ExpGamingCore.Command": "^4.0.0",
|
||||
"ExpGamingAdmin.Teleport": "^4.0.0",
|
||||
"ExpGamingAdmin": "^4.0.0"
|
||||
},
|
||||
"collection": "ExpGamingCommands@4.0.0",
|
||||
"submodules": {}
|
||||
}
|
||||
Reference in New Issue
Block a user