AcceptTheRules 强制玩家阅读并接受规则

作者:Morelaid 发布时间:2018年2月25日 原生版本:未知 测试支持:1.8,1.9,1.10,1.11,1.12,1.13,1.14,1.15,1.16,1.17,1.18,1.19,1.20

通过接受规则来奖励玩家|您的服务器的规则插件

点此下载

插件详细介绍

AcceptTheRules (ATR) 插件旨在解决服务器玩家不阅读规则的问题。它强制玩家在游戏前阅读并接受服务器规则,通过多页面展示规则,确保规则不被忽略。插件提供灵活的配置,允许服务器在玩家接受或拒绝规则时执行自定义操作,例如分配权限或给予物品。同时,插件还能冻结玩家,直到他们接受规则,确保规则的有效传达。


🎉 功能特性

  • 欢迎消息:为尚未接受规则的玩家显示欢迎消息。
  • 冻结玩家:强制玩家阅读规则。
  • 交互式规则阅读:通过按钮进行交互式规则阅读。
  • 规则更新通知:规则更改时的简单通知。
  • 颜色支持:支持在规则和消息中使用颜色代码。
  • 可变命令:接受或拒绝规则时执行不同的命令。
  • 玩家信息:获取玩家是否接受规则以及接受的版本信息。
  • 完全可配置:所有功能均可配置。
  • 行为限制:在阅读和接受规则之前,阻止聊天、执行命令、移动或与服务器互动(可配置例外)。
  • Markdown 支持:支持使用 Markdown 格式化规则。
  • GeyserMC / Bedrock 支持:为 Bedrock 玩家提供新的 GUI 界面(需要 Floodgate 插件)。

⚙️ 安装指南

  1. 停止你的 Minecraft 服务器。
  2. 将插件的 JAR 文件拖放到 "plugins" 文件夹中。
  3. (可选)安装 Floodgate 插件,以支持 Bedrock 玩家。
  4. 启动服务器。启动后,将在 "plugins" 文件夹中创建一个名为 "AcceptTheRules" 的新文件夹,其中包含所有配置文件。
  5. 根据你的需求修改配置文件,然后使用 /atr reload 命令重新加载配置。

🎮 命令

  • /rules - 显示规则。
  • /rule - 显示规则。
  • /rules [number] - 显示特定规则。
  • /rule [number] - 显示特定规则。
  • /atr - 显示管理菜单和所有命令。
  • /atr [player] - 显示玩家信息。
  • /atr report - 生成一个 ZIP 文件,用于快速支持。
  • /atr reload - 重新加载所有配置。
  • /atr info - 显示插件信息。
  • /atr reset [name] - 重置玩家的“已接受状态”。
  • /atraccept [player] - 为玩家接受规则。
  • /atr stats - 显示用户统计信息。
  • /atr player [player] - 显示玩家信息。

🔑 权限

  • atr.user.rules - 默认: true
  • atr.user.atrgui - 默认: true
  • atr.admin.atr - 默认: op (使用 "/atr" 命令的权限)
  • atr.admin.* - (所有管理权限)
  • atr.admin.reload - (使用 "/atr reload" 命令的权限)
  • atr.admin.help - (使用 "/atr help" 命令的权限)
  • atr.admin.playerInfo - (使用 "/atr [name]" 命令的权限)
  • atr.admin.info - (使用 "/atr info" 命令的权限)
  • atr.user.bypass - (忽略重新接受规则的期限的权限)
  • atr.admin.acceptOthers - (为其他玩家接受规则的权限)
  • atr.admin.updateCheck - (使用更新检查器的权限)
  • atr.admin.reset - (重置单个玩家的“已接受状态”的权限)

普通玩家权限:

  • atr.user.rules - 默认: true
  • atr.user.atrnext - 默认: true
  • atr.user.atrback - 默认: true
  • atr.user.atraccept - 默认: true
  • atr.user.atrdeny - 默认: true
  • atr.user.atrgui - 默认: true

📌 占位符

  • %player% - 玩家名称
  • %page% - 当前规则页面
  • %maxPage% - 最大规则页数
  • %asPlayer% - 以玩家身份执行命令,带有其权限

⚙️ 配置文件 (settings.yml)


#The Menu are the buttons for navigating the rule pages. The Minecraft Color codes can be used here.
#Space = between "Back" & "Next" button and "accept" & "deny" button
Menu:
  BackButton: '&3<< &2Back'
  NextButton: '&2Next &3>>'
  AcceptButton: '&2>> Accept <<'
  DenyButton: '&4>> Deny <<'
  Space: '                         '
#"RulesPerPage" is the number of rules to be listed per page. This will automatically calculate the page numbers.
#"RulesCooldown" is the time (in seconds) the player has to wait until he can click on "Next". This prevents the rules from being skipped
Page:
  RulesPerPage: 4
  RulesCooldown: 3
#The "Parting" are the headlines & footers for the individual pages / sections. The Minecraft Color Codes can be used for this.
Parting:
  Header: '&6__________________[ %page% / %maxpage% ]_____________________'
  Footer: '&6_____________________________________________'
  AcceptPageHeader: '&6_____________________________________________'
  AcceptPageFooter: '&6_____________________________________________'
  PlayerInfoHeader: '&6_____________________________________________'
  PlayerInfoFooter: '&6_____________________________________________'
  Default: '&6_____________________________________________'
#A list of commands that is executed when the player clicks on the "Accept" or "Deny" button.
#The commands are executed by the console, so the player does not need to have permission for the command. With "%player%" the player name can be used.
#The Minecraft Color Codes can be used for messages or commands.
#If you want the commands to be executed as if the player were doing it manually (with the player's permissions), add "%asPlayer%" at the end of the command.
#Note: If the player does not have permission for this command, he may receive the message "You do not have permission for this command", even though the player does not even know that he has executed a command
Commands:
  AcceptedExecutes:
   - atrpublic &6%player% &fhas accepted the server rules!
  DenyExecutes:
   - atrpublic &3%player% &f has denied the rules!
#Commands a player is allowed to enter while he has not yet accepted the rules and the option "Prevent -> Commands = true" is set
  AllowedCommands:
   - rules
   - rule
   - atrnext
   - atrback
   - atraccept
   - atrdeny
   - atrprivate
   - atrpublic
#Send a start message (can be set in the messages.yml file), and a delay sending the message (in seconds).
StartMessage:
  Enable: true
  Delay: 0
#Freezes the player to concentrate on reading the rules.
#To prevent the player from being spammed with messages when he moves anyway, there is "MessageCooldown" (given in seconds)
Freeze:
  Enable: false
  MessageCooldown: 3
#Prevents the player from using the actions. If the value is set to "true", the player is NOT allowed to do so (i.e. the protection is set to active).
#The Cooldown Message is specified in seconds
Prevent:
  Chat: false
  Commands: false
  Interact: false
  MessageCooldown: 3
#If you want the players to read and accept the rules every X days, you can set the value "Enable" to "true".
#After the specified days, the player must automatically accept the rules again.
#The days count in "Real Life" and have nothing to do with the online time of the player
Period:
  Enable: false
  Days: 90

🤝 支持与反馈

如果您有任何请求、意见或遇到任何问题,请随时与我联系。为了能够快速提供帮助,请在咨询时提供以下信息:

  1. 执行 /atr report 命令
  2. 将您的插件文件夹中的 "Report.zip" 文件(".../plugins/AcceptTheRules/Report.zip")发送给我
  3. 简要描述您的问题

您可以使用德语或英语提出请求。


🎁 其他插件

  • StreamingModule:通过在 Twitch.tv 上观看 Minecraft 直播来获得奖励。

💖 捐赠

如果您想支持我,我更希望您能写一篇评论,这比捐赠更有帮助,因为评论能让其他人更好地了解我的插件。