TrueFalseQuiz

插件

· 作者 Soapiee

在你的服务器上举办一场问答挑战!吸引你的玩家参与!

0 本站下载 0 关注 更新于 2 周前

最新 1.5.7 · 1.21.11 · Paper

一键开服(送7天)

https://i.ibb.co/ymjJ7Pb3/Adobe-Express-file-1.png

是否曾想过在你的服务器上举办活动以增强玩家互动? 现在就有机会运行一场问答测验! 仅限“是”或“否”的回答。开始答题吧


FEATURES

  • 可点击的消息
  • 可选的竞技场支持
  • 丰富的自定义选项
  • 仅竞技场聊天
  • 竞技场全息图
  • 安排游戏时间
  • 可点击加入的标志牌
  • 多版本支持
  • PlaceholderAPI 占位符
  • 背包备份(可禁用)
  • 完全自定义的消息(支持十六进制颜色代码)
  • 奖励系统(给予权限、金钱、物品、经验值,甚至执行命令)
  • 观战者系统(可禁用)

SUPPORT

如需支持、功能请求或任何其他帮助,请在 Discord 上联系我。

MEDIA

COMMANDS

玩家指令

指令 权限 描述 默认值
/game tfquiz.player 否定此权限将移除以下所有指令的访问权 true
tfquiz.player.* true
/game list tfquiz.player.list 列出所有可用游戏及其状态和玩家数量 true
/game join <ID> tfquiz.player.join 允许玩家加入游戏 true
/game leave tfquiz.player.leave 允许玩家离开游戏 true

管理员指令

指令 权限 描述 默认值
/tf tfquiz.admin 允许访问该指令 OP
/tf help tfquiz.admin 访问管理员帮助指令 OP
/tf list tfquiz.admin 列出所有游戏 OP
/tf setspawn tfquiz.admin 设置登录时的出生点(可在配置中禁用) OP
/tf game <gameID> setspawn tfquiz.admin 为指定游戏设置竞技场出生点 OP
/tf game <gameID> open|close tfquiz.admin 打开或关闭指定游戏。不能用于已设置调度程序的游戏 OP
/tf game <gameID> start tfquiz.admin 开始倒计时,当倒计时归零时游戏开始。这将绕过最少玩家要求,但游戏中必须至少有 1 名玩家。不能用于已设置调度程序的游戏 OP
/tf game <gameID> end tfquiz.admin 在本轮结束时结束游戏。它将宣布所有仍在游戏中的玩家为获胜者。如果在倒计时阶段结束游戏,则仅停止倒计时,所有玩家保留。不能用于已设置调度程序的游戏 OP
/tf game <gameID> end -without tfquiz.admin 使用标志“-without”立即结束游戏且无获胜者。不能用于已设置调度程序的游戏 OP
/tf game <gameID> addPlayer|removePlayer <player> tfquiz.admin 向游戏中添加或移除玩家 OP
/tf game <gameID> setHoloSpawn tfquiz.admin 设置全息图的出生位置 OP
/tf game <gameID> info tfquiz.admin 显示关于该配置游戏的信息 OP
/tf reload tfquiz.reload 重载插件 None
tfquiz.admin.bypassflags 允许该玩家绕过所有竞技场标志 OP

标志牌指令

指令 权限 描述 默认值
/tf sign list tfquiz.admin.sign 显示所有游戏标志牌的列表 OP
/tf sign add <gameID> tfquiz.admin.sign 为指定游戏添加新的游戏标志牌 OP
/tf sign remove tfquiz.admin.sign 删除你正在查看的游戏标志牌 OP
/tf sign remove <signID> tfquiz.admin.sign 删除具有指定标志牌 ID 的游戏标志牌 OP
/tf sign edit <signID> <lineNo> "Text..." tfquiz.admin.sign 编辑具有指定标志牌 ID 的游戏标志牌上的文本。或者你也可以右键单击游戏标志牌进行编辑 OP
tfquiz.admin.sign 赋予右键单击标志牌以编辑文本的能力 OP

CONFIG FILES

config.yml
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ##
##                                  True False Quiz                                  ##
##                                    By Soapiee                                     ##
##                                                                                   ##
##       Message me on Discord for support, feature requests, bug reports, etc       ##
##                        discord.com/users/152044111153594369                       ##
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ##

```yaml
# 如果检测到更新,则在控制台发送通知
update_notification: true
# 选择要使用的语言文件
# 选项:lang_en, lang_es, lang_de, lang_fr, lang_nl
language: lang_en
# 以下设置仅适用于包含竞技场(arena)的游戏
arena_flags:
  allow_fall_damage: false # 玩家是否承受坠落伤害
  allow_pvp_damage: false # 玩家是否可以对其他玩家造成伤害
  allow_hunger: false # 玩家是否会失去饥饿值(同时也无法恢复饱食度)
  allow_block_break: false # 玩家是否可以破坏方块
  allow_block_place: false # 玩家是否可以放置方块
  allow_teleport: false # 玩家是否可以进行传送
# 当玩家在竞技场内时,是否将玩家的物品栏备份保存到文件中
save_player_inventories: false
# 当玩家加入竞技场时,是否清空其物品栏(离开竞技场时会恢复)
empty_inv_on_arena_join: true
# 阻止非生存模式的玩家加入游戏
enforce_survival_mode: true
# 当玩家加入服务器时,将其传送至此处。注意:如果此项为 false 且服务器崩溃,原本在竞技场上的玩家将直接重生在竞技场地图/位置内
enforce_lobby_spawn: false
# 玩家离开竞技场后的传送目标位置,或者服务器加入时的出生点(如果上述设置 enforce_lobby_spawn 为 true)
lobby_spawn:
  world: world
  x: 0
  y: 64
  z: 0
  yaw: -180
  pitch: 0
  # 列出玩家处于竞技场内时被禁止执行的命令列表
disallowed_commands:
  - '/example1'
#signs:
#  1: # 示例
#    game_ID: 1
#    material: OAK_WALL_SIGN
#    world: world
#    x: 2
#    y: 65
#    z: 2
#    facing: south
#    format:
#      - '%game_ID%'
#      - '%game_state%'
#      - ' '
#      - '%game_players%/%game_maxplayers%'
games:
  # # 示例 1(无竞技场)
  1:
    # 选项:Recruiting(招募中)或 Closed(关闭)
    state_on_startup: RECRUITING
    minimum_players: 5
    maximum_players: 20
    countdown_seconds: 10
    # 游戏结束前允许的最大回合数。如果仅剩 1 名玩家,游戏将提前结束
    maximum_rounds: 10
    # 是否向全服广播游戏获胜者信息
    broadcast_winners: true
    reward:
      type: none
      #    reward: # 示例
      #      type: 'command' # 选项:permission(权限)、currency(货币)、experience(经验)、item(物品)、command(命令)、none(无)
      #      reward: 'xp give %player% 100'
      message: You gained some experience for winning
    arena: false
    # (秒)仅在 arena 选项为 false 时生效。
    # 游戏开放前的等待时间
    #    schedule_delay: 300
    # (秒)游戏保持开放并处于招募状态的时间,之后将再次关闭(如果游戏正在进行中则不会关闭)。
    # 确保此值大于 countdown_seconds 选项的值。如果未设置,默认为 60。
#    schedule_resets: 120
#  # 示例 2(含竞技场)
#   2:
#     # 选项:Recruiting(招募中)或 Closed(关闭)
#     state_on_startup: RECRUITING
#     minimum_players: 5
#     maximum_players: 20
#     countdown_seconds: 60
#     maximum_rounds: 20
#     # 是否向全服广播游戏获胜者信息
#     broadcast_winners: true
#     reward:
#       type: 'item'
#       reward: oak_planks, 2
#       message: 'You won 2 oak planks'
#     arena: true
#     arena_options:
#       # 选项:‘both’、‘chat’ 或 ‘hologram’
#       desc_option: hologram
#       # 启用观战系统
#       spectators: true
#       # 全息图生成点(仅当 desc_option 不是 ‘chat’ 时生效)
#       holo_location:
#         world: world
#         x: -50
#         y: 64
#         z: 64
#       # 玩家加入游戏/竞技场时的传送出生点
#       spawn_point:
#         world: world
#         x: -50
#         y: 64
#         z: 64
#         yaw: -180
#         pitch: 0

messages.yml
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ##
##                                  English Language File                            ##
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ##

# # # #                --->    GENERAL MESSAGES    <---                # # # #
console_usage_error: "&cYou must be a player to use this command"
no_permission: "&cYou do not have permission to use this command"
player_not_found: "&cPlayer not found"
hooked_placeholderapi: "&aHooked into PlaceholderAPI"
hooked_vault: "&aHooked into Vault"
hooked_vault_error: "&cError hooking into Vault"

# # # ---> 管理员命令消息 <--- # # #

update_available: "&aTFQuiz 有可用更新" unsupported_version: "&c检测到不支持的版本。插件可能无法正常工作。请联系开发者以获取对您版本的支持" disable_spectators_warning:

  • "&c[TFQuiz] 检测到不支持的 NMS 版本。旁观者系统将被削弱。"
  • "&c建议在配置文件中禁用它。其他功能将正常运行" spectator_system_error: "&c错误:旁观者系统未工作。请联系开发者" unsupported_platform_spigot: "&c[TFQuiz] 检测到不正确的服务器平台。此插件专为在 Spigot 上运行而设计。" unsupported_platform_paper: "&c[TFQuiz] 检测到不正确的服务器平台。此插件专为在 Paper 上运行而设计。" download_spigot_jar: "&c[TFQuiz] 请下载 Spigot jar 包。" download_paper_jar: "&c[TFQuiz] 请下载 Paper jar 包。" admin_command_usage:
  • "#01d54a--------- 管理员帮助 ---------"
  • "#01d54a/tf reload &7- 重载插件"
  • "#01d54a/tf list &7- 列出所有已加载的游戏"
  • "#01d54a/tf setspawn &7- 设置大厅出生点"
  • "#01d54a/tf game <gameID> setSpawn &7- 设置指定游戏的出生点"
  • "#01d54a/tf game <gameID> setHoloSpawn &7- 设置指定游戏的全息投影位置"
  • "#01d54a/tf game <gameID> open|close &7- 手动开启或关闭游戏"
  • "#01d54a/tf game <gameID> start &7- 开始游戏的倒计时"
  • "#01d54a/tf game <gameID> end [-without] &7- 结束游戏。使用标志 "-without" 可立即结束且无获胜者。"
  • "#01d54a/tf game <gameID> addPlayer|removePlayer <player> &7- 向游戏中添加/移除玩家"
  • "#01d54a/tf game <gameID> info &7- 显示基于游戏设置的信息"
  • "#01d54a/tf sign add <gameID> &7- 为指定游戏添加新的游戏告示牌"
  • "#01d54a/tf sign remove <signID> &7- 删除游戏告示牌"
  • "#01d54a/tf sign edit <signID> <lineNo> text... &7- 编辑游戏告示牌上的文本" admin_reload_command_usage: "&c用法: /tf reload" admin_reload_success: "&a成功重载 TFQuiz" admin_reload_error: "&c重载 TFQuiz 时遇到错误" admin_reload_inprogress: "&e正在重载配置..." reload_convo_cancel: "&c您已取消重载" reload_convo_invalid: "&c请输入 'CONFIRM' 或 'CANCEL'" reload_convo_start:
  • "&c这将强制重置所有游戏、所有计划中的游戏,并将所有玩家返回到大厅出生点"
  • "&c输入 'confirm' 以确认重载"
  • "&c这将在 10 秒后超时" invalid_number_input: "&c%input% 不是有效的数字" games_error: "&c请在 config.yml 中设置一些游戏" questions_error: "&c在 questions.yml 中找不到任何问题" questions_file_error: "&c无法加载 questions.yml" logger_file_error: "&c无法创建 logger.log 文件" logger_log_success: "&c错误已添加到 logger.log 文件" logger_log_error: "&c无法创建 logger.log 文件" inventories_file_error: "&c无法加载 playerInventories.yml" inventories_saving_error: "&c保存 %player% 的物品栏到 playerInventories.yml 时出错" inventories_removing_error: "&c从 playerInventories.yml 中移除 %player% 的物品栏时出错" language_file_error: "&c无法加载语言文件" language_field_error: "&c无法向语言文件添加新字段" invalid_language: "&c配置的語言无效。默认为 "lang_en"" settings_error: "&c配置字段 &e%field% &c未设置。默认为 &e%default_value%" lobby_spawn_error: "&c您必须在配置中设置大厅出生点" invalid_reward_type: "&c游戏 &e%game_ID%&c 的奖励类型无效。不会发放任何奖励。" missing_reward_message: "&c游戏 &e%game_ID%&c 的奖励消息缺失。不会向玩家发送消息。" missing_vault_hook: "&c游戏 &e%game_ID%&c 的奖励需要安装 Vault。" invalid_reward_number: "&c您必须为游戏 &e%game_ID%&c 的奖励金额输入一个数字" invalid_reward_amount: "&c游戏 &e%game_ID%&c 的奖励金额过低" missing_reward: "&c游戏 &e%game_ID%&c 未定义任何奖励" invalid_reward_material: "&c游戏 &e%game_ID%&c 的奖励材料无效" invalid_reward_item: "&c游戏 &e%game_ID%&c 的奖励物品无效。请遵循此格式: "apple, 5" (材料, 数量)" invalid_game_spawn: "&c游戏 &e%game_ID%&c 的出生点无效。" admin_list_command_usage: "&c用法: /tf list" admin_setspawn_command_usage: "&c用法: /tf setspawn" admin_lobby_spawn_set: "&a大厅出生点已设置" game_admin_command_usage:
  • "#01d54a--------- 游戏帮助 ---------"
  • "#01d54a/tf game <gameID> setSpawn &7- 设置指定游戏的出生点"
  • "#01d54a/tf game <gameID> setHoloSpawn &7- 设置指定游戏的全息投影位置"
  • "#01d54a/tf game <gameID> open|close &7- 手动开启或关闭游戏"
  • "#01d54a/tf game <gameID> start &7- 开始游戏的倒计时"
  • "#01d54a/tf game <gameID> end [-without] &7- 结束游戏。使用标志 "-without" 可立即结束且无获胜者。"
  • "#01d54a/tf game <gameID> addPlayer|removePlayer <player> &7- 向游戏中添加/移除玩家"
  • "#01d54a/tf game <gameID> info &7- 显示基于游戏设置的信息" game_force_started: "&a游戏 &e%game_ID%'s &c倒计时已开始!" game_force_start_error: "&c尝试启动此游戏时出错。游戏已在进行中" game_start_scheduler_error: "&c您不能手动启动具有活动调度程序的游戏" game_start_closed_error: "&c尝试启动此游戏时出错。游戏已关闭。请使用 /tf game <ID> open" game_start_empty_error: "&c尝试启动此游戏时出错。游戏中没有玩家" game_force_ended: "&a游戏 &e%game_ID% &c已结束"

game_force_ended_with_winners: "&a游戏 &e(%game_ID%) &a将在本轮结束后结束" game_force_end_error: "&c尝试结束此游戏时出错。当前游戏尚未开始" game_end_scheduler_error: "&c您无法手动结束具有活动调度器的游戏" game_player_removed_target: "&c您已被从游戏 %game_ID% 中移除" game_spawn_set: "&a已为游戏 %game_ID% 设置出生点" game_holo_spawn_set: "&a您已为游戏 %game_ID% 设置全息图出生点" game_holo_spawn_removed: "&a您已移除全息图出生点" game_opened: "&a游戏 %game_ID% 已向玩家开放" game_opened_error: "&c游戏 %game_ID% 已处于活跃状态" game_opened_scheduler_error: "&c您无法手动打开具有活动调度器的游戏" game_closed: "&c游戏 %game_ID% 不再接受新玩家" game_closed_error: "&c游戏 %game_ID% 当前无法关闭" game_closed_scheduler_error: "&c您无法手动关闭具有活动调度器的游戏" game_player_added: "&e%player% &a已加入游戏 %game_ID%" game_player_added_error: "&c此游戏当前不接受新玩家" game_invalid_gamemode_error_other: "&c玩家必须处于生存模式才能加入此游戏" game_player_already_in_game: "&e%player% &c已在其他游戏中" game_player_removed: "&e%player% &a已从游戏 %game_ID% 中移除" game_player_not_in_game: "&e%player% &c不在该游戏中" game_info:

  • "#01d54a--------- &l游戏 %game_ID% 信息 #01d54a---------"
  • "#01d54a当前状态: &7%game_players%/%game_maxplayers% - %game_status%"
  • "#01d54a最少所需玩家数: &7%game_minplayers%"
  • "#01d54a倒计时: &7%game_countdown%"
  • "#01d54a最大回合数: &7%game_maxrounds%"
  • "#01d54a广播获胜者: &7%game_doesbroadcast%"
  • "#01d54a奖励: &7%game_reward%"
  • "#01d54a "
  • "#01d54a&l竞技场特定设置"
  • "#01d54a是否拥有竞技场: &7%game_hasarena%"
  • "#01d54a是否拥有调度器: &7%game_hasscheduler% %game_schedulerseconds%"
  • "#01d54a描述选项: &7%game_desc%"
  • "#01d54a旁观者: &7%game_doesspectators%"
  • "#01d54a全息图坐标: &7%game_holocoordinates%"
  • "#01d54a出生点坐标: &7%game_spawncoordinates%"

# # # ---> 游戏消息 <--- # # #

game_state_closed: "不可用" game_state_recruiting: "招募中" game_state_countdown: "即将开始" game_state_live: "游戏进行中" game_list_header: "--------- 游戏列表 ---------" game_list_format: "&e> %game_ID% &7(%game_players%/%game_maxplayers%) &e- %game_status%" game_list_hover_text: "&e点击加入" game_opened_scheduler: "&e新的问答游戏已开启。使用 &a/game join %game_ID% &e 加入乐趣" game_open_scheduler_hover: "&e点击加入" game_closed_scheduler: "&e问答游戏 &7(%game_ID%) &e因参与人数不足现已关闭。" game_join: "&a你已加入游戏 %game_ID% &7(%game_players%/%game_minplayers%)" game_other_player_join: "&a%player% 加入了游戏 &7(%game_players%/%game_minplayers%)" game_invalid_gameID: "&c你必须输入有效的游戏 ID" game_invalid_state_error: "&c此游戏当前不接受玩家加入" game_invalid_gamemode_error: "&c你必须处于生存模式才能加入此游戏" forced_game_leave: "&a管理员将你从游戏 %game_ID% 中移除" game_full_error: "&c此游戏已满员" already_in_game_error: "&c你已在游戏中" game_leave: "&c你已离开游戏" game_other_player_left: "&c%player% 离开了游戏 &7(%game_players%/%game_minplayers%)" error_game_leave: "&c你不在游戏中" game_countdown_start: "&a游戏将在 %countdown% 后开始" game_countdown_title_prefix: "&a%countdown%" game_countdown_title_suffix: "&e直到游戏开始" game_started: "&a&l真假问答游戏已开始" game_description: "通过回答“真”或“假”来正确回答问题。" game_hologram_desc:

  • "&e-----------------------------------"
  • "&e正确回答问题"
  • "&e你只能回答“真”或“假”"
  • "&e-----------------------------------" game_round_countdown_message: "&a你有 %round_countdown% 的时间来回答问题" game_round_countdown_title_prefix: "&a%round_countdown%" game_round_countdown_title_suffix: "&e直到回合结束" game_not_enough_players: "&c玩家人数不足。倒计时已停止" game_below_min_required: "&c因过多玩家离开,游戏已结束" game_disallowed_command: "&c在竞技场游戏中你不能使用该命令" game_prompt:
  • "&e-----------------------------------"
  • " "
  • "&6&l是真是假? %question%"
  • " "
  • "&e-----------------------------------" game_true_outcome_message:
  • "&e-----------------------------------"
  • "&e正确答案是"
  • " "
  • "&a真"
  • "&e%correction_message%"
  • " "
  • "&e-----------------------------------" game_false_outcome_message:
  • "&e-----------------------------------"
  • "&e正确答案是"
  • " "
  • "&c假"
  • "&e%correction_message%"
  • " "
  • "&e-----------------------------------" game_eliminate_message:
  • "&e-----------------------------------"
  • " "
  • "&c你已被淘汰!"
  • " "
  • "&e-----------------------------------" game_continued_message:
  • "&e-----------------------------------"
  • " "
  • "&a做得好!你进入下一回合.."
  • " "
  • "&e-----------------------------------" game_win_message:
  • "&e-----------------------------------"
  • " "
  • "&a恭喜!你赢了!"
  • " "
  • "&e-----------------------------------" game_multi_player_broadcast:
  • "&e-----------------------------------"
  • " "
  • "&a%winners% 全部获胜 &7(游戏:%game_ID%)&a!"
  • " "
  • "&e-----------------------------------" game_single_player_broadcast:
  • "&e-----------------------------------"
  • " "
  • "&a%winner% 获胜 &7(游戏:%game_ID%)&a!"
  • " "
  • "&e-----------------------------------" game_no_winner_broadcast:
  • "&e-----------------------------------"
  • " "
  • "&c由于所有玩家均被淘汰,因此没有获胜者"
  • "&c游戏 &7(%game_ID%) &e已结束"
  • " "
  • "&e-----------------------------------" game_item_win_error: "&c你的背包空间不足,无法接收奖励,因此奖励被掉落在了地上。" game_command_usage: "&c用法:/game <join | leave | list> <gameID>" game_join_command_usage: "&c用法:/game join <gameID>" game_spectator_error: "&c设置你为旁观者时出错。你已被移出竞技场" game_created: "&a游戏 &e%game_ID% &a已成功创建"

# # # ---> 告示牌消息 <--- # # #

sign_admin_command_usage:

  • "#01d54a--------- 告示牌帮助 ---------"
  • "#01d54a/tf sign add <gameID> &7- 为指定游戏添加一个新的游戏告示牌"
  • "#01d54a/tf sign remove &7- 删除你正在注视的游戏告示牌"
  • "#01d54a/tf sign remove <signID> &7- 删除具有指定 ID 的游戏告示牌"
  • "#01d54a/tf sign edit <lineNo> "Text..." &7- 编辑你正在注视的游戏告示牌上的文本"
  • "#01d54a/tf sign edit <signID> <lineNo> "Text..." &7- 编辑具有指定 ID 的游戏告示牌上的文本" sign_list_header: "--------- 告示牌列表 ---------" sign_list_format: "&e> (游戏 ID: %game_ID%) 告示牌 ID: %sign_ID%" sign_list_hover: "&e点击传送至告示牌" sign_id_edit_command_usage: "#01d54a/tf sign edit <signID> <line> "新文本.."" sign_edit_command_usage: "#01d54a/tf sign edit <line> "新文本.."" sign_added: "&a你添加了一个新的游戏告示牌 &7(游戏 : %game_ID%)" sign_removed: "&a你移除了一块游戏告示牌 &7(告示牌ID: %sign_ID%)" sign_edited: "&a你成功编辑了一块游戏告示牌 &7(告示牌ID: %sign_ID%)" sign_invalid_line_number: "&c请输入有效的行号 (1-4)" sign_invalid_signID_error: "&c你必须输入一个有效的 signID。&7(使用 /sign list 查看所有已加载的告示牌)" not_looking_at_game_sign: "&c你并未注视游戏告示牌" not_looking_at_sign: "&c你并未注视告示牌" sign_already_exists: "&c此告示牌已经是游戏告示牌" sign_game_id_error: "&c由于无效的游戏 ID,跳过 ID 为 &e%sign_ID% &c的告示牌" sign_material_error: "&c告示牌 &e%sign_ID%&c 的材质无效。默认设置为 OAK_SIGN" sign_location_error: "&c由于世界无效,跳过 ID 为 &e%sign_ID% &c的告示牌" sign_created: "&a游戏告示牌 &e%sign_ID% &a已成功创建" sign_convo_start: "&e欢迎使用 GameSign 文本编辑器。" sign_convo_line_prompt: "&e你想编辑哪一行?选项:1 - 4 &7(输入 'EXIT' 退出编辑器)" sign_convo_line_invalid: "&c输入必须在 1 到 4 之间" sign_convo_text_prompt: "&e请声明你想放在第 &6&l%line_number%&e 行的文本"

</details>

 <details>
<summary>questions.yml</summary>

Questions: 1: # 用引号写出问题 Question: "'A' is the most common letter used in the English language" # 声明正确答案是 "True" 还是 "False" Answer: False # (可选) 写出正确答案的解释。答案揭晓后将显示此内容。 Correction_Message: "'E' is the most common letter used in the English language" 2: Question: "In the English language there is no word that rhymes with orange" Answer: True # (可选) 如果不想显示消息,请将更正消息留空 Correction_Message: "" 3: Question: "The unicorn is the national animal of Scotland" Answer: True Correction_Message: "" 4: Question: "Goldfish have a two second memory" Answer: False Correction_Message: "" 5: Question: "An octopus has two hearts" Answer: False Correction_Message: "An octopus has three hearts" 6: Question: "An octopus has three hearts" Answer: True Correction_Message: "" 7: Question: "An octopus has four hearts" Answer: False Correction_Message: "An octopus has three hearts" 8: Question: "Cinderella was the first Disney princess" Answer: False Correction_Message: "The first disney princess was Snow White" 9: Question: "Alexander Fleming discovered penicillin" Answer: True Correction_Message: "" 10: Question: "The black box in a plane is black" Answer: False Correction_Message: "The 'black box' in a plane is actually orange"


</details>

![占位符](https://i.ibb.co/39WfV2kT/PLACEDHOLDERS.png) 
  
**PlaceholderAPI**:

| 占位符 | 描述 |
| --- | --- |
| `%tfquiz_gameID%`  | 显示玩家所在的游戏 ID。如果玩家不在游戏中,则为 “null” |
| `%tfquiz_in_game%`  | 显示玩家是否在游戏中,值为 “true” 或 “false” |
| `%tfquiz_gamestate%`  | 显示游戏状态。如果玩家不在游戏中,则为 “null” |
| `%tfquiz__countdown%`  | 显示游戏开始前倒计时的剩余秒数。如果玩家不在游戏中,则为 “null” |

![文档示例](https://i.ibb.co/tPDqZw4m/DOCUMENTATION.png)
**游戏设置示例**
 <details>
<summary>带竞技场(Arena)的游戏</summary>

games: 1: state_on_startup: RECRUITING # 选项:Recruiting 或 Closed minimum_players: 5 maximum_players: 20 countdown_seconds: 60 maximum_end_point: 20 broadcast_winners: true # 是否向全服广播获胜者 reward: type: 'item' reward: oak_planks, 2 message: 'You won 2 oak planks' arena: true arena_options: desc_option: hologram # 选项:‘both’, ‘chat’ 或 ‘hologram’ spectators: true # 启用观战系统 holo_location: # 全息图的生成点(仅当 desc_option 不是 ‘chat’ 时有效 world: world x: -50 y: 64 z: 64 spawn_point: # 玩家加入游戏/竞技场时被传送到此处的出生点 world: world x: -50 y: 64 z: 64 yaw: -180 pitch: 0


</details>

 <details>
<summary>不带竞技场(Arena)的游戏</summary>

games: 1: state_on_startup: 'RECRUITING' # 选项:招募中或已关闭 minimum_players: 5 maximum_players: 10 maximum_end_point: 10 countdown_seconds: 10 # 是否向全服广播游戏获胜者 broadcast_winners: true reward: type: 'currency' reward: 500 message: You won $500 arena: false # (以秒为单位)仅在 arena 选项为 false 时生效。 schedule_delay: 300 # (以秒为单位)游戏在重新关闭之前保持开放并处于招募状态的时间长度(如果游戏正在进行,则不会关闭)。确保此值长于你的 countdown_seconds 选项。若未设置,默认为 60。 schedule_resets: 120


</details>

**奖励示例**
 <details>
<summary>命令奖励</summary>

 reward:
  type: command
  reward: xp give %player% 100
  message: You won some experience # (可选)如果你不希望显示奖励消息,请不要添加此选项

</details>
 
 <details>
<summary>列表形式的命令奖励</summary>

 reward:
  type: command
  reward:
  - xp give %player% 100
  - eco give %player% 500
  - broadcast %player% won the game 

</details>
 
 <details>
<summary>物品奖励</summary>

 reward:
  type: item
  reward: apple, 5 # 对于物品奖励,先声明 Bukkit 材质名称,后跟数量
  message: ‘&aYou won 5 Apples’

</details>
 
 <details>
<summary>列表形式的物品奖励</summary>

reward:
  type: item
  Reward:
  - apple, 5 # 对于物品奖励,先声明 Bukkit 材质名称,后跟数量
  - oak_planks, 2
  - ender_chest, 1
  message: ‘#01d54aYou won some items’

</details>
 
 <details>
<summary>权限奖励</summary>

 reward:
  type: permissions
  reward: test.permission

</details>
 
 <details>
<summary>列表形式的权限奖励</summary>

reward:
  type: permission
  reward:
  - test.permission
  - test.permission2
  - test.permission3
  message: You have won some permissions

</details>
 
 <details>
<summary>货币奖励</summary>

 reward:
  type: 'currency'
  reward: 500
  message: You won $500

</details>
 
 <details>
<summary>经验值奖励</summary>

 reward:
  type: experience
  reward: 500
  message: You won $500

</details>
 
 <details>
<summary>无奖励</summary>

 reward:
  type: none

</details>

**告示牌示例**
 <details>
<summary>基础告示牌</summary>

signs: 1: game: 1 material: OAK_WALL_SIGN world: world x: 2 y: 65 z: 2 facing: south format: - ' ' - 'Click me to join' - 'game #1' - ' '


</details>
 
<details>
<summary>带占位符和颜色的告示牌</summary>

signs: 1: game: 1 material: OAK_SIGN world: world x: 2 y: 65 z: 2 facing: south format: - '&a%game_ID%' - '&e%game_state%' - ' ' - '#01d54a%game_players%/%game_maxplayers%'


</details>

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源