Configuration

Configuration

Plugin Configuration Guide

Configuring the plugin is straightforward. Below are the basic commands and settings you need to know:

Commands

  • /spawn set: Use this command to set the spawn point at your current location.

  • /spawn cooldown <seconds>: This command sets the cooldown period for the /spawn command. Players must wait this duration before they can be teleported again.

Configuration File

Edit the config.yml file to adjust additional settings. Here’s an example configuration:

# Spawn Delay Plugin configuration
cooldown: 5
# If true, spawn location will be saved to the config when using /spawn set
saveSpawn: true
# spawnLocation will be populated when set via in-game command
spawnLocation:
  world: ""
  x: 0
  y: 0
  z: 0
  yaw: 0
  pitch: 0
messages:
  actionbar_enabled: true
  chat_enabled: false
  # Prefix to prepend to chat messages (action bar usually shouldn't have a prefix)
  prefix_enabled: true
  prefix: "&7[&6Spawn&7] &r"
  actionbar_message: "&eTeleporting in &6{time}&es..."
  chat_message: "&aTeleport will occur in &b{time}&a seconds"
  teleport_message: "&aTeleported to spawn."
  moved_cancel_message: "&cTeleport cancelled because you moved."
  # Per-message delivery options
  moved_actionbar_enabled: true
  moved_chat_enabled: false
  teleport_actionbar_enabled: true
  teleport_chat_enabled: false

In this setup, spawn messages appear only in the action bar. This is the plugin's default configuration.


This plugin offers numerous customization options to make it tailored to your preferences. You can choose to display the countdown either in the chat or on the action bar. By default, only the action bar is enabled, meaning messages will appear solely there. However, this can be easily modified by editing the config.yml file.

Last updated