Fix - Global rewards would only execute if the game also had unique rewards for that position as well. This has been fixed meaning global rewards now execute for any game even if no unique rewards have been specified for that particular game.
Feature - It has become apparent to me that some games are easy to continuously reach a new top position in e.g CookieClicker. Therefore, a new global exclusion option has been added to all games in the rewards.yml file. If you are using the global rewards you can now exclude certain games from being a part of those rewards. All games except for the CookieClicker game are not excluded by default. The exclusion options are all added automatically. Drag and drop the new jar and /reload.
New default file example:
Code (YAML):
# This is a rewards file for all Pocket Games. # # Commands are executed as Console and corresponds to the highscore position a player reaches. # Default is executed if a player did not make the highscore, but cleared 'minimum_points'/'maximum_time'. # It is also possible to have rewards based on score. Refer to the example below. # Valid placeholders: %player%, %score%, %time%, %game% & %game_noColor% # Example reward: (Do not use '/') # # DiamondCollect: # '1': # rewards: # - false, broadcast &d&l%player% &ereached first position in &b&lDiamondCollect &ewith a score of %score% points! # - true, give %player% diamond 1 # - false, msg %player% &aYou just won 100$! # - false, eco give %player% 100 # '2': # rewards: [] # '3': # rewards: [] # '4': # rewards: [] # '5': # rewards: [] # default: # rewards: [] # scoreRewards: # '5': #<- Score is 5 to 9. # rewards: # - false, broadcast &a%player% scored between 5 and 9! # '10': #<- Score is 10 to 14. # rewards: # - false, broadcast &a%player% scored between 10 and 14! # '15': #<- Score is 15 or higher. # rewards: # - false, broadcast &a%player% scored more than 15! # # GlobalRewards are executed for all games. If '1' in GlobalRewards is set it would be executed as well as the above. # # The boolean (true/false) value is used to queue commands until the game inventory is closed again. # This is used to avoid giving a player items in the Pocket Games inventory and effectively deleting them again on close. # true = queue, false = execute instantly. Queue ALL commands that reward items. Messages and eco are ok to execute instantly. # Use this link to watch an in-depth guide on how to configure the rewards correctly: https://www.youtube.com/watch?v=YbxBuPPvffA&t=406s