▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Плагины/Spawn | FancySetSpawn
Spawn | FancySetSpawn

Spawn | FancySetSpawn

📍 Simple spawn management plugin ⚙️ Custom messages 💬 Teleport sounds 🔊 /setspawn | /spawn 🚀 Supports 26.x ✅

Оцените первым
795
1

!FancySpawn banner

A simple spawn plugin for Spigot and Paper.

FancySetSpawn lets players set a server spawn and teleport back to it with /spawn. It also supports customizable sounds, messages, and action bar notifications.

Works with Spigot and Paper 1.8.8+.

Features

!settings !setspawn !spawn

  • Set spawn with /setspawn
  • Teleport to spawn with /spawn
  • Custom sounds for teleporting, setting the spawn, and joining
  • Chat or action bar messages
  • In-game configuration through /fancyspawn
  • Configurable sounds, volume, pitch, and messages
  • Reload configuration without restarting the server
  • API for other plugins, available since version 1.2

Commands

CommandPermissionDescription
/setspawnfancyspawn.setspawnSets the spawn at your current location.
/spawnfancyspawn.spawnTeleports you to the saved spawn.
/fancyspawnfancyspawn.adminShows the current settings.
/fancyspawn reloadfancyspawn.adminReloads the configuration and spawn data.
/fancyspawn sound <teleport|setspawn|join> <sound|off>fancyspawn.adminSets or disables a sound.
/fancyspawn volume <0-10>fancyspawn.adminChanges the sound volume.
/fancyspawn pitch <0.5-2>fancyspawn.adminChanges the sound pitch.
/fancyspawn messagelocation <chat|actionbar>fancyspawn.adminSelects where messages are displayed.
/fancyspawn message <set|teleport|notset|onlyplayer> <text>fancyspawn.adminChanges a player message. Supports & color codes.

Permissions

PermissionDefaultDescription
fancyspawn.spawnEveryoneAllows /spawn.
fancyspawn.setspawnOperatorsAllows /setspawn.
fancyspawn.adminOperatorsAllows /fancyspawn and its subcommands.

Installation

  1. Download the latest FancySpawn .jar.
  2. Put it into your server's plugins folder.
  3. Start or restart the server.
  4. Configure the plugin in plugins/FancySetSpawn/config.yml, or use /fancyspawn.

The spawn location is stored in:

plugins/FancySetSpawn/spawnconfig.yml

Configuration

FancySpawn supports both chat and action bar messages.

Set messageLocation to either chat or actionbar.

Sounds can be disabled by setting them to off or leaving them empty.

config.yml
messages:
  messageLocation: actionbar
  spawnSet: "&aSpawn has been set to your current location!"
  teleportToSpawn: "&aYou have been teleported to spawn!"
  spawnNotSet: "&cSpawn position is not set."
  commandOnlyPlayer: "&cThis command can only be used by a player."
  reloaded: "&aConfiguration reloaded."
  reloadFailed: "&cCould not reload the configuration. Check the console."
  valueSet: "&a{key} set to &f{value}&a."
  soundDisabled: "&aSound &f{key} &ahas been disabled."
  saveFailed: "&cCould not save the configuration."

sounds:
  teleport: "minecraft:entity.experience_orb.pickup"
  setSpawn: "minecraft:entity.experience_orb.pickup"
  playerJoin: "minecraft:entity.player.levelup"

soundSettings:
  volume: 1.0
  pitch: 1.0

After changing the configuration manually, use:

/fancyspawn reload

API

FancySpawn provides an API for other plugins starting with version 1.2.

The API allows other plugins to access the saved spawn and teleport players to it.

Add FancySpawn as a dependency in your plugin.yml:

depend: [FancySetSpawn]

The plugin name is FancySetSpawn.

Available methods

MethodDescription
getSpawnLocation()Returns the saved spawn location, or null if it is not set or its world is unavailable.
isSpawnSet()Returns true if a valid spawn is set.
teleportPlayerToSpawn(Player)Teleports the player to the saved spawn and handles the teleport sound and message. Returns false if the teleport fails.
API example
import org.bukkit.entity.Player;
import org.patekcz.setSpawn.FancySpawnAPI;
import org.patekcz.setSpawn.SetSpawn;

public void teleportToSpawn(Player player) {
    SetSpawn plugin = (SetSpawn) getServer()
            .getPluginManager()
            .getPlugin("FancySetSpawn");

    if (plugin == null || !plugin.isEnabled()) {
        return;
    }

    FancySpawnAPI api = plugin.getAPI();
    api.teleportPlayerToSpawn(player);
}

☕ Support me on Ko-fi

Built with ❤️ by patek_cz

Партнёрский материал

Сервер для плагина Spawn | FancySetSpawn - как у профи

Плагин Spawn | FancySetSpawn создан для серверов: на своём сервере вы настраиваете его под себя и решаете, кому играть. Создать сервер с плагином Spawn | FancySetSpawn для друзей можно за пару минут - BungeeHost всё уже подготовил.

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

26.3.x26.2.x26.1.x1.21.x1.20.x1.19.x1.18.x1.17.x1.16.x1.15.x1.14.x1.13.x1.12.x1.11.x1.10.x1.9.x1.8.x

Платформы

Поддерживаемые окружения

Сервер

Ссылки

Создатели

Детали

Лицензия:
Опубликован:1 год назад
Обновлён:1 неделю назад
Главная