🎮
ChatGames
  • What is ChatGames?
  • Updating to 2.0.0
  • Game Types
    • Reaction
    • Unscramble
    • Trivia
    • Math
  • Commands & Permissions
  • Placeholders
  • Configuration Files
    • Config.yml
      • MySQL Saving
    • Messages.yml
  • Scoreboard
    • GUI
    • DecentHologram Support
  • FAQs
Powered by GitBook
On this page
  • What are Trivia Games?
  • How do I configure a Trivia Game?
  • Trivia Messages
  1. Game Types

Trivia

Game Type: Trivia

What are Trivia Games?

Trivia games are a great way to have the plugin support a game type that may not be natively supported. This game type gives you the freedom to set your own questions with your own answers. This way you can have your own mathematic equations, general trivia or even scramble a word yourself if you do not wish to use the built-in scrambling function. Trivia has been provided to ensure that the plugin has maximum support for your game ideas!

How do I configure a Trivia Game?

Configuring Trivia Games is very simple and can be done through the config.yml file. You can use the template below to add games to your trivia. It should be noted that the 'key' of your trivia can be any word you desire as long as you do not have duplicate keys.

# Trivia
trivia:
  enabled: true # Should we add Trivia Games to the game pool?
  whomademinecraft: # This is the key and it can be any text you want (without spaces).
    question: 'Who created Minecraft?' # The trivia question
    answer: 'Notch' # The trivia answer
    rewards: # The reward handler
      broadcast: # What should we broadcast when someone wins the game? Supports %player%, %question% and %answer% placeholders
        - '&7%player% &ehas won &6$50&e by getting the correct answer: &6&l%answer%!'
      commands: # What commands should we run when someone wins? Supports %player% placeholder
        - 'eco give %player% 50'

Trivia Messages

You can also change the messages that are displayed in game when a trivia game is started, won or lost. You are able to change these inside the messages.yml file. The below values show you how to change the default messages:

# Trivia Game Format
trivia-start: '&eSolve the following to win a prize: &7%question%'
trivia-lose: '&7Nobody won! The correct word was &b&l%answer%.'

# Trivia Hologram Format
trivia-scoreboard:
  - '&8[&a&lTrivia Hi-Scores&8]'
  - '&6&l1st: &7%trivia_player_1% : %trivia_score_1%'
  - '&9&l2nd: &7%trivia_player_2% : %trivia_score_2%'
  - '&c&l3rd: &7%trivia_player_3% : %trivia_score_3%'
  - '&b&l4th: &7%trivia_player_4% : %trivia_score_4%'
  - '&b&l5th: &7%trivia_player_5% : %trivia_score_5%'
PreviousUnscrambleNextMath

Last updated 2 years ago