Commands
On this page(3)
The root command is /giveaway. The default alias is gw; the list is the command.aliases key of config.yml and is re-read on reload.
Player commands
| Command | Permission | Description |
|---|---|---|
/giveaway host <hand|economy> [amount] | snhostgiveaway.host | Hosts a giveaway of the held stack or of an economy amount. The amount is ignored for hand. Players only. |
/giveaway toggle | snhostgiveaway.toggle | Hides or shows the giveaway show for you. A running show disappears or appears at once. Saved across reconnects. Players only. |
Admin commands
| Command | Permission | Description |
|---|---|---|
/giveaway preview [hand|economy] [amount] | snhostgiveaway.admin.preview | Plays the show for you only, with no prize, cooldown or database write. Players only. |
/giveaway cancel | snhostgiveaway.admin.cancel | Stops the running giveaway and returns the prize to its host. Works from the console. |
/giveaway rig [player] | snhostgiveaway.admin.rig | Forces the winner of the next giveaway you host. Without a player, removes it. Players only. |
/giveaway help | snhostgiveaway.use | Help menu, filtered by your permissions. |
/giveaway reload | snhostgiveaway.admin.reload | Reloads config.yml, show.yml and the language files. |
/giveaway debug | snhostgiveaway.admin.debug | Toggles the runtime debug output. |
Amounts accept the suffixes k, m and b: 2k is 2000 and 1.5m is 1500000. The dot is always the decimal point, so 10.000 is read as 10.
/giveaway cancel before the winner is drawn returns the prize to the host. After the winner is drawn, the winner keeps the prize. The cancel is refused for a moment while the winner is being recorded.
Forced winner
/giveaway rig <player> makes the next giveaway you host land on that player instead of a random draw. Only you get the confirmation. The show, the roulette and the chat announcements look exactly like a random draw. The console logs one line per forced giveaway, so the server owner keeps a trace.
- It applies to your next giveaway that actually starts, then it is used up. A refused host attempt (cooldown, not enough players, no funds) or a show that fails to start keeps it.
- The forced winner must be taking part when the giveaway starts: online, not exempt, not vanished and not left out by one account per IP. Otherwise the winner is drawn at random and only you are told.
- You cannot force yourself. A new
/giveaway rigreplaces the previous one, and/giveaway rigwithout a player removes it. - It is kept in memory only, so a restart forgets it.