Описание
## SetSpawn
**SetSpawn** is a lightweight, all-in-one Bukkit/Spigot plugin that makes it easy to:
- Define a global **Spawn** and **Lobby (Hub)** location
- Automatically teleport new players to your lobby on join (toggleable)
- Enforce a per-player cooldown on all teleport commands
- Fully customize messages & sounds via `config.yml`
- Reload your settings at runtime—no server restart required
---
### 📋 Features
- **/setspawn** & **/spawn**
Define and teleport to your world’s “Spawn” point.
- **/setlobby**, **/lobby** & **/hub**
Define and teleport to your “Lobby (Hub)”; `/hub` works as a convenient alias.
- **Auto-Teleport on Join**
New players are sent to the lobby by default; `/toggleautojoin` flips this on/off.
- **Configurable Cooldown**
Prevent teleport spam with a global cooldown (e.g. 30 s by default).
- **Custom Messages & Sounds**
All text feedback and sound effects are driven by `config.yml`.
- **/spawnreload**
Instantly reload your `config.yml` without restarting the server.
---
### ⚙️ Commands
| Command | Description | Permission |
|----------------------|----------------------------------------------------------|--------------------------|
| `/setspawn` | Set the global Spawn location | `setspawn.set` (OP-only) |
| `/spawn` | Teleport to the Spawn | `setspawn.use` |
| `/setlobby` | Set the global Lobby (Hub) location | `setspawn.set` (OP-only) |
| `/lobby` | Teleport to the Lobby | `setspawn.use` |
| `/hub` | Alias for `/lobby` | `setspawn.use` |
| `/toggleautojoin` | Enable/disable auto-teleport on join | `setspawn.toggleautojoin` (OP-only) |
| `/spawnreload` | Reload `config.yml` at runtime | `setspawn.reload` (OP-only) |
---
### 🛠 Configuration
```yaml
# Toggle auto-teleport to lobby on join
auto-teleport: true
# Cooldown (in seconds) between any teleport command
teleport-cooldown: 30
messages:
spawn-name: "Spawn"
lobby-name: "Lobby"
spawn-set: "&aSpawn location set."
lobby-set: "&aLobby location set."
spawn-teleport: "&aTeleported to spawn."
lobby-teleport: "&aTeleported to lobby."
hub-teleport: "&aTeleported to hub."
cooldown: "&cPlease wait {time} seconds."
auto-on: "&aAuto-teleport on join enabled."
auto-off: "&cAuto-teleport on join disabled."
reload: "&aConfiguration reloaded."