HomeJavaModsnTrivia
nTrivia
[​IMG]
nTrivia
[​IMG]
[​IMG]
[​IMG]
nTrivia is a plugin that allows you to ask players trivia questions in chat. The first to answer gets a reward of your choosing.

[​IMG]
/ntrivia - No permission required - Shows the current plugin version.
/ntrivia reload - ntrivia.admin - Reload the config.
/ntrivia forcestart - ntrivia.admin - Force-start a trivia question.

[​IMG]
Spoiler: Default Config
Code (YAML):

#
#
# .__   __. .___________..______       __  ____    ____  __       ___
# |  \ |  | |           ||   _  \     |  | \   \  /   / |  |     /   \
# |   \|  | `---|  |----`|  |_)  |    |  |  \   \/   /  |  |    /  ^  \
# |  . `  |     |  |     |      /     |  |   \      /   |  |   /  /_\  \
# |  |\   |     |  |     |  |\  \----.|  |    \    /    |  |  /  _____  \
# |__| \__|     |__|     | _| `._____||__|     \__/     |__| /__/     \__\
#                                                                
#

General
:
  # Trivia Interval
  # How often a trivia question should be asked (in seconds).
  triviainterval
: 300
  # Answer Time
  # How long players have to answer a question (in seconds).
  answertime
: 30
  # Min. Players Online
  # The minimal player count before a travia question is asked.
  minplayers
: 1

Messages
:
  # Announce
  # Message sent when a new trivia question is activated.
  # Placeholders:
  # {seconds} = time to answer.
  # {question} = question to ask.
  announce
: '&b&lTrivia &8» &fYou have &b {seconds } seconds &fto answer the following question : &b{question}&f.'
  # Won
  # Message sent when a player answers correctly.
  # Placeholders:
  # {player} = name of the player who won.
  # {question} = question which was asked.
  # {answer} = the answer the player gave.
  won
: '&b&lTrivia &8» &b {player } &fanswered the question : &b{question}&f = &b {answer } &fand got a reward.'
  # Not In Time
  # Message sent when nobody answers in time.
  # {question} = question which was asked.
  # {answer} = the correct answer.
  notintime
: '&b&lTrivia &8» &fNobody answered the question : &b{question}&f in time. The answer was &b {answer }&f.'

# RewardCommands
# These commands are ran by console when a player answers correctly.
# Placeholders:
# {player} = the player that answered correctly.
RewardCommands
:
 - give {player } diamond 1

# Questions
# Contains a list of all questions
# Format:
# - 'Question|||CorrectAnswerOption|||CoorectAnswerOption|||CorrectAnswerOption|||CorrectAnswerOption etc...'
Questions
:
 - 'In what year was minecraft released?|||2009'
  - 'Who is the original creator of Minecraft?|||Notch|||Markus Persson'
 

To add your own questions, add a line following this format to the Questions array in the config file:
Code (YAML):
  - 'YourQuestionHere|||AnswerOptionHere|||AnotherAnswerOptionHere|||EvenAnotherOptionHere etc ...'
[​IMG]
If you are having issues with nTrivia, you can open an issue on Github or contact me directly. Please don't post a negative review to report bugs!

[​IMG]
This plugin is open source! Click here to visit the Github repository.
nTrivia uses bStats to track anonymous usage statistics. Please don't disable it, as it helps developers stay motivated.
Spoiler: bStats
[​IMG]

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

nTrivia is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9, 1.10 and newer. Downloaded 384 times (via Spigot). Download it and open it directly in the game.

Explore more