▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Trivia

Trivia

Trivia minigame for Spigot

Оцените первым
25
0

!Trivia game start

A game-show plugin for Spigot/Paper servers. Asks multiple-choice questions in chat, and players answer by standing on the matching coloured block in an arena. Player chat is muted while questions are live, so nobody can spoil the answers.

A game of Trivia is split into rounds, where each round contains a variable number of questions. The host drives the game with commands:

  1. /trivia game start - enrols every online player except those with the trivia.ignored permission.
  2. /trivia round start - announces the round number and its name, in chat and as an on-screen title.
  3. /trivia round ask - asks the next question. Repeat until the round runs out, then /trivia round start for the next one.

The question is broadcast in chat, and three seconds later the answer options appear, labelled A, B, C, …. Letters are tied to block_options. Which answer appears under each letter is shuffled every question, so players must read the options each time.

Players move onto the pad matching their answer. answer_delay seconds after the options appear, the correct answer is revealed: the block beneath each player is checked (searching downward to block_search_lower_bound), and anyone not standing on the correct block counts as wrong.

Player chat is muted from /trivia round start / /trivia round ask until the answer is revealed, so answers can't be typed out. Grant trivia.ignored to anyone (such as the host) who needs to talk during a question.

Game modes

ModeDescription
casualCorrect answers score a point; nobody is eliminated. Players who join the server mid-game are added automatically, and /trivia game scoreboard shows the standings.
competitive (default)A wrong answer kills the player. When only one player remains, the game ends and the winner is announced (if end_game_on_lone_player is true).

Commands

All commands are host-only and share the alias /tr.

CommandDescription
/trivia reloadReloads config.yml, questions.yml, and trivia-messages.yml. Round and question progress is reset, so follow up with /trivia game start to restart the game.
/trivia game startStarts a game with all online, non-ignored players.
/trivia round startStarts the next round — the first round if the game has just started, otherwise the next one.
/trivia round askAsks the next question in the current round.
/trivia game scoreboard <top N>Broadcasts the players with the top N scores. Only functional when game_type is casual.

Permissions

PermissionDefaultDescription
trivia.hostServer operatorsRequired to use the /trivia commands. The node checked in-game is the value of permission_host in config.yml (default trivia.host); the command is also registered with trivia.host in plugin.yml, so that node is always required.
trivia.ignoredNobodyExcludes a player from the game: they are never enrolled, and they can chat while questions are live. Grant this to hosts and spectators.

Configuration

config.yml

KeyDefaultDescription
permission_hosttrivia.hostEnables the use of the /trivia commands.
permission_ignoredtrivia.ignoredPlayer is not counted in the game.
game_typecompetitivecasual or competitive
block_optionsblue/red/yellow concreteOrdered material: "&colour" map. Keys are vanilla material names, unknown ones are skipped.
answer_delay5Seconds between the options appearing and the answer being revealed.
block_search_lower_bound-64The lowest y-level searched beneath a player for the block they're standing on.
scoreboard_cutoff5Maximum player names listed per score on the scoreboard.
end_game_on_lone_playertrueEnd the game and announce the winner when only one player remains (competitive).

questions.yml

Rounds are played in file order, and questions within a round are asked in file order.

KeyDescription
roundsA list of round objects.
round.nameThe round's name, shown when the round starts.
round.questionsA list of question objects.
question.questionThe question to be asked.
question.answerThe correct answer.
question.incorrectAnswersA list of incorrect answers.
rounds:
  - name: "General Knowledge"
    questions:
      - question: "What is the capital of Norway?"
        answer: "Oslo"
        incorrectAnswers:
          - "Helsinki"
          - "Stockholm"
          - "Berlin"

Each question shows the correct answer plus incorrect ones, up to min(number of blocks in block_options, incorrectAnswers + 1) options in total - extra incorrect answers are randomly sampled. Provide at least one fewer incorrect answer than you have blocks (e.g. 2 for the default 3 blocks) so every pad gets used.

trivia-messages.yml

All values support & colour codes.

KeyPlaceholderBroadcast when
game_start-A game starts.
round_start%d = round numberA round starts.
scoreboard%d = scoreEach score tier on the scoreboard.
game_end%s = winner's nameA player wins the game.
Партнёрский материал

Сервер для плагина Trivia - как у профи

Плагин Trivia создан для серверов: на своём сервере вы настраиваете его под себя и решаете, кому играть. Создать сервер с плагином Trivia для друзей можно за пару минут - BungeeHost всё уже подготовил.

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

26.2.x

Платформы

Поддерживаемые окружения

Сервер

Ссылки

Создатели

Детали

Лицензия:
Опубликован:1 месяц назад
Обновлён:1 месяц назад
Главная