mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-29 20:16:38 +09:00
Spell Check and Lua Check
This commit is contained in:
@@ -37,7 +37,7 @@ script.on_event(defines.events.on_player_respawned,function(event)
|
||||
end
|
||||
end)
|
||||
|
||||
-- overided by ExpGamingCore.Role if present
|
||||
-- overridden by ExpGamingCore.Role if present
|
||||
script.on_event(defines.events.on_pre_player_died,function(event)
|
||||
local player = Game.get_player(event)
|
||||
if player.admin then
|
||||
@@ -74,10 +74,10 @@ return {
|
||||
script.on_event(defines.events.role_change,function(event)
|
||||
local player = Game.get_player(event)
|
||||
if Role.allowed(player,'bonus') then
|
||||
for _,setting in pairs(settings) do player[key] = setting*0.2 end
|
||||
for key,setting in pairs(settings) do player[key] = setting*0.2 end
|
||||
global[player.index]=20
|
||||
else
|
||||
for _,setting in pairs(settings) do player[key] = 0 end
|
||||
for key in pairs(settings) do player[key] = 0 end
|
||||
global[player.index]=nil
|
||||
end
|
||||
end)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
-- @author Cooldude2606
|
||||
-- @license https://github.com/explosivegaming/scenario/blob/master/LICENSE
|
||||
|
||||
--- Toogles cheat mode for a player
|
||||
--- 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', {
|
||||
|
||||
@@ -25,7 +25,7 @@ commands.add_command('home', 'Allows you to set, remove and goto your homes', {
|
||||
player_return{'ExpGamingCommands-home.set',name,pos[1],pos[2]}
|
||||
elseif command == 'remove' then
|
||||
if not homes[name] then player_return{'ExpGamingCommands-home.invalid',name} end
|
||||
homes[name] = nil
|
||||
homes[name] = nil
|
||||
homes._n=homes._n-1
|
||||
player_return{'ExpGamingCommands-home.remove',name}
|
||||
elseif command == 'goto' then
|
||||
@@ -42,6 +42,6 @@ commands.add_command('home', 'Allows you to set, remove and goto your homes', {
|
||||
else
|
||||
player_return{'ExpGamingCommands-home.homes',homes._n,homes._m}
|
||||
local index = 1
|
||||
for name,pos in pairs(homes) do if name ~= '_n' and name ~= '_r' and name ~= '_m' then player_return{'ExpGamingCommands-home.home',index,name,pos[1],pos[2]} index=index+1 end end
|
||||
for home_name,pos in pairs(homes) do if home_name ~= '_n' and home_name ~= '_r' and home_name ~= '_m' then player_return{'ExpGamingCommands-home.home',index,home_name,pos[1],pos[2]} index=index+1 end end
|
||||
end
|
||||
end)
|
||||
|
||||
@@ -28,7 +28,7 @@ local ThisModule = {
|
||||
end
|
||||
}
|
||||
|
||||
--- Used so that the value can be overriden if tempban is present
|
||||
--- Used so that the value can be overridden if tempban is present
|
||||
-- @local
|
||||
-- @function repairDisallow
|
||||
-- @param player the player who called the command
|
||||
@@ -41,7 +41,7 @@ end
|
||||
--- Used to repair and heal items in an area, different ranks get different size areas
|
||||
-- @command repair
|
||||
-- @param range the range that items are repaired in
|
||||
commands.add_command('repair', 'Repairs all destoryed and damaged entites in an area.', {
|
||||
commands.add_command('repair', 'Repairs all destroyed and damaged entities in an area.', {
|
||||
['range']={true,'number-int'}
|
||||
}, function(event,args)
|
||||
local range = args.range
|
||||
|
||||
Reference in New Issue
Block a user