/ycg reload - reloads configuration (yochatgames.command.yochatgames and yochatgames.command.reload)
/roll [int] - draws a winner from among all the players and gives him a prize. You can choose the number of draws (yochatgames.command.roll)
/code [text] - generates a random string of characters and numbers that players have to rewrite. You can also set your own code.(yochatgames.command.code)
/codes - generates a three random string of characters and numbers that players have to rewrite.(yochatgames.command.codes)
/text - With this command you set the text that the players have to rewrite. Each person who rewrites the text at the specified time is rewarded (yochatgames.command.text)
» Config:
Code (YAML):
no-permission: "&cNo permission." int-error: "&cThe argument must be a number" bad-usage: "&cBad usage." reloaded: "&cReloaded configuration." roll:
exempt-players: - example
rewards:
example_eco_1:
values:
min: 20
max: 100
command: "eco give {PLR} {VAL}" message: "&l&7Player &b{PLR} &7won &b&l$&b{VAL}." example_item_221:
values: #if you are giving items you can use it to specify amount min: 1
max: 3
command: "give {PLR} diamond {VAL}" message: "&l&7Player &b{PLR} &7 won &b{VAL} diamonds!" example_item:
values: #in overall, it isn't required min: 1231
max: 4323
command: "give {PLR} stick 1 name:super_stick" message: "&l&7Player &b{PLR} &7won &bspecial item." messages:
header: "&8&l&m &8[&b Roll &8]&8&l&m " footer: "&8&l&m &8[&b Roll &8]&8&l&m " code: #json: false #that feature will be added soon! rewards:
example_eco_3:
values:
min: 20
max: 100
command: "eco give {PLR} {VAL}" message: "&l&7Player &b{PLR} &7rewrote the code(&b{CODE}&7) first and won &b&l$&b{VAL}." example_item:
values:
min: 1
max: 3
command: "give {PLR} diamond {VAL}" message: "&l&7Player &b{PLR} &7rewrote the code(&b{CODE}&7) first and won &b{VAL} diamonds!" example_item_23:
values:
min: 1231
max: 4323
command: "give {PLR} stick 1 name:super_stick" message: "&l&7Player &b{PLR} &7rewrote the code(&b{CODE}&7) first and won &bspecial item." messages:
json: #that feature will be added soon! Now plugin uses "disabled" messages :c #enabled: # hover-mess: "&3Code: &7{CODE}" # broadcast: "&7Whoever rewrites the code first wins! Move the cursor &b&nover this message&7 to see the code!" disabled:
broadcast: "&7Whoever rewrites the code first wins! The code is: &b&n{CODE}" header: "&8&l&m &8[&b Code &8]&8&l&m " footer: "&8&l&m &8[&b Code &8]&8&l&m " text:
time: 15
#in seconds rewards:
example_eco_1:
values:
min: 20
max: 100
command: "eco give {PLR} {VAL}" message: "&l&7Player &b{PLR} &7rewrote the text and won &b&l$&b{VAL}." example_item_221:
values:
min: 1
max: 3
command: "give {PLR} diamond {VAL}" message: "&l&7Player &b{PLR} &7rewrote the text and won &b{VAL} diamonds!" example_item:
values: #in overall, it isn't required min: 1231
max: 4323
command: "give {PLR} stick 1 name:super_stick" message: "&l&7Player &b{PLR} &7rewrote the text and won &bspecial item." messages:
header: "&8&l&m &8[&b Text &8]&8&l&m " broadcast: "&7Text to rewrite: &b{TEXT}&7. You only have {TIME} seconds!" footer: "&8&l&m &8[&b Text &8]&8&l&m " time-run-out: "&cTime to rewrite the text has passed."
» Important info:
I recommend using the plugin on versions 1.15.x and above!
My discord: Yoahim#5237
If you have problems with the plugin, invite me and write!