Additions
➕
Implemented reward commands that allow for probability. You can now add rewards that have a pre-defined % chance to be given to the winner. Just add the chance-commands section to each rewards section that you require chance commands for.
Code (YAML):
reaction-test
:
enabled
: true
words
:
- 'apple'
- 'banana'
- 'pear'
- 'orange'
- 'hippopotamus'
- 'egypt'
- 'pyramid'
- 'antidisestablishmentarianism'
- 'pneumonoultramicroscopicsilicovolcanoconiosis'
rewards:
use-prefix
: false
broadcast
:
- '&8&m-|
------------------------------------------------|-&r'
- '&r &9C&a&lh&ba&c<&dG&e&la&7m&2&le&3s'
- '&r'
- '&r &7
%player% &ehas won $50 for getting the answer!'
- '&r &eAnswer
:
&6&l%answer%!'
- '&r'
- '&r&8&m-|
------------------------------------------------|-'
commands
:
- 'eco give
%player% 50'
chance-commands:
cmd1:
command
: 'eco give
%player% 100'
chance
: 50
# percent chance
cmd2:
commands
: 'eco give
%player% 1000'
chance
: 5
# percent chance
Optimisations/Bug Fixes
⚒ Hex Color codes will now display properly again. Simple use the hex code anywhere in a string for it to display in-game, e.g.
Code (YAML):
prefix
: '
#FF0000&l[#FF002B&lC#FF0056&lh#FF2A56&la#FF7D2B<#FFD100&lG#99AF66&la#338CCC&lm#0095FA&le#00CAEF&ls#00FFE4&l] '
⚒ Fixed a bug where the plugin would not work properly if you did not have PAPI installed.
⚒ Fixed a bug where the math engine would only give negative answers, and would round these answers to 0 the majority of the time.
⚒ Fixed an issue where games would not run properly if all players left during the first game.
⚒ Reworked some utility classes to tidy up the code-base and minor optimisation improvements.
-|-----------------------------------------------------------------|-
As always if you need any support feel free to reach out
to me on Discord and I will do my best to support you!
-|-----------------------------------------------------------------|-