mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 04:21:41 +09:00
General English fixes (#52)
* Speeling fixes * Speeling/capitalisation * More speeling * Label grammar consistency * Consistency * Phrasing * Consistency * Clarity of const * Consistency * Consistency * Speeling * Apostrophes: check whether they need escaping * Capitalisation (more apostrophes need checking) * Americanisation * Clarity * Contraction * Clarity * Speeling
This commit is contained in:
@@ -8,7 +8,7 @@ Discord: https://discord.gg/r6dC2uK
|
||||
]]
|
||||
--Please Only Edit Below This Line-----------------------------------------------------------
|
||||
|
||||
commands.add_command('report', 'Reports a player.', {'player','reason',true}, function(event,args)
|
||||
commands.add_command('report', 'Reports a player', {'player','reason',true}, function(event,args)
|
||||
local _player = Game.get_player(event)
|
||||
local player = Game.get_player(args.player)
|
||||
local reason = args.reason
|
||||
@@ -20,7 +20,7 @@ commands.add_command('report', 'Reports a player.', {'player','reason',true}, fu
|
||||
Admin.report(player,event.player_index,reason)
|
||||
end)
|
||||
|
||||
commands.add_command('warn', 'Gives a player a warnings', {'player','reason',true}, function(event,args)
|
||||
commands.add_command('warn', 'Gives a player a warning', {'player','reason',true}, function(event,args)
|
||||
local player = Game.get_player(args.player)
|
||||
local reason = args.reason
|
||||
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||
@@ -38,14 +38,14 @@ commands.add_command('jail', 'Jails a player', {'player','reason',true}, functio
|
||||
Admin.jail(player,event.player_index,reason)
|
||||
end)
|
||||
|
||||
commands.add_command('unjail', 'Returns the players old rank', {'player',true}, function(event,args)
|
||||
commands.add_command('unjail', 'Returns a player\'s old rank', {'player',true}, function(event,args)
|
||||
local player = Game.get_player(args.player)
|
||||
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||
if Admin.is_banned(player) then player_return({'commands.cant-report-ban',args.player}) return commands.error end
|
||||
Ranking.revert(player,event.player_index)
|
||||
end)
|
||||
|
||||
commands.add_command('temp-ban', 'Temporarily ban a player.', {'player','reason',true}, function(event,args)
|
||||
commands.add_command('temp-ban', 'Temporarily ban a player', {'player','reason',true}, function(event,args)
|
||||
local player = Game.get_player(args.player)
|
||||
local reason = args.reason
|
||||
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||
@@ -53,28 +53,28 @@ commands.add_command('temp-ban', 'Temporarily ban a player.', {'player','reason'
|
||||
Admin.temp_ban(player,event.player_index,reason)
|
||||
end)
|
||||
|
||||
commands.add_command('clear-inv', 'Clears the player\'s invetory', {'player'}, function(event,args)
|
||||
commands.add_command('clear-inv', 'Clears a player\'s invetory', {'player'}, function(event,args)
|
||||
local player = Game.get_player(args.player)
|
||||
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||
if Admin.is_banned(player) then player_return({'reports.cant-report-ban',args.player}) return commands.error end
|
||||
Admin.move_inventory(player)
|
||||
end)
|
||||
|
||||
commands.add_command('clear-warnings', 'Clears the warnings on a player.', {'player'}, function(event,args)
|
||||
commands.add_command('clear-warnings', 'Clears a player\'s warnings', {'player'}, function(event,args)
|
||||
local player = Game.get_player(args.player)
|
||||
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||
if Admin.is_banned(player) then player_return({'reports.cant-report-ban',args.player}) return commands.error end
|
||||
Admin.clear_warings(player,event.player_index)
|
||||
end)
|
||||
|
||||
commands.add_command('clear-reports', 'Clears the reports on a player.', {'player'}, function(event,args)
|
||||
commands.add_command('clear-reports', 'Clears a player\'s reports', {'player'}, function(event,args)
|
||||
local player = Game.get_player(args.player)
|
||||
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||
if Admin.is_banned(player) then player_return({'reports.cant-report-ban',args.player}) return commands.error end
|
||||
Admin.clear_reports(player,event.player_index)
|
||||
end)
|
||||
|
||||
commands.add_command('clear-all', 'Clears reports and reports and removes temp-ban', {'player'}, function(event,args)
|
||||
commands.add_command('clear-all', 'Clears a player of any temp-ban, reports or warnings', {'player'}, function(event,args)
|
||||
local player = Game.get_player(args.player)
|
||||
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||
Admin.clear_player(player,event.player_index)
|
||||
|
||||
@@ -8,7 +8,7 @@ Discord: https://discord.gg/r6dC2uK
|
||||
]]
|
||||
--Please Only Edit Below This Line-----------------------------------------------------------
|
||||
|
||||
commands.add_command('cheat-mode', 'Toggles cheat mode for a player.', {'player'}, function(event,args)
|
||||
commands.add_command('cheat-mode', 'Toggles cheat mode for a player', {'player'}, function(event,args)
|
||||
local player = Game.get_player(args.player)
|
||||
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||
if player.cheat_mode == true then player.cheat_mode = false else player.cheat_mode = true end
|
||||
|
||||
@@ -28,7 +28,7 @@ commands.add_command('home', 'Go to you home position', {}, function(event,args)
|
||||
player.teleport(player.surface.find_non_colliding_position('player',_homes()[player.index][1],32,1),player.surface)
|
||||
end)
|
||||
|
||||
commands.add_command('return', 'Go to where you were before using /home', {}, function(event,args)
|
||||
commands.add_command('return', 'Return to your previous position after using /home', {}, function(event,args)
|
||||
local player = Game.get_player(event)
|
||||
if not _homes()[player.index] then _homes()[player.index] = {player.force.get_spawn_position(player.surface),player.force.get_spawn_position(player.surface)} end
|
||||
local _temp = {math.floor(player.position.x),math.floor(player.position.y)}
|
||||
|
||||
@@ -8,7 +8,7 @@ Discord: https://discord.gg/r6dC2uK
|
||||
]]
|
||||
--Please Only Edit Below This Line-----------------------------------------------------------
|
||||
|
||||
commands.add_command('kill', 'Kills a player. Must be either yourself (/kill self) or a person of a lower rank.', {'player'}, function(event,args)
|
||||
commands.add_command('kill', 'Kills a player. Must be either yourself (/kill self) or a person of a lower rank', {'player'}, function(event,args)
|
||||
local _player = Game.get_player(event)
|
||||
local player = Game.get_player(args.player)
|
||||
if args.player ~= 'self' and not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||
|
||||
@@ -8,7 +8,7 @@ Discord: https://discord.gg/r6dC2uK
|
||||
]]
|
||||
--Please Only Edit Below This Line-----------------------------------------------------------
|
||||
|
||||
-- these items are not repaired, true means it is blocked
|
||||
-- Set an item to true to disallow it from being repaired
|
||||
local disallow = {
|
||||
['loader']=true,
|
||||
['fast-loader']=true,
|
||||
@@ -18,7 +18,7 @@ local disallow = {
|
||||
}
|
||||
|
||||
local const = 100
|
||||
-- given const = 100: admin+ has unlimited, admin has 100, mod has 50, member has 20
|
||||
-- Given const = 100: admin+ has unlimited, admin has const (100), mod has const / 2 (50), member has const / 5 (20)
|
||||
|
||||
commands.add_command('repair', 'Repairs all destoryed and damaged entites in an area.', {'range'}, function(event,args)
|
||||
local range = tonumber(args.range)
|
||||
|
||||
@@ -11,14 +11,14 @@ Discord: https://discord.gg/r6dC2uK
|
||||
local const = 20
|
||||
-- this is the max lenth of a tag
|
||||
|
||||
commands.add_command('tag', 'Give yourself a custom tag. Use /tag-clear self to remove tag.', {'tag',true}, function(event,args)
|
||||
commands.add_command('tag', 'Give yourself a custom tag. Use /tag-clear self to remove tag', {'tag',true}, function(event,args)
|
||||
local player = Game.get_player(event)
|
||||
local rank = Ranking.get_rank(player)
|
||||
if string.len(args.tag) > const then player_return({'commands.invalid-length',const}) return commands.error end
|
||||
player.tag = rank.tag..' - '..args.tag
|
||||
end)
|
||||
|
||||
commands.add_command('tag-clear', 'Removes a custom tag. Player can be self (/tag-clear self).', {'player'}, function(event,args)
|
||||
commands.add_command('tag-clear', 'Removes a custom tag. Player can be self (/tag-clear self)', {'player'}, function(event,args)
|
||||
local _player = Game.get_player(event)
|
||||
local _rank = Ranking.get_rank(_player)
|
||||
local player = Game.get_player(args.player)
|
||||
|
||||
@@ -8,13 +8,13 @@ Discord: https://discord.gg/r6dC2uK
|
||||
]]
|
||||
--Please Only Edit Below This Line-----------------------------------------------------------
|
||||
|
||||
commands.add_command('go-to', 'Go to a player\'s location.', {'player'}, function(event,args)
|
||||
commands.add_command('go-to', 'Go to a player\'s location', {'player'}, function(event,args)
|
||||
local player = Game.get_player(args.player)
|
||||
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||
Admin.go_to(player,event)
|
||||
end)
|
||||
|
||||
commands.add_command('bring', 'Bring a player to your location.', {'player'}, function(event,args)
|
||||
commands.add_command('bring', 'Bring a player to your location', {'player'}, function(event,args)
|
||||
local player = Game.get_player(args.player)
|
||||
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||
Admin.bring(player,event)
|
||||
|
||||
Reference in New Issue
Block a user