1 340
收录服务器
1 885
注册
26 902
玩家
Antylogout
易于使用的反注销插件!
作 者 Kajteh
发布时间 2022年5月23日
支持核心 Spigot
原生版本
支持版本 1.17,1.18,1.19,1.20
点此下载

🛡️ Anti-Logout 是一个易于配置的反登出插件,旨在防止玩家在战斗中通过登出服务器来逃避惩罚。

⚔️ 指令

管理指令

  • /antylogout reload - 重载插件配置。
    • 权限:antylogout.reload

⚙️ 配置

主配置 (config.yml)


#       ____.  __________   _________________________   .____
#      |    |  \______   \ /   _____/\_   _____/  \  |    |
#      |    |   |     ___/ \_____  \  |    __)_   |   |    |
#      |    |___|    |    /        \ |        \  |   |    |
#      |_______|____|   /_______  / /_______  /  |___|    |
#                             \/          \/
#
# Placeholders:
# {PLAYER} - Player name
# {TIME} - Time in seconds

settings:
  enabled: true
  disable-in-worlds: # Worlds where plugin is disabled
    - "example_world"
  debug-mode: false # if enabled plugin will send debug messages to console

  messages:
    no-permission: "&cYou don't have permission to use this command!"
    config-reloaded: "&aConfig reloaded!"
    antylogout-enabled: "&cYou are now in combat! Do not log out!"
    antylogout-disabled: "&aYou are no longer in combat!"
    antylogout-punish: "&c{PLAYER} logged out during combat! Time: {TIME} seconds"

  combat:
    time: 15 # Time in seconds
    prevented-actions: # Actions that are prevented when player is in combat
      - "enderpearl"
      - "teleport"
    notify: # Should plugin notify player when he is in combat?
      enable: true
      type: # Types: ACTION_BAR, CHAT
        - "ACTION_BAR"

  punish:
    enable: true # Should plugin punish player when he log out during combat?
    commands: # Commands that will be executed when player log out during combat
      - "kick {PLAYER} &cYou logged out during combat! Time: {TIME} seconds"

  mobs:
    enabled: true # Should plugin protect from mobs?
    whitelist: false # Should plugin use whitelist or blacklist?
    list: # List of mobs that will trigger combat
      - "ZOMBIE"
      - "SKELETON"
      - "CREEPER"

  npc:
    enabled: false # Should plugin protect from Citizens2 NPCs?