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

KX-Spawn

A lightweight spawn management plugin for Minecraft servers with Folia support. Players can set and teleport to spawn points, with movement detection to cancel teleportation and fully configurable messages.

Загрузки
131
Подписчики
4
Обновлён
10 июля 2025 г.
Лицензия
GPL-3.0-only

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

✨ KX-Spawn Plugin

CodeFactor

Welcome to the KX-Spawn plugin! 🎉 This is a simple, lightweight spawn plugin that supports Folia and all Paper forks. It provides essential spawn management features for your Minecraft server 🧭.

🚀 Features

  • Folia Support: Fully compatible with Folia, ensuring smooth performance and stability.
  • 🌀 Teleportation: Allows players to teleport to the spawn location with a configurable delay.
  • 🧍‍♂️ Movement Check: Cancels teleportation if the player moves, ensuring they stay in place.
  • 💬 Custom Messages: Configurable messages for teleportation events, including cancellation and completion.
  • ♻️ Configuration Reload: Easily reload configuration and messages without restarting the server.
  • 🧵 Concurrent Handling: Uses thread-safe data structures for optimal performance.

📦 Installation

  1. 📥 Download the latest version of the KX-Spawn plugin from here or from the releases page.
  2. 📂 Place the downloaded .jar file into your server's plugins directory.
  3. 🔁 Start or restart your Minecraft server to load the plugin.
  4. 🛠️ Configure the plugin by editing the config.yml and messages.yml files in the plugins/KX-Spawn directory.

🧭 Commands

  • /spawn - Teleports the player to the spawn location.
  • /spawn set - Sets the current location as the spawn point (requires permission).
  • /spawn reload - Reloads the plugin configuration and messages (requires permission).

🔐 Permissions

  • kx.spawn.use - Allows the use of the /spawn command.
  • kx.spawn.set - Allows setting the spawn location.
  • kx.spawn.reload - Allows reloading the plugin configuration and messages.
  • kx.spawn.bypass - With this permission user can bypass required spawn teleportation time.
  • kx.spawn.others - With this permission user can teleport other players.

⚙️ Configuration

The plugin provides a config.yml file for setting the teleportation delay and movement check options. The messages.yml file allows you to customize the messages sent to players during teleportation events.

🛠️ Support

If you encounter any issues or have any questions, please report them on the GitHub issues page.

🙌 Thank you for using KX-Spawn! We hope it enhances your Minecraft server experience. 🧡

Ченджлог

1.2-RELEASEРелиз1.21.5, 1.21.6, 1.21.7 · 10 июля 2025 г.

📦 KX-Spawn 1.2 — Changelog

Compare 1.1...1.2 on GitHub

✨ Major Changes

  • Multi-module Gradle Setup

    • Project is now split into paper and bukkit modules for better platform separation and maintainability.
    • Cleaned up old src structure and removed unnecessary files.
  • Enhanced Build & CI

    • Updated Gradle configuration: shared settings in root build.gradle, module-specific Java toolchains.
    • GitHub Actions CI now builds both modules with Java 17 and 21 for maximum compatibility.

🆕 Features

  • Teleportation Sounds & Feedback

    • Added XSound integration for teleportation feedback.
  • Metrics

    • Implemented bStats metrics collection for plugin usage analytics.
  • Configurable Teleportation

    • Added teleportOnEveryJoin configuration option.
    • Enhanced messages config with comprehensive documentation.
  • Dynamic Command System

    • Implemented configurable command system with bridge architecture.
    • Added @description annotations to all commands and subcommands.
    • Migrated from hardcoded to config-based permission system.
    • Created Command and SubCommand models with serialization support.
    • Added support for dynamic command configuration (aliases, permissions, enable/disable).
    • Enhanced error messages and permission handling consistency.
  • WorldGuard Integration

    • Added instant region checking with WorldGuard.
    • Region configuration and caching for performance.
    • Region-based instant teleportation and bypass permission.

🛠️ Improvements & Fixes

  • Improved code quality and fixed various bugs.
  • Enhanced configuration reload to refresh cached regions and settings.
  • Moved command and config related classes to bridge package structure.
  • Refactored and modularized code for easier maintenance and extension.

⚠️ Breaking Changes

  • Command and config classes moved to the bridge package.
  • Permission system now requires configuration setup.
  • Hardcoded permissions replaced with configurable values.

Upgrade Notes:

  • Please review your configuration files and update as needed for the new command and permission system.
  • If you use WorldGuard, enjoy new region-based instant teleport features!

For more details, see the full 1.1...1.2 diff on GitHub.


1.2-RELEASEРелиз1.20.4, 1.20.5, 1.20.6 · 10 июля 2025 г.

Bukkit release (soon to be removed)

1.1-RELEASEРелиз1.21.5, 1.21.6, 1.21.7 · 3 июля 2025 г.

KX-Spawn v1.1 - Major Update

🎵 New Features

Audio Feedback System

  • Teleportation Sounds: Added XSound integration for immersive audio feedback
  • Countdown Audio: Subtle UI_BUTTON_CLICK sound during teleportation countdown
  • Success Sound: Satisfying BLOCK_NOTE_BLOCK_PLING when teleportation completes
  • Fully Configurable: Set sounds to null to disable, or use any Minecraft sound name

Analytics & Metrics

  • bStats Integration: Anonymous usage statistics to help improve the plugin
  • Privacy Focused: Server owners can opt-out via bStats/config.yml
  • Performance Monitoring: Track plugin usage and server compatibility

Enhanced Spawn Options

  • Always Spawn on Join: New teleportOnEveryJoin option for all player joins
  • Combat Cancellation: cancelOnDamage setting to interrupt teleportation during combat
  • Respawn Override: Proper spawn point override using PlayerRespawnEvent

⚙️ Configuration Improvements

Smart Time Localization

  • Custom Time Format: Configure time units for different numbers
  • Multi-language Support: Easy localization with localFormat map
  • Flexible Placeholders: Use {TIME} and {FORMAT} separately for better control

Enhanced Documentation

  • Comprehensive Headers: Detailed explanations in configuration files
  • Message Type Guide: Clear documentation for TITLE, CHAT, ACTIONBAR, etc.
  • Placeholder Reference: Complete list of available placeholders

🔧 Technical Improvements

Code Quality

  • Lombok Integration: Reduced boilerplate code with automatic getters/setters
  • Refactored Listeners: Extracted common methods for better maintainability
  • Improved Error Handling: Better exception management and logging

Performance Optimizations

  • Efficient Sound Handling: Optional sound system with minimal overhead
  • Optimized Scheduling: Better task management for teleportation countdown
  • Memory Management: Improved cleanup and resource handling

🐛 Bug Fixes

  • Fixed Respawn Logic: Proper spawn point override using PlayerRespawnEvent
  • Improved Combat Detection: Better damage event handling for teleportation cancellation
  • Configuration Validation: Enhanced config loading with proper error handling
  • Thread Safety: Improved concurrent access handling

📋 Full Changelog

Added

  • XSound integration for teleportation audio feedback
  • bStats metrics collection for plugin analytics
  • teleportOnEveryJoin configuration option
  • cancelOnDamage setting for combat interruption
  • Time localization system with localFormat map
  • Comprehensive configuration documentation
  • Lombok annotations for cleaner code

Changed

  • Switched from PlayerDeathEvent to PlayerRespawnEvent for proper respawn handling
  • Refactored ActionListener with extracted common methods
  • Enhanced messages.yml with detailed headers and examples
  • Improved sound configuration with null-disable option

Fixed

  • Respawn location override now works correctly
  • Combat damage properly cancels teleportation countdown
  • Configuration loading errors are handled gracefully
  • Thread safety improvements for concurrent operations

🔗 Compatibility

  • Minecraft: 1.18.2+
  • Server Software: Paper, Spigot, Folia
  • Java: 17+
  • Dependencies: None required (XSound bundled)

📥 Installation

  1. Download the latest version
  2. Place in your plugins/ folder
  3. Restart your server
  4. Configure in plugins/KX-Spawn/config.yml and messages.yml

This update brings significant improvements to user experience with audio feedback, better configuration options, and enhanced code quality. Perfect for servers wanting a polished spawn system with modern features.

Комментарии

Загружаем…