giveaway.admin — Required to use all giveaway commands.
Commands
/setgiveawayitem <small|medium|large> Sets the giveaway reward item for the specified size. Hold the desired item in your hand when running this command.
/setgiveawaycommand <small|medium|large> <command> Sets the giveaway reward as a console command for the specified size. Use %player% as a placeholder for the winner’s name.
/giveaway <small|medium|large> Starts the giveaway for the specified size. Picks a random online player as the winner and gives them the reward item or runs the reward command.
How It Works
Admin sets giveaway rewards using /setgiveawayitem or /setgiveawaycommand.
When /giveaway is run with a size argument, a 3-second countdown broadcasts to all players.
A random online player is selected as the winner.
The winner is given the configured item or the configured command is run with their name.
If no reward is set for the chosen size, an error message is displayed.