The GiveItem command gives one or several players a number of items. The item is named by its whole ID or name.
Summary
Methods
Gives the specified amount of an item to every target and notifies the staff about it.
Methods
CMD:on_run(actor, targets, item_name, amount)
shared plugins/inventory/plugin/commands/sh_giveitem.lua:44Gives the specified amount of an item to every target and notifies the staff about it.
Parameters
- actor Player the player who ran the command
- targets List<Player> players to give the item to
- item_name String ID or name of the item
- amount String optional, defaults to
1amount of items to give, converted to a number