Skript Library

Drop-in Skript snippets for common server tasks. Copy, paste, done.

Welcome message

Player

Send a custom welcome message to every player that joins the server.

on join:
    send "&eWelcome &a%player% &eto &6Lunify&e!" to player
    send "&7Tip: use &e/spawn &7to teleport back." to player

First-join kit

Player

Give new players a starter kit the first time they log in.

on first join:
    give 16 bread to player
    give 1 wooden sword to player
    give 1 wooden pickaxe to player
    send "&aHere's a starter kit!" to player

Anti-spam chat

Chat

Slow chat down so players can only post once every 2 seconds.

variables:
    {lastchat::%uuid of player%} = 0

on chat:
    if {lastchat::%uuid of player%} is set:
        if difference between {lastchat::%uuid of player%} and now is less than 2 seconds:
            cancel event
            send "&cSlow down!" to player
    set {lastchat::%uuid of player%} to now

Block break rewards

World

Drop a diamond with a small chance when players mine stone.

on break of stone:
    chance of 3%:
        drop 1 diamond at event-block
        send "&bYou found a diamond!" to player

Custom /heal command

Commands

Heal the player and clear fire, with a 30-second cooldown.

command /heal:
    permission: lunify.heal
    permission message: "&cNo permission."
    cooldown: 30 seconds
    trigger:
        heal player
        extinguish player
        send "&aYou have been healed." to player

Auto-restart warning

Server

Warn players 5 minutes and 1 minute before a restart.

every day at 04:00:
    broadcast "&eServer restarting in 5 minutes."
    wait 4 minutes
    broadcast "&cServer restarting in 1 minute."
    wait 1 minute
    execute console command "restart"
    broadcast "&cRestarting..."

Need help installing Skript? See the Java server guide or open a ticket.