Перейти к содержимому
Mineforgian

MySpawn

a lightweight plugin that simplifies spawn management with features like customizable join/quit messages, automatic teleportation to spawn on join, void fall protection, configurable sounds and fireworks effects, and cooldown for spawn command.

Загрузки
2K
Подписчики
0
Обновлён
23 декабря 2025 г.
Лицензия
Apache-2.0

Опубликован 11 декабря 2025 г.

Исходный код

Features

  • Easy setup and config.
  • Customizable messages.
  • Player join, first join, Player leave
  • Void fall, Sounds, Motd, Fireworks!.

Commands

  • /setspawn - Set spawn

  • /spawn - Teleport to spawn

  • /myspawn, /myspawn help - Help command

  • /myspawn reload - Reload

    Note: when you change the language it is updated when the server is restarted

Permissions

  • myspawn.setspawn - /setspawn
  • myspawn.setfirstspawn - /setfirstspawn
  • myspawn.reload - /myspawn reload
  • myspawn.admin or Op - Sound AdminJoin is enabled
  • myspawn.update-check or Op - Notify an Update

Installation

  • Download the plugin.
  • Put MySpawn.jar into the plugin's folder.
  • Start your server.
  • Set spawn.
  • Modify config.yml (Optional).
  • Reload config (if you modified config.

Supported Software

Spigot PaperMC

Supported Versions

1.8.8 - 1.9.x - 1.10.x - 1.11.x - 1.12.x - 1.13.x - 1.14.x - 1.21.x

Pictures

Console Welcome

Config

config.yml
#Check for a plugin update
Update-check: true
Options:
  #LANGUAGES: EN ES
  Language: 'EN'
  #Send a message when the player first joins
  First-join: true
  #Send a message when the player joins
  Player-join: true
  #Send a message when the player leaves
  Player-quit: true
  #Send a list of messages when the player joins, example:
  #- '&m                                             '
  #- '&6&lWelcome to &c&lserver &a&l{player}'
  #- '&m                                             '
  Motd: true
  #Teleport a player when he joins for the first time
  Teleport-to-firstjoin: true
  #Teleport a player when he joins
  Teleport-to-join: true
  #Teleport a player when he respawns
  Teleport-to-respawn: true
# ─────────────── VOID TELEPORT SETTINGS ───────────────
# Automatically teleports players to spawn if they fall into the void.
# ──────────────────────────────────────────────────────

Void-Teleport:
  # Enable or disable void teleport feature
  Enabled: true

  # Prevents fall damage when teleported from the void
  No-Damage: true

  # Minimum Y-coordinate before the player is considered falling into the void
  # Suggested: -15 for 1.8.x — -95 for 1.14+ due to new world generation
  Trigger-Y-Level: -90

  # Choose whether to use a whitelist or blacklist for allowed worlds
  # Options: whitelist / blacklist
  World-Filter-Type: whitelist

  # List of worlds for which void teleport is allowed/blocked (based on filter type above)
  Filtered-Worlds:
    - world
    - theangel256
    - donate-me
# ─────────────── /SPAWN TELEPORT SETTINGS ───────────────
# Controls related to /spawn behavior, damage prevention, and cooldown.
# ─────────────────────────────────────────────────────────

Spawn-Teleport:
  # Prevents fall damage after using /spawn (e.g., if falling into void)
  No-Damage: true

  # Enable or disable cooldown for the /spawn command
  Cooldown-Enabled: true

  # Time in seconds before teleporting the player after using /spawn
  Cooldown-Time: 15
Sounds:
  # ─────────────── SOUND CONFIGURATION GUIDE ───────────────
  # Check the full list of Minecraft sound names for your version:
  #   • 1.8.x - 1.12.x → https://pastebin.com/W8ZnDx3V
  #   • 1.13+          → https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html
  #
  # Format:
  #   SOUND_NAME;VOLUME;PITCH
  #
  # Values:
  #   ▸ Volume: 1 - 10   (1 = quiet, 10 = loud)
  #   ▸ Pitch:  1 - 10   (1 = deep/slow, 5 = normal, 10 = high/fast)
  #
  # Examples:
  #   ▸ BLOCK_ANVIL_LAND;10;5 → Loud volume, normal pitch
  #   ▸ BLOCK_ANVIL_LAND;5;1  → Medium volume, deep pitch (slower)
  #   ▸ BLOCK_ANVIL_LAND;1;10 → Quiet, high pitch (chipmunk style)
  # ──────────────────────────────────────────────────────────

  # Sound when using /spawn
  Spawn:
    Enabled: true
    Sound: ENTITY_ENDER_DRAGON_GROWL;7;1

  # Sound when an admin joins the server
  Admin-Join:
    Enabled: true
    Sound: BLOCK_ANVIL_LAND;5;5

  # Sound for all players on join
  Join:
    Enabled: true
    Sound: BLOCK_NOTE_BLOCK_PLING;7;5

  # Sound for a player's first time joining
  First-Join:
    Enabled: true
    Sound: ENTITY_PLAYER_LEVELUP;7;5

  # Sound when a player falls into the void
  Void-Fall:
    Enabled: true
    Sound: ENTITY_GENERIC_EXPLODE;7;5
 
Fireworks:
  # Fireworks when the player joins
  Join:
    Enabled: true
    Power: 1            # Power level (1 to 3)
    Colors:             # List of colors (Named or Hex) RED, GREEN, BLUE, YELLOW, PURPLE, WHITE, BLACK, 
                        # PINK, ORANGE, CYAN, MAGENTA, LIME, LIGHT_BLUE, BROWN, LIGHT_GRAY, GRAY
      - "RED"
      - "GREEN"
    Type: "BALL"        # Type: BALL, BURST, STAR, CREEPER, BALL_LARGE
    Trail: true         # Whether the firework has a trail effect
    Flicker: false      # Whether the firework flickers
    No-Damage: true     # Whether the firework deals damage

  # Fireworks on first join
  First-join:
    Enabled: true
    Power: 2
    Colors:
      - "BLUE"
      - "YELLOW"
    Type: "STAR"
    Trail: true
    Flicker: false
    No-Damage: true

  # Fireworks when using /spawn command
  Spawn:
    Enabled: true
    Power: 3
    Colors:
      - "PURPLE"
      - "WHITE"
    Type: "BURST"
    Trail: true
    Flicker: false
    No-Damage: true

Permissions:
  Update-check: 'myspawn.update-check'
  Admin-join: 'myspawn.admin'
  Reload: 'myspawn.reload'
  Set-Spawn: 'myspawn.setspawn'
  Set-FirstSpawn: 'myspawn.setfirstspawn'
  Bypass-Cooldown: 'myspawn.cooldown-bypass'
  Set-Firework: 'myspawn.setfirework'
messages_en.yml
Messages:
  Motd:
    - '&m                                             '
    - '&6&lWelcome to &c&lserver &a&l{player}'
    - '&m                                             '
  SpawnDefined: '&aspawn defined correctly'
  UndefinedSpawn: '&cthere is no server spawn'
  Spawn: '&ayou have been teleported'
  Player-join: '&6{player} joined the server!'
  Player-quit: '&6{player} left the server!'
  First-join: '&dWelcome {player} to the server, give him the welcome'
  Voidfall: '&c&lWARNING: &7Do not fall'
  Cooldown: '&cYou must wait &e{time} &cto execute this command'
messages_es.yml
Messages:
  Motd:
    - '&m                                             '
    - '&6&lBienvenido al &c&lservidor &a&l{player}'
    - '&m                                             '
  SpawnDefined: '&aSpawn definido correctamente'
  UndefinedSpawn: '&cNo hay spawn definido'
  Spawn: '&aHas sido teletransportado'
  Player-join: '&6{player} se unio al servidor!'
  Player-quit: '&6{player} dejo el servidor'
  First-join: '&dBienvenido {player} al servidor, dale la bienvenida'
  Voidfall: '&c&lCUIDADO: &7No caigas'
  Cooldown: '&cDebes esperar &e{time}s &cpara ejecutar este comando'

Ченджлог

2.2.2Релиз1.8.8, 1.21.11 · 23 декабря 2025 г.

[Fix] Resolved a NullPointerException in commands when file messages was missing.

[Refactor] Configuration file names: Spawn.yml -> locations.yml, and lowercase message files.

[Refactor] Configuration files (locations.yml, messages_en.yml, config.yml) are now automatically restored if deleted when the plugin reloads.

[Fix] Removed an unused imports

[Fix] Updated cooldown to include decimal unit.

More Information: github.com/Theangel256/MySpawn/releases/tag/v2.2.2

2.2.1Релиз1.8.8, 1.21.11 · 23 декабря 2025 г.

[Feature] Added Respawn listener to handle player respawn teleportation.

[Feature] Added 'Teleport-to-respawn' option in config.yml to toggle this feature.

[Fix] Improved Join listener: added fallback to main Spawn if FirstSpawn is not set.

[Fix] Removed an unused imports

[Fix] Updated cooldown to include decimal unit.

2.2Релиз1.8.8, 1.21.11 · 13 декабря 2025 г.

ArchUpdate I am excited to present MySpawn v2.2, a major update focused on internal stability, architectural modernization, and full cross-version compatibility (1.8 - 1.21+).

🚀 Key Highlights

🛠️ Centralized Configuration Architecture

I have completely rewritten how the plugin handles files. The new LocationManager now acts as the central brain for all configuration I/O.

  • What this means for you: More stable reloads, fewer bugs when switching languages, and a cleaner codebase for future updates.
  • Hot-Reloading: The /myspawn reload command is now smarter. It atomically reloads Spawn.yml, config.yml, and your language file without needing a server restart.
  • Dynamic Language Switching: Changing Options.Language in config.yml and reloading now instantly switches the plugin's language in real-time.

🔊 Smart Sound Engine

Say goodbye to console warning on modern versions!

  • Noise: The plugin now uses a "try-catch-retry" strategy. It attempts to use modern sound names first and gracefully falls back to legacy (1.8-1.12) names if needed.
  • Result: Perfect sound playback on any server version from 1.8.8 to 1.21.11.

🐛 Critical Fixes

  • Firework Damage: Fixed a persistent issue where fireworks could damage players even with No-Damage enabled. We now use persistent metadata (myspawn_nodamage) to guarantee safety.
  • Legacy Warnings: Added api-version: 1.13 to plugin.yml to suppress "Legacy plugin" warnings on modern servers, while keeping full support for older versions.

📋 Changelog

Refactoring

  • [Refactor] Centralized all config logic into LocationManager.
  • [Refactor] Isolate Main class from direct file management; delegated to LocationManager.
  • [Refactor] Made PluginConfig mutable to support runtime reloading.

Features

  • Update 2.2 (The Architecture Update) (7e41334)
  • feat: Add update checker and version utility classes, bump plugin version, and include gitignore. (cdfca1e)
  • feat: Implemented context-aware locale switching in reloadConfig().
  • feat: Enhanced VersionUtils with semantic version analysis for accurate legacy detection (1.7-1.12).
  • feat: Added new sub-option in Fireworks, No-Damage!, check config.yml for more information

Bug Fixes

  • [Fix] Resolved IllegalArgumentException for sounds on 1.13+ servers.
  • [Fix] Fixed race conditions in firework damage negation.
  • Bump to 2.1.2 alpha version Update new config to README.md (96968dd)
  • Update new config to README.md (646f7e0)
2.1.1Релиз1.8.8, 1.21 · 11 декабря 2025 г.

Diffs to 2.1 (Minor Changes & Bug Fixes Update)

Features:

  • Added void fall damage option when teleport to spawn location
  • Better structure for the config.yml file (added comments and organized sections again...)
  • WARNING!! YOU NEED TO REGENERATE YOUR CONFIG.YML FILE

Fixes:

  • Fixed a bug where the spawn teleportation on join option was not working correctly
  • Plugin should be correctly works on 1.21.5 with Java 17+
  • Fixes Sounds in 1.9+ - 1.12.x they are not working correctly

Know issues:

  • Fireworks make damage to the player

Комментарии

Загружаем…