服务器切换

服务器切换

一个轻量级插件,允许您的玩家切换到可配置的服务器。

实用

ServerSwitch 允许你配置一个或多个命令,将玩家发送到你选择的服务器。
YAML 配置。

命令:

  • /serverswitch reload

权限:

  • serverswitch.admin(重载命令)
  • serverswitch.join.<服务器>(仅当在你的服务器部分中将 enable-permission 设置为 true 时必需)

默认 config.yml

# 以下选项将在服务器未定义时使用
defaults:
  permission-message: "You don't have the permission to join %server%."
  sending-message: "Sending you to %server%..."
  cooldown-message: "Wait %cooldown%s to join %server% again."

servers:
  smp:
    host: "play.yourserver.com"
    port: 5521
    commands:
      - "smp"
      - "survival"
    # 如果为 true,权限将为 serverswitch.join.<服务器>
    # <服务器> 在此例中为 "smp"(serverswitch.join.smp)
    enable-permission: false
    permission-message: "You don't have the permission to join the SMP."
    sending-message: "Sending you to the SMP..."
    cooldown: 3 # 以秒为单位
    cooldown-message: "Wait %cooldown%s to join %server% again."
  factions:
    host: "play.yourserver.com"
    port: 5522
    commands:
      - "factions"
    # 如果为 true,权限将为 serverswitch.join.<服务器>
    # <服务器> 在此例中为 "factions"(serverswitch.join.factions)
    enable-permission: true
    cooldown: 3 # 以秒为单位