Описание
---
# **Sepd_DonutSpawn – DonutSMP-Inspired Spawn Plugin** 🇮🇳
### *Made in India*
Bring the DonutSMP-style spawn experience to your Minecraft server — complete with protected spawn zones, safe respawns, countdown teleports, and first-join handling. Perfect for survival servers and hardcore worlds!
---
## ✅ Features
* **/setspawn** — Set the main server spawn location.
* **/spawn** — Teleport to spawn with a countdown (cancellable if you move).
* ♻️ **/reloadspawn** — Reload all messages and configuration without restarting the server.
* ☠️ **Death Handling** — If no bed is set, players respawn at the plugin's spawn.
* 👋 **First Join Support** — New players automatically spawn at the configured spawn.
* 🛡️ **Optional Spawn Protection** — Prevent damage, PvP, and block interactions in a configurable radius.
* 📁 **YAML-Based Config** — All messages, delays, and spawn settings are stored in `config.yml`.
* 🎨 **Custom Messages** — Fully editable messages with support for formatting codes.
* ⚡ **Asynchronous Teleportation** — Keeps server performance smooth.
---
## 📜 Commands
| Command | Description | Permission |
| -------------- | ------------------------ | --------------------- |
| `/setspawn` | Set the spawn point | `donutspawn.setspawn` |
| `/spawn` | Teleport to spawn | `donutspawn.spawn` |
| `/reloadspawn` | Reload the configuration | `donutspawn.reload` |
---
## 🔐 Permissions
| Permission | Description |
| --------------------- | ------------------------------------- |
| `donutspawn.setspawn` | Allows setting the spawn |
| `donutspawn.spawn` | Allows teleporting to spawn |
| `donutspawn.reload` | Allows reloading plugin configuration |
---
## ⚙️ Config Example (`config.yml`)
```
spawn:
world: world
x: 0.5
y: 64.0
z: 0.5
yaw: 0.0
pitch: 0.0
teleport-delay: 5
protection:
enabled: true
radius: 16
prevent-pvp: true
prevent-break: true
prevent-place: true
prevent-damage: true
messages:
only-player: "§cOnly players can execute this command."
spawn-location-not-set: "§7Spawn location is not set."
set-spawn-success: "§aYou've successfully set the spawn location."
no-permission: "§cYou do not have permission to use this command."
reload-config-success: "§aSpawn configuration reloaded."
teleport-countdown: "§7Teleporting to spawn in §b%countdown% §7seconds!"
teleport-cancelled: "§cTeleport cancelled because you moved!"
teleport-success: "§7Teleported!"
teleport-direct: "§7Teleported directly!"
respawn-at-spawn: "§eYou have been respawned at spawn."
first-join-spawn: "§eWelcome! You've been sent to the server spawn."
```
---
## ⚡ How It Works
* Use `/setspawn` to define your server’s central spawn point.
* When players type `/spawn`, they’ll begin a countdown (default: 5 seconds) and get teleported if they don't move.
* If players die without a bed, they will respawn at the spawn point automatically.
* New players spawn at the spawn on first join.
* When enabled, spawn protection prevents damage, PvP, building, and breaking blocks in a set radius.
---
## 📦 Installation
1. Download the plugin `.jar` file.
2. Drop it in your `/plugins/` folder.
3. Restart the server.
4. Use `/setspawn` to configure your spawn.
5. Edit `config.yml` as needed and use `/reloadspawn` to apply changes.
---
## 🧩 Compatibility
✅ Tested on Minecraft 1.19 – 1.20+
✅ Compatible with most survival and lifesteal servers
⚡ No external dependencies required
---
## 🌍 Need Help?
**Discord:** [https://discord.gg/9njKeJzWF4](https://discord.gg/9njKeJzWF4)
---
```
```