Added ExpGamingCommands.admin

This commit is contained in:
Cooldude2606
2018-06-24 20:59:28 +01:00
parent 83db4651dc
commit 3eed4b1d8d
10 changed files with 176 additions and 93 deletions

View File

@@ -0,0 +1,12 @@
local Admin = Admin
--- Clears a players inventory and moves it to chests in spawn
-- @command clear-inv
-- @param player the player to clear the inventory of
commands.add_command('clear-inv', 'Clears a player\'s invetory', {
['player'] = {true,'player-rank'}
}, function(event,args)
local player = args.player
if Admin.is_banned(player) then player_return({'reports.cant-report-ban',args.player}) return commands.error end
Admin.move_inventory(player)
end)