Network
SnuggleLink
Connects the server to the SnuggleSMP Hub for the stats page and Twitch viewer effects on streamers.
- Runs on
- Game server
- Needs
- SnuggleBirthdays (optional, for birthdays on the stats page)
- Commands
- 5
SnuggleLink connects each Minecraft server to the SnuggleSMP Hub website. It does two things: it keeps the Hub's stats page up to date, and it lets Twitch viewers send fun effects to streamers while they play.
The stats page
Every 30 seconds, each server tells the Hub its name, its player limit and who's online (names only). This is what the Hub's stats page shows.
If birthdays are turned on, the server also sends the birthdays people set with SnuggleBirthdays, every few minutes. Only the month and day are sent.
Linking your Twitch account
- Type
/snugglelink. - You get a short code that expires after a few minutes, and a link to the Hub. Click the link.
- Enter the code on the Hub.
If you're already linked, it tells you which Twitch account, and a new code re-links you to a different one.
Viewer effects
When you're linked and streaming, your viewers can spend channel points (or cheer bits) on your stream to send you effects in-game. When one arrives, you see who sent it in your action bar, and players within 32 blocks see a chat line like "Name on Twitch sent you a confetti party!"
| Effect | What happens |
|---|---|
| Hearts | Heart particles rise around you. |
| Snow flurry | Snow falls around you for about 15 seconds. |
| Plushie rain | Wool, cake, cookies, flowers and berries rain down. Nobody can pick them up, and they vanish after a few seconds. |
| Floaty bubble | You float up for a moment, then drift down slowly. No fall damage for 20 seconds. |
| Parrot friend | A tame parrot named after the viewer joins you for 2 minutes. It can't be hurt. |
| Confetti party | Four pastel fireworks go off around you. They don't do damage. |
| Sounds | A sound the streamer picked from the Hub's sound library. |
| Creeper hiss | A creeper appears behind you and hisses, then poofs away. It can't explode. |
| Elder Guardian | The Elder Guardian face and sound, just for you. |
| Warden's darkness | Your screen goes dark while Warden heartbeats get closer. |
| BOO | A zombie pops up right in front of you with a scream, then vanishes. |
None of the effects can hurt you, break blocks or leave anything behind.
Jump scares (the last four) are spaced out so viewers can't chain them. There's at least 20 seconds between scares on the same streamer. Extra scares wait their turn for up to 2 minutes; after that they're refunded.
By default, sound effects are only played to the streamer, so your stream hears them but players around you don't.
Pausing effects
Need a break, or doing something tricky? Type /snugglelink pause. Effects stop until you type /snugglelink resume, even if you log out. Channel point redemptions sent while you're paused or offline are refunded. Bit cheers are passed back to the Hub instead of being played.
For staff
- Each server needs the Hub address, the Hub plugin key and a unique
server.name(letters, digits,-and_) inconfig.yml. Until those are set, the plugin stays disconnected and says so in the console. Run/snugglelink reloadafter changing them. - Only turn
birthdays.enabledon for servers that run SnuggleBirthdays. - Effects can be switched off one by one under
effects.allow, or turned off entirely in some worlds witheffects.disabled-worlds. Redemptions for switched-off effects are refunded. sounds.audiencecan bestreamer(only the streamer hears it) ornearby(everyone close by).sounds.max-volumecaps how loud a streamer's sounds can be.- The action bar and chat messages, the chat radius, the parrot's lifetime and the scare gap are all in
config.ymltoo.
Commands
For everyone
| Command | What it does | Permission |
|---|---|---|
/snugglelink | Gets a code to link your Twitch account on the Hub. /snugglelink link and /twitchlink work too. | snugglelink.use |
/snugglelink pause | Stops Twitch viewer effects on you. /snugglelink off works too. | snugglelink.use |
/snugglelink resume | Turns Twitch viewer effects back on. /snugglelink on works too. | snugglelink.use |
/snugglelink status | Shows whether effects are on or paused for you, and which server you're on. | snugglelink.use |
Staff
| Command | What it does | Permission |
|---|---|---|
/snugglelink reload | Reloads the config and reconnects to the Hub. Works from the console. | snugglelink.admin |
Permissions
| Node | Grants | Default |
|---|---|---|
snugglelink.use | Link Twitch, and pause or resume effects on yourself. | Everyone |
snugglelink.admin | Use /snugglelink reload. | Ops |