nTrivia icon

nTrivia -----

Make your server chat more alive with random trivia questions.



[​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]
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.
[​IMG]
Resource Information
Author:
----------
Total Downloads: 357
First Release: Jun 6, 2020
Last Update: May 13, 2022
Category: ---------------
All-Time Rating:
2 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings