Config ‐ Tiers - Rosstail/Karma GitHub Wiki

While karma is just a numerical value, it is mostly used for the Tier system. You can make it as Wanted Level in GTA, Light vs Dark sides of the Force, alignement (Good, Neutral, Evil) like in DnD. Each tier can have some comportment.

Each karma changes, connection and plugin reload will make the plugin check for a tier change.

#config.yml

tiers:
  list:
    tier-1: #identifier
      display: <String>
      short-display: <String>
      minimum: <float>
      default: <float>
      maximum: <float>
      score:
        none: <float> #If the victim does not have a tier
        tier-1: <float>
        tier-2: etc...
      commands:
        on-join:
          - <String>
          - <etc>
        on-join-up:
          - <String>
          - <etc>
        on-join-down:
          - <String>
          - <etc>
    tier-2: etc.

HOW DOES IT WORK ?

Note that the tiers are read and listed following the order in config.

minimum and maximum are values to reach and stay in the specific tier.

default-karma is the karma a player gets if player tier is directly changed from edit commands. If empty, the value will be between minimum and maximum.

score Is useful on hit/kill karma calculations, if you want a static amount depending of what tier is the attacker and the victim.

commands : Commands that launches upon joining events.

  • on-join : Launches command when player joins tier
  • on-join-up : launch commands if the previous tier is listed before the new one on config.
  • on-join-down : launch commands if the previous tier is listed after the new one on config.

If you need to use commands that uses single quotes and double quotes, do not use any quote around the line. Example: summon creeper -818 100 -223.25 {CustomName:'{"text":"Bob-Omb"}'} and not "summon creeper -818 100 -223.25 {CustomName:'{"text":"Bob-Omb"}'}"

⚠️ **GitHub.com Fallback** ⚠️