MonitoringMinecraft MonitoringMinecraft

FancySetSpawn

Плагин BukkitPaperPurpur

Плагин для Майнкрафт: управление спавном с настраиваемыми сообщениями и звуками. Команды /setspawn и /spawn

689 скачиваний 1 подписчик
Оцените первым

baner

This plugin allows players to set a spawn point and teleport to it.

Features

  • Set spawn: Players can set the spawn to their current position using the /setspawn command.
  • Teleport to spawn: Players can teleport to the spawn using the /spawn command.
  • Sound effects: The plugin plays sound effects during teleportation and spawn setting.
  • Configuration management: The plugin uses configuration files to manage messages and sounds.

Installation

  1. Download the plugin from GitHub.
  2. Place the plugin files into the plugins folder of your Minecraft server.
  3. Restart the server.

Usage

  • Set spawn: Use the /setspawn command.
  • Teleport to spawn: Use the /spawn command.

Configuration

The plugin configuration can be found in the config.yml file. Here you can modify messages and sound effects.

Configuration Examples

messages:
  messageLocation: actionbar # Possible values: chat or 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."
sounds:
  teleport: "minecraft:entity.experience_orb.pickup"
  setSpawn: "minecraft:entity.experience_orb.pickup"
  playerJoin: "minecraft:entity.player.levelup"  # Sound when a player joins
soundSettings:
  volume: 1.0
  pitch: 1.0

API Usage (Requires version 1.2 or higher)

The plugin provides a simple API for other plugins:

// Example usage of the API in another plugin
public void teleportToSpawn(Player player) {
    // Get the instance of the FancySpawn plugin
    SetSpawn plugin = (SetSpawn) getServer().getPluginManager().getPlugin("FancySetSpawn");
    
    if (plugin != null && plugin.isEnabled()) {
        // Get the API
        FancySpawnAPI api = plugin.getAPI();
        
        // Teleport the player to the spawn location
        api.teleportPlayerToSpawn(player);
    }
}

Available API Methods

  • getSpawnLocation() – Returns the spawn location
  • teleportPlayerToSpawn(Player) – Teleports the player to the spawn location
  • isSpawnSet() – Checks whether the spawn location is set

🌐 Official Website  |  💻 GitHub Profile

Built with ❤️ by patek_cz

Смотри также

Похожие подборки плагины — по версиям Майнкрафта, загрузчикам и жанрам.

Сервера Майнкрафт

Играть интереснее на сервере — выбирай в рейтинге серверов Майнкрафт и заходи прямо сейчас.

SkyBars
SkyBars Java + BE
630 онлайн
1.8 — 26.2 версия
🎮 ВЫЖИВАНИЕ ⚔️ АНАРХИЯ 🚗 ГТА РП 🎤 ГОЛОСОВОЙ ЧАТ 🎁 БЕСПЛАТНЫЙ ДОНАТ 🌟 СМП 💻 ПК+ТЕЛЕФОН
Minestory
13 онлайн
1.21 — 26.2 версия
Выживание • Экономика • Кланы • Приваты • Ивенты • PVP • Работа
BULLCRAFT
BULLCRAFT Java + BE
52 онлайн
26.2 версия
Анархия! PvP | Работают поршни и вагонетки
ReallyWorld КОПИЯ ВСЕМ АДМИНКА
8 онлайн
1.16.5 — 1.21.1 версия
ПвП, Гриферство, бесплатный донат Dragon, AIR DROP
MineLauncher
Лаунчер Майнкрафт без лицензии — все версии
Бесплатный лаунчер для ПК и Андроид — все версии 26.2, 1.21.11, 26.1.2, 1.21.4. Fabric, NeoForge, Forge, шейдеры, моды и скины в один клик.
Без лицензии Fabric, NeoForge, Forge Моды, шейдеры, скины Все версии Майнкрафта ПК и Андроид Для слабых ПК Сервера в лаунчере
Скачать бесплатно
Windows и Андроид · Бесплатно · Без лицензии
Наш чат