Wiki 9Minecraft Wiki 9Minecraft

Create Timed Events and Cooldowns

Java EditionPluginGuides 4FAQ 10Related mods 48
DownloadSkript Plugin

Get the files on 9Minecraft

Contents (3)
  1. Scheduling Actions with Delays
  2. Simple Delays
  3. Cooldowns

Scheduling Actions with Delays

Skript lets you delay actions or repeat them at intervals. This is perfect for cooldowns, scheduled announcements, or time-based rewards.

Simple Delays

`

command /teleport:

trigger:

send "Teleporting in 5 seconds..." to player

teleport player to spawn

send "Teleported!" to player

`

The command sends a message, waits, then teleports the player.

Cooldowns

Prevent players from spamming commands using variables:

`

command /special:

trigger:

if {cooldown::%player%} is set:

" to player

stop

set {cooldown::%player%} to true

send "Special ability activated!" to player

delete {cooldown::%player%}

`

This blocks the command for 30 seconds after use. The stop keyword exits the trigger early. You can also use every for repeating tasks that run continuously on your server.

More guides for this mod