Amount Limits

ExcellentJobs has a setting to limit the maximum number of jobs a player can join simultaneously.

Configuration

Configuration is done in the main module file in the Amount-Limit section.

Parameters:

  • Mode - Available values: RANK and PERMISSION.
  • Permission_Prefix - Prefix for creating permissions for the PERMISSION mode.
  • Default_Value - Default value. Applies when none of the rules specified in Values apply to the player.
  • Values - List of "key" - "amount of jobs" pairs.

Mode descriptions:

  • RANK - Works automatically by selecting the highest value from Values, checking if the player is in the specified group.
  • PERMISSION - In this mode, you need to grant a permission to a group or player by combining the Permission_Prefix and a key from Values.
jobs.yml
Amount-Limit:
  Mode: RANK
  Permission_Prefix: jobs.amount.
  Default_Value: 3.0
  Values:
    pro: 4.0
    elite: 5.0
    admin: -1