mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 20:41:41 +09:00
Fixed Load
This commit is contained in:
@@ -16,7 +16,7 @@ commands.add_command('report', 'Reports a player', {'player','reason',true}, fun
|
|||||||
Admin.report(player,event.player_index,reason)
|
Admin.report(player,event.player_index,reason)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
commands.add_command('give_warnings', 'Gives a player a warnings', {'player','reason',true}, function(event,args)
|
commands.add_command('give-warnings', 'Gives a player a warnings', {'player','reason',true}, function(event,args)
|
||||||
local player = Game.get_player(args.player)
|
local player = Game.get_player(args.player)
|
||||||
local reason = args.reason
|
local reason = args.reason
|
||||||
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||||
@@ -24,7 +24,7 @@ commands.add_command('give_warnings', 'Gives a player a warnings', {'player','re
|
|||||||
Admin.give_warning(player,event.player_index,reason)
|
Admin.give_warning(player,event.player_index,reason)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
commands.add_command('temp_ban', 'Temp Ban A Player', {'player','reason',true}, function(event,args)
|
commands.add_command('temp-ban', 'Temp Ban A Player', {'player','reason',true}, function(event,args)
|
||||||
local player = Game.get_player(args.player)
|
local player = Game.get_player(args.player)
|
||||||
local reason = args.reason
|
local reason = args.reason
|
||||||
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||||
@@ -32,21 +32,21 @@ commands.add_command('temp_ban', 'Temp Ban A Player', {'player','reason',true},
|
|||||||
Admin.temp_ban(player,event.player_index,reason)
|
Admin.temp_ban(player,event.player_index,reason)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
commands.add_command('clear_warings', 'Clears the warnings on a player', {'player'}, function(event,args)
|
commands.add_command('clear-warings', 'Clears the warnings on a player', {'player'}, function(event,args)
|
||||||
local player = Game.get_player(args.player)
|
local player = Game.get_player(args.player)
|
||||||
local reason = args.reason
|
local reason = args.reason
|
||||||
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||||
Admin.clear_warings(player,event.player_index)
|
Admin.clear_warings(player,event.player_index)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
commands.add_command('clear_reports', 'Clears the reports from a player', {'player'}, function(event,args)
|
commands.add_command('clear-reports', 'Clears the reports from a player', {'player'}, function(event,args)
|
||||||
local player = Game.get_player(args.player)
|
local player = Game.get_player(args.player)
|
||||||
local reason = args.reason
|
local reason = args.reason
|
||||||
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||||
Admin.clear_reports(player,event.player_index)
|
Admin.clear_reports(player,event.player_index)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
commands.add_command('clear_player', 'Clears reports and reports and removes temp-ban', {'player'}, function(event,args)
|
commands.add_command('clear-player', 'Clears reports and reports and removes temp-ban', {'player'}, function(event,args)
|
||||||
local player = Game.get_player(args.player)
|
local player = Game.get_player(args.player)
|
||||||
local reason = args.reason
|
local reason = args.reason
|
||||||
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ require('Commands/kill')
|
|||||||
require('Commands/repair')
|
require('Commands/repair')
|
||||||
require('Commands/tags')
|
require('Commands/tags')
|
||||||
require('Commands/tp') -- requires Admin/admin
|
require('Commands/tp') -- requires Admin/admin
|
||||||
|
require('Commands/admin') -- requires Admin/reports
|
||||||
|
|
||||||
-- guis dir
|
-- guis dir
|
||||||
require('Guis/readme')
|
require('Guis/readme')
|
||||||
|
|||||||
@@ -60,11 +60,11 @@ groups['Admin']:edit('allow',false,{
|
|||||||
['tasklist']=true,
|
['tasklist']=true,
|
||||||
['rank-changer']=true,
|
['rank-changer']=true,
|
||||||
['admin-commands']=true,
|
['admin-commands']=true,
|
||||||
['give_warnings']=true,
|
['give-warnings']=true,
|
||||||
['temp_ban']=true,
|
['temp-ban']=true,
|
||||||
['clear_warings']=true,
|
['clear-warings']=true,
|
||||||
['clear_reports']=true,
|
['clear-reports']=true,
|
||||||
['clear_player']=true
|
['clear-player']=true
|
||||||
})
|
})
|
||||||
groups['User']:edit('allow',false,{
|
groups['User']:edit('allow',false,{
|
||||||
['player-list']=true,
|
['player-list']=true,
|
||||||
|
|||||||
Reference in New Issue
Block a user