Installation
On this page(2)
- Sign in and download the latest JAR from SnDevelopment.
- Place the
.jarfile into your server'splugins/folder. - Start the server once. SnHostGiveaway creates a shared license file at
plugins/.Sn-License/license.yml. - Paste your Sn license key into that file, replacing the placeholder line.
- Restart the server. SnHostGiveaway validates the key at startup and then enables.
Requires SnLib installed (depend: [SnLib]), version 1.49.0 or later. Update SnLib.jar at the same time as this plugin.
SnHostGiveaway is licensed. The key in plugins/.Sn-License/license.yml is shared by every bundled Sn plugin on the server, so you paste it once. Without a valid key the plugin refuses to enable.
Dependencies
| Plugin | Required |
|---|---|
| SnLib | Yes |
| Vault | No, only for type: vault economies |
| EdTools | No, only for type: edtools economies |
| SnCredits-Bridge | No, only for type: sncredits economies |
| PlaceholderAPI | No, only to read the balance of type: command economies |
| ViaVersion | No, only so players older than 1.19.4 get the title version of the show |
| floodgate | No, only to recognise Bedrock players linked to a Java account (others are recognised by their Floodgate UUID) |
Requirements: Java 21+, Paper 1.20.4 or newer.
First boot
SnHostGiveaway generates config.yml, show.yml, lang/messages_en.yml and lang/messages_es.yml. New keys are merged on later boots, and your values and comments are kept. Set update-configs: false to freeze the files.
Each server needs its own database. With MySQL, give every server its own database name. Startup recovery refunds every unfinished giveaway it finds, so two servers on one database would refund each other's live giveaway.
Behind a Velocity proxy, enable modern forwarding so the backend sees the real player IP addresses. Without it every player shares the proxy address and only one of them takes part.