Giveaways

Giveaways 2.0.14

Added config option "Amount of time the event is open for (seconds)"
Updated for hook deprecation
Added config option to change the time between message updates when announcing the winner
Added command /giveaway create inventory to make the prize your current inventory
Fixed being able to run the event when it is already running
  • Like
Reactions: Covfefe
Possibly fixed InvalidCastException
Added config option to log winners and prizes

Changed chat commands;
/giveaway create - Now selects a random item from the list in config
/giveaway create item - Create a giveaway using the item in your hands
/giveaway create item <shortname> <amount> <opt:skinID> - Create a new give away with the prize being the item specified

Changed console commands;
giveaway create - Now selects a random item from the list in config
giveaway create item <shortname> <amount> <opt:skinID> - Create a new give away with the prize being the item specified
  • Like
Reactions: MalS and Covfefe
This update will wipe you config, data and lang files

Plugin rewrite
Added support for changing notification systems
See overview for more information
Fix for Economics.

If you don't have the newest Economics and use Economics; you should update it prior to this!
Added a variable for the Physical giveaway so it gives that item instantly and it is the EXACT same item. Previously it was asked to have the ability to give a Note with a promocode written on it. Therefore, I went ahead and added a "true" option to the /giveaway command. So if you type /giveaway true ---> it will not give the item you are holding to an online player. This is helpful for two reasons. One it solves the problem of giving say a custom note or map or whatever. Two it allows servers with the IncludeSleepers option set to true to do certain giveaways that will still only raffle to online players. Win win!

I also fixed Kits. It was erroring on the chat command but otherwise would have worked. I tested it and it is good. To give a Kit simply type /giveaway <kitname> .. please note giving more then one does not give more charges.

Although I did my fair share of testing; these changes did constitute some code refactoring so please report any bugs! Thanks!
  • Like
Reactions: KBow and MeatCircus
This version has a new config and includes a Data File. If upgrading from an old version please backup your old config if you want to keep the Giveaway list.

See the 'Overview' for a new YouTube demo as well as an explanation of everything to do with this plugin!
Added Kits as a giveaway. Simply add the kit name for the "GiveAway_Name".

minor tweak to logic, tested auto, and manual giveaways all worked fine.
Changed the Giveaway process for a much more efficient and fail safe method. I had a ton of timers before and eliminated all but 1.

It works great, let me know if you find any issue.