Quizrace.yml - wouter-blockken/ChatBrawl GitHub Wiki

#turn this race on/off
enabled: true

#The chance of this race occuring
chance: 10

#The duration of this plugin in seconds
# !!!Needs to be lower than the event
duration: 900

#list of questions players need to answer, you can add as many entries as you like
#make sure to use a unique identifier when adding! (1 in this example)
questions:
  1:
    #question that is asked to players
    question: 'What''s the capital of France?'

    #list of possible answers for this question
    answer:
      - 'paris'
      - 'parijs'
      - 'Paris'

    #list of rewards for this entry, one of them will be executed
    #when someone wins
    rewards:
      - 1
      - 2

#enable firework when someone wins
enable-firework: true

#enable actionbar for announcing the start of this race
enable-actionbar: true

#list of settings about broadcasts
broadcast:

  #center broadcast messages
  center-messages: false

  #enable the start broadcast
  enable-start: true

  #enable the end broadcast when no one wins
  enable-end: true

#sound settings
sound:
  #enable sound on start/finish
  enabled: true

  #sound used for start/end of race, list of sounds can be found on:
  #https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html
  begin-race: BLOCK_ANVIL_PLACE
  end-race: BLOCK_NOTE_BLOCK_PLING

#language entries for this race
#make sure to keep the placeholders in the correct messages,
#changing them around might break the plugin!
language:

  #actionbar message shown if enabled
  actionbar: '&6&oQuiz Race &7&l>> &fAnswer &b<question>'

  #start broadcast, lines can be removed/added
  start:
    - ' \n'
    - '&7&l>&m========&r&7{ &7(&e!&7) &6Quiz Race &7(&e!&7) &7}&m=======&r&7&l>\n'
    - ' \n'
    - ' &fAnswer the following question:\n'
    - ' \n'
    - '    &b<question>\n'
    - ' \n'
    - '&7&l>&m===========================&r&7&l>\n'
    - ' '

  #end broadcast when there is no winner, lines can be removed/added
  ended:
    - '&7The &6Quiz Race &7ended without a winner! The answer was &b<answer>'

  #when someone wins broadcast, lines can be removed/added
  winner:
    - ' \n'
    - '&7&l>&m======&r&7{ &7(&e*&7) &6Quiz Race Winner &7(&e*&7) &7}&m=====&r&7&l>\n'
    - ' \n'
    - ' &fCongrats! &b<player> &fwas the fastest!\n'
    - ' &fThe answer was: &b<answer>\n'
    - ' \n'
    - '&7&l>&m==============================&r&7&l>\n'
    - ' '

  #message sent to the winner only
  winner-personal: '&7you won the &eQuiz Race&7!'
⚠️ **GitHub.com Fallback** ⚠️