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

ServerSwitch

ServerSwitch is a versatile plugin for BungeeCord and Spigot servers, offering comprehensive server switch logging and serving as an alternative to OnlyProxyJoin. MYSQL is required.

Загрузки
3K
Подписчики
4
Обновлён
26 марта 2026 г.
Лицензия
MIT

Опубликован 14 мая 2024 г.

MySQL needed!

JSMySQLFix is REQUIRED for the Velocity version

ServerSwitch is a versatile plugin designed for both BungeeCord and Spigot servers, providing comprehensive server switch logging and serving as an alternative to OnlyProxyJoin. With ServerSwitch, you can effortlessly track player server switches and customize their join experience, enhancing your server network management capabilities.

Features:

  1. Server Switch Logging: ServerSwitch logs player server switches to a MySQL database, providing valuable insights into player behavior and server traffic patterns across both BungeeCord and Spigot servers.
  2. OnlyProxyJoin Alternative: Replace OnlyProxyJoin with ServerSwitch to control player joins and implement custom join messages and actions based on specific criteria, catering to the needs of your server network.
  3. Automatic Cleanup: The plugin includes a feature to automatically delete old server switch records, ensuring optimal database performance and storage efficiency for both BungeeCord and Spigot servers.
  4. Customizable Configuration: Easily configure the MySQL connection settings, join messages, and other plugin options through the included configuration file, offering flexibility and customization for your server network setup.
  5. Lightweight and Efficient: ServerSwitch is lightweight and designed for efficiency, ensuring minimal impact on both BungeeCord and Spigot server performance while delivering robust functionality for server switch logging and player join management.

Instructions:

  1. Place the serverswitch.jar file in the plugins folder of both your BungeeCord and Spigot servers.
  2. Customize the plugin settings, including the MySQL connection details and join messages, in the config.yml file located in the plugin's folder on both server types.
  3. Restart your BungeeCord and Spigot servers to apply the changes.
  4. ServerSwitch will now log player server switches and handle player joins according to your configured settings on both BungeeCord and Spigot servers.

Enhance your server network management and provide a seamless join experience for your players with ServerSwitch today!

config.yml
# Connect to your Database! (IS REQUIRED!)

database:
  url: "jdbc:mysql://127.0.0.1:3306/YourDB" # Set Infos here
  username: "root"
  password: "password"

# YOU HAVE TO SET A SERVERNAME! THE SERVER NAME HAVE TO BE THE SAME AS THE BUNGEECORD NAME TO THIS SERVER!!
server:
 # YOU HAVE TO SET A SERVERNAME! THE SERVER NAME HAVE TO BE THE SAME AS THE BUNGEECORD NAME TO THIS SERVER!!
  servername: "SETITHERE!" # Example: servername: "Lobby-01"

# Set your custom messages and permissions

messages:
  kick: '§cYou need to join through the proxy!'
  staff_notification: '§c{player} attempted to join without going through the proxy!'
  joinMessage: '§e{player} joined'
  leaveMessage: '§e{player} left the server'

permissions:
  notify: 'serverswitch.notify' # Set Permission here

settings:
    Custom-join-leaveMessages: false
    Disable-join-leaveMessages: false
bungeeconfig.yml
# Connect to your Database! (IS REQUIRED!)

database:
  url: "jdbc:mysql://127.0.0.1:3306/YourDB"
  username: "root"
  password: "password"

Ченджлог

2.0.0Релиз1.21.10, 1.21.11, 26.1 · 26 марта 2026 г.

Changelog – ServerSwitch 2.0.0

This is a major release featuring a complete overhaul of the core architecture and full support for the modern Velocity API.

New Features & Improvements

  • Brand New Module System (v2.0): Introduced a completely new architecture for server features. All currently available modules (including FeatureManager, Webhooks, Rate-Limiting, Cooldown, etc.) are brand new in v2.0 and did not exist in previous versions.
  • Velocity Module Evolution:
    • New Configuration System: Replaced the external ConfigurationNode dependency with a faster, custom-built SimpleYamlConfig parser.
    • Full YAML Support: Seamlessly handles nested values and YAML lists (e.g., for blacklists and webhooks).
  • Modern API Compliance:
    • Resolved all deprecation warnings in the Spigot module (PlayerLoginEvent.disallow, etc.) while maintaining full compatibility from Minecraft 1.8 to 1.21.
    • Updated BungeeCord to use modern TextComponent constructors, reducing console clutter.

Bug Fixes

  • Fixed Proxy Join Detection: Resolved "Direct join detected" false positives by increasing the database ticket timeout and optimizing the registration order of event listeners.
  • Update Logic Improvement: Fixed the update checker to correctly recognize v2.0.0 as a separate, newer branch, preventing accidental downgrades to 1.3.x.
  • BungeeCord Stability: Fixed potential NullPointerExceptions during database initializations.
  • Resolved a critical NullPointerException when loading empty configuration nodes in the Velocity module.
  • Fixed method ambiguity in the configuration loader, ensuring accurate property retrieval.
  • Corrected syntax errors in the database auto-delete timer and update checker.
  • Fixed type conversion issues between SimpleYamlConfig and legacy configuration nodes.
1.3.5Релиз1.21.9, 1.21.10, 1.21.11 · 18 февраля 2026 г.

Changelog – ServerSwitch 1.3.5

This is a crucial stability update that significantly improves how the plugin handles unstable database connections.

Changes & Improvements

  • Database Stability (All Platforms): Implemented a robust automatic reconnection system for Spigot, BungeeCord, and Velocity. The plugin will now detect a lost database connection and attempt to re-establish it periodically, preventing the plugin from becoming unresponsive.
  • Improved Error Handling (Spigot): Enhanced error handling during player login to prevent issues when the database is temporarily unavailable.
  • Resource Management (Velocity): The plugin now correctly closes the database connection when the Velocity proxy shuts down, preventing potential connection leaks.
1.3.4Релиз1.21.9, 1.21.10, 1.21.11 · 13 января 2026 г.

Changes & Improvements

  • License System: Migrated to a new license server infrastructure. The plugin now provides more detailed feedback regarding license validity, expiration, and deactivation reasons.
  • Internal API: Updated API endpoints and response parsing logic for license validation across Spigot, BungeeCord, and Velocity.
1.3.3Релиз1.21.9, 1.21.10, 1.21.11 · 13 января 2026 г.

Changes & Improvements

  • MySQL Compatibility: Implemented a driver fallback system. The plugin now attempts to load the modern com.mysql.cj.jdbc.Driver first and falls back to com.mysql.jdbc.Driver if not found. This resolves startup issues on older Minecraft versions (e.g., 1.8.8).
  • Build System: Refined build configuration to support a wider range of Java versions (Java 8 to Java 21) ensuring correct compilation for legacy and modern server software.

Bug Fixes

  • Fixed a critical bug where the plugin would disable itself on 1.8 servers due to missing database drivers.
1.3.2Релиз1.21.6, 1.21.7, 1.21.8 · 11 августа 2025 г.

Version 1.3.2 – Velocity API Update & Stability Fixes

Updated for latest Velocity API: Replaced deprecated ServerConnectEvent with modern ServerPreConnectEvent for full compatibility with current Velocity versions.

Improved target server detection: The final destination server is now correctly identified before connection, even when redirects occur.

Pre-join blacklist and limit checks: Players are now blocked before switching servers, preventing unnecessary connections.

Stability improvements: Minor internal optimizations and improved logging for better maintainability.

1.3.1Релиз1.21.6, 1.21.7, 1.21.8 · 6 августа 2025 г.

Changelog – ServerSwitch 1.3.1

Changes & Improvements

  • Java 21 Support: Full compatibility with Java 21 for all supported server types (Spigot/Paper, BungeeCord, Velocity).

  • Velocity: Added missing loadConfig() method to properly support reloading and configuration changes.

  • Reload Command: Implemented /serverswitch reload for Spigot/Paper, BungeeCord, and Velocity.

  • MySQL: Modernized the JDBC URL and updated the MySQL driver.

  • Bug Fixes:

    • Fixed issues with table handling (PRIMARY KEY) and configuration processing.
    • Improved error handling for database connections.
    • Enhanced blacklist and limit validation.
  • New Features:

    • Optional settings for auto-update and logging.
    • Update checker for all platforms.
    • Velocity: Added blacklist, API key verification, free-limit handling, and custom table name support in line with other platforms.

Notes

  • This version is a beta release and may contain bugs.
  • If you encounter any issues, please join the Discord server for support.
1.3Релиз1.21.3, 1.21.4, 1.21.5 · 15 мая 2025 г.

ServerSwitch – Version 1.3 🚀

Date: May 15, 2025

What’s New ✨

Clear distinction between Free & Pro versions: Pro users unlock advanced features like server switch validation, API key authentication, and full database integration. Free users enjoy basic functionality with usage limits and no custom table support.

Improved Blacklist Management:

Blacklists are now reliably loaded from the config and enforced on player login.

Automatic Database Connection Monitoring:

Ensures stable MySQL connections with automatic reconnection for Pro users.

Built-in Update Checker:

Runs in the background to notify about new plugin versions, keeping your server up to date.

Customizable Join & Leave Messages:

Enhanced support for placeholders and easy disabling of join/quit messages.

Bug Fixes 🐞

Fixed issues with database connections and queries that caused instability in earlier versions.

Correct handling of kick messages when unauthorized server switches are attempted.

Various minor performance improvements and stability fixes.

Miscellaneous 🛠️

Cleaner code with clear separation of features based on user type (Free vs Pro).

Foundations laid for future feature expansions and enhancements.

1.0.1Релиз1.20.6, 1.21, 1.21.1 · 10 октября 2024 г.

Fixed all MySQL errors! JSMySQLFix needed!!

Комментарии

Загружаем…