HomeJavaModsAnswerAndWin | Answer Questions, Win Coins, Buy Rewards! [1.8-1.13]
AnswerAndWin | Answer Questions, Win Coins, Buy Rewards! [1.8-1.13]
ModsJava

AnswerAndWin | Answer Questions, Win Coins, Buy Rewards! [1.8-1.13]

⬇ Download on Spigot
[​IMG]

ATTENTION: THIS PLUGIN WILL NOT BE UPDATED ANYMORE


English:

This plugin allows the users of your server to answer questions every X time. If they answer correctly, they will win a certain amount of coins (you can modify all this on the config). Coins are used to buy rewards on the Rewards Inventory that can be accessed using the command /aaw rewards

There are a total of 5 rewards, each of them can be used on a different way, but that's up to you. Below you can find a tutorial explaining in detail the config.

Spanish:
Este plugin permite que los usuarios puedan contestar preguntas cada X tiempo. Si responden correctamente, ganaran una cierta cantidad de puntos (obviamente puedes modificar todo esto en la config). Los puntos son utilizados para comprar recompensas en el Inventario de las Recompensas el cual puede ser accedido mediante el comando /aaw rewards

Hay un total de 5 recompensas, cada una puede ser utilizada de forma distinta, pero eso depende de ti. Mas abajo podras encontrar un tutorial explicando en detalle toda la config.


[​IMG]
- Multiple Questions, add your own Questions
- GUI Inventory for Rewards
- 5 Rewards. Execute your own commands
- Singleplayer Question command (/aaw question)
- Global Question (The player who answer correctly, wins the coins)
- Top Stats
- No permissions needed
- Works in 1.8+



Spoiler: Config.yml
Code (Text):
# AnswerAndWin by Ajneb97
# I'm new here in the creation of plugins so it is possible that you can find bugs.
# If so, please contact with me:
# https://www.spigotmc.org/members/ajneb97.43796/
# -> questions-delay <- The amount of *seconds* players need to wait, before they can answer a question again.
# -> rewards-inventory-icon <- Name of the rewards icons on the rewards inventory.
# -> rewards-inventory-coins-icon <- Name of the coins icon on the rewards inventory.
# Materials Link: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
# -> rewards-buy-firework <- Set to true if you want to spawn a firework above the player when buying a reward. If not, set to false.
# -> new-version-reminder <- If is set to true, a message will be sended to all admins if there is a new version of the plugin.
# -> countdown-sound (enabled) <- Enable or disable the countdown sound (true or false).
# -> countdown-sound (name) <- Name of the sound that the player will hear before answering a question on the countdown.
# You need to know that sounds names have changed in 1.9 so be careful with that. Links:
# Sounds 1.8: http://docs.codelanx.com/Bukkit/1.8/org/bukkit/Sound.html
# Sounds 1.9+: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html
# -> global-question (enabled) <- If is set to true, a question will appear in the chat every X time and the user who answer first
# will win the corresponding amount of coins.
# -> global-question (min-players) <- Minimun amount of players who need to be on the server for the global question to appear
# -> rewards (cost) <- Cost of the reward in AnswerAndWin coins.
# -> rewards (random-commands) <-
# In this section you can execute commands to the player. Be careful because every line means one different reward. The plugin will execute one line random.
# For example if you want to give the player 5 diamonds, you need to put in quotes: 'give %player% diamond 5'
# If you want to say to the player what item he wins just put: 'msg %player% message' (You can use color codes!).
# If you want to execute multiple commands you need to add a ';' before the next command just like you can see below.
# -> Questions (question) <- This is the question that the player will need to answer.
# -> Questions (answer) <- The answer of this question.
# If you want multiple answers you can add a ';' before the next answer.
# -> Questions (coins) <- The amount of coins the player will win if he answers correctly.
# -> Questions (time) <- The time the player has to answer the question.
# -> Questions (random) <- Set to true to give the player a random amount of coins (If the value of coins is 3, the player will win 1, 2 or 3 coins)
Config:
   questions-delay: 7200
   rewards-inventory-icons: CHEST
   rewards-inventory-coins-icon: GOLD_NUGGET
   rewards-buy-firework: true
   new-version-reminder: true
   countdown-sound:
       enabled: true
       name: NOTE_PLING
   global-question:
       enabled: true
       min-players: 1
       delay: 1800
   reward1:
       cost: 3
       random-commands:
       - 'give %player% diamond 3;msg %player% &6Congrats! You won: &2&lx3 Diamond&6!'
       - 'give %player% coal 15;msg %player% &6Congrats! You won: &2&lx15 Coal&6!'
   reward2:
       cost: 5
       random-commands:
       - 'give %player% diamond 10'
   reward3:
       cost: 10
       random-commands:
       - 'give %player% diamond 30'
   reward4:
       cost: 25
       random-commands:
       - 'give %player% diamond 50'
   reward5:
       cost: 50
       random-commands:
       - 'give %player% diamond 64'
Questions:
   example:
      question: 'What is the result of 2 + 2 - 3?'
      answer: 1
      coins: 3
      time: 15
      random: false

[​IMG]
1) First you must create a lot of questions, because the plugin will choose one random when a player use the command /aaw question
To create a question use /aaw create <question> (This is not the question, is just the section name, later you will need to edit the question)
2) Now you must set the question properties, like the question, the answer, the amount of coins the player will win, all of this with the command /aaw set <question> <property>
3) Is not necessary that you create or edit this questions via commands, you can modify all of this on the config.yml, just be careful (I recommend Notepad++)
4) Now you need to set up the different rewards on the config, the cost of them and the commands that will execute to the player when he answer correctly. Be careful, because every line means one different reward, the plugin will execute one of them random. (Remember, you can add multiple commands in one line, just follow the instructions of the tutorial on the config)
5) Now all is ready! Users must use this command /aaw question to answer the questions.

How to Start [SPANISH]:
Spoiler: Tutorial en Español
1) Primero debes crear muchas preguntas, ya que el plugin seleccionara una al azar cuando un usuario use el comando /aaw question
Para crear una pregunta utiliza /aaw create <nombre-pregunta>
2) Ahora debes modificar las propiedades de la pregunta, tales como la misma pregunta, la respuesta, la cantidad de puntos que ganara el jugador si constesta correctamente, todo esto con el comando: /aaw set <pregunta> <propiedad>
3) No es necesario que crees o edites las preguntas via comandos, tambien puedes hacerlo directamente en la config del plugin, eso si ten cuidado al editarla! (Recomiendo Notepad++)
4) Ahora necesitas configurar las diversas recompensas en la config, el precio en puntos de cada una de ellas y los comandos que se ejecutaran al jugador si contesta correctamente. Ten cuidado, ya que cada linea corresponde a una recompensa, el plugin ejecutara una aleatoriamente. (Recuerda, puedes añadir varios comandos en una misma linea, solo sigue las instrucciones en el tutorial de la config).
5) Ahora todo esta listo! Los usuarios deben utilizar este comando para poder contestar a la preguntas: /aaw question


[​IMG]
-/aaw create <question> Allows you to create a question
-/aaw set <question> Allows to set the question properties
-/aaw delete <question> Deletes a question from the config
-/aaw rewards Open an inventory to buy rewards with coins
-/aaw question Allows you to answer a question
-/aaw givecoins <player> <amount> Allows to give plugin coins to a player
-/aaw top <questions/coins> Shows the top players stats
-/aaw info Shows plugin info
-/aaw reload Reload plugin configs

[​IMG]
Just one for now: aaw.admin

[​IMG] [​IMG]

Translation:
Spanish: [Click Aqui]

Info:
I'm new here in the creation of plugins (and java in general) so probably you will find bugs, if so please contact with me ;)

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.

AnswerAndWin | Answer Questions, Win Coins, Buy Rewards! [1.8-1.13] is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 4,392 times (via Spigot). Download it and open it directly in the game.

Explore more