mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-28 12:05:21 +09:00
Added ExpGamingCommands.admin
This commit is contained in:
12
modules/ExpGamingCommands/admin/src/clear.lua
Normal file
12
modules/ExpGamingCommands/admin/src/clear.lua
Normal 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)
|
||||
Reference in New Issue
Block a user