跳到正文

Haven Trivia

作者:CathieNova

Adds a trivia system with a variety of categories and questions.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

HavenTrivia

is a server-side Forge mod that adds trivia questions with rewards and a leaderboard.
It’s fully automated, configurable, and requires no client mod.


Commands

Public

  • /trivia leaderboard
    Shows the top 10 trivia scorers.
  • /trivia about
    Lists how many trivia questions and rewards exist for each category. (only shows amount per category)

Admin-only (haventrivia.admin)

  • /trivia start
    Starts the automatic trivia scheduler.
  • /trivia stop
    Stops auto-trivia.
  • /trivia ask
    Asks a trivia question immediately.
  • /trivia timeout
    Forces the current question to time out.
  • /trivia reload
    Reloads questions.json and rewards.json.
  • /trivia add <player|all> <amount>
    Adds points to a player or all online players.
  • /trivia remove <player|all> <amount>
    Removes points from a player or all players on the leaderboard.
  • /trivia reset <player|all>
    Resets score for a player or clears the entire leaderboard.

Config

  • interval – Seconds between automatic trivia questions
    Set to 0 to disable auto mode.
  • minPlayers – Minimum online players needed to trigger trivia
  • maxTime – Time (in seconds) before a question times out
  • prefix – Text prefix added to all trivia messages

How it works

  • Questions are loaded from questions.json, organized by difficulty
  • Rewards (items and commands) are defined per category in rewards.json
  • Trivia is broadcast globally and rewards the first correct answer
  • Each correct answer gives the player 1 point
  • Points are saved and ranked in a persistent leaderboard
  • Data is stored in the world folder:
    serverconfig/haventrivia/

Permissions

Admin commands require:
haventrivia.admin

If no permissions mod is present, the mod defaults to vanilla permission level 2 (OP).

常见问题

Haven Trivia 支持哪些 Minecraft 版本?

Haven Trivia 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

Haven Trivia 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

CathieNova 的其他作品

查看全部 →