A Gym Requirement is made up of three parts: its type, its value, and an error message displayed when the requirement is not met. They can be viewed, added, and deleted via the GUI.
Adding Gym Requirements via the GUI
You can edit Gym Requirements from the Gym Management Menu Clicking on the Manage Requirements button will open the Requirements Menu In the Requirements Menu, you can see and edit existing requirements. To add a new Requirement, click the button on the left.
A new Menu for adding Gym Requirements will open Each type of requirement is displayed here. Choose which one you'd like to add, and click the paper icon.
The Gym Requirement Menu lets you edit the value & error message. For instance, this is a "minimum_team_level" requirement, so changing the value to 40 would require the challengers team's Pokemon to all be at least level 40.
You can save and delete requirements directly Once you're happy, remember to left click to save! If you're unhappy, right clicking will delete the requirement and take you back to the Gym Manage Menu.
Gym Requirement Types
Permission Requirement
Require the player to have a certain permission node. You should set the value for this requirement as the permission node required. For instance, "pokedex.rank.starter" could be a permission requirement for your second gym. Your error message could then be "<red>You need to have the Starter rank to challenge this Gym!"
Beaten a Specific Gym
Require the player to have beaten a specific gym already. The value for this requirement is the ID of the gym they must have beaten. For example, "gym_id_001" for the first gym. The error message could be "<red>You must first defeat the Boulder Gym to challenge this one!"
Not Beaten a Specific Gym
This requirement is to ensure that a player has not already beaten a specific gym. Useful for gyms that can only be challenged once. The value should be the ID of the gym that must not have been beaten, like "gym_id_003". The error message could state "<red>You have already defeated this Gym and cannot challenge it again!"
Beaten All Previous Gyms
Require the player to have beaten all previous gyms in a set sequence. No specific value needs to be set as the system determines the 'previous' gyms based on the order you define in the gym menu. An appropriate error message could be "<red>Defeat all previous gyms before challenging this one!"
Minimum Team Level
Set this requirement to demand that a player's team must be above a certain level. The value should be the minimum level required, such as "20". The error message might read "<red>Your team must be at least level 20 to enter this Gym!"
Maximum Team Level
This requirement ensures that a player's team does not exceed a certain level, preserving challenge difficulty. The value should be the maximum allowable level, like "30". The error message could be "<red>Your team must not exceed level 30 to challenge this Gym!"
Exact Team Level
Sometimes, you might want a gym challenge to be based on exact parity in team levels. Set the required level as the value, such as "25". The error message for this requirement could say "<red>Your team must be exactly level 25 to enter this Gym!"