Runonstof / CustomNPCs-Scripting-Software

Server Management Software. Created for CustomNPCs 1.12.2
4 stars 1 forks source link

GiftCodes command #9

Closed slava110 closed 5 years ago

slava110 commented 5 years ago

Add command to get cookies/money/anything else from gift codes updated

Runonstof commented 5 years ago

new DataHandler needed GiftCode

!giftcode create <name> [code] If code is not given, gets auto-generated At creation maybe a Permission called giftcode.<name>, for using giftcode? And should that permission be disabled by default? !giftcode setCode <name> <code> Ofcourse whynot !giftcode setMaxUses <name> <amount> Max uses per player, use -1 for infinite !giftcode addItem <name> Adds the item in hand to giftcode

!giftcode redeem <code> Should IPlayer.giveItem items, and if player has no inv space anymore, IPlayer.dropItem