SkLevels - ✅ Manage custom levels ✅ Easy API

API SkLevels - ✅ Manage custom levels ✅ Easy API 1.2

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Supported Skript Version
  1. 2.8
Supported Minecraft Versions
  1. 1.20
SkLevels.png


Manage custom leveling systems easily !

Requires: Skript-yaml, Skript


What could be better than a way to centralize all your level systems? With SkLevels, use a very simple API to manage player levels. You can use this for jobs, class levels, and much more!​
YAML:
levels:
  #Create your levels here. You can create an infinite amount of them!
  rpg-level:
    #Min level set to default for all players
    min-level: 1
    #Max level
    max-level: 100
    #XP needed for level 1
    base-max-xp: 100
    #Multiplier that increases the maximum experience needed for each level
    #For example, setting this value to 1.50 will increase the maximum xp by 50% at each level
    max-xp-multiplier: 1.50
  
    #EVERYTHING BELOW IS OPTIONAL
    #
    #Message for leveling up
    #Placeholders:
    #{level} = new level
    #{past-level} = past level before leveling
    level-up-message:
      - " "
      - "&a&lLEVEL UP !"
      - "&a&eGG ! You are now level &a{level}"
      - " "
    #Sound to player when a player levels up
    level-up-sound:
      sound: entity.player.levelup
      pitch: 1.5
      volume: 1

Code:
SkLevelsGetCurrentXP(player, leveltype)
    Returns the current XP of a player's level
    Example: SkLevelsGetCurrentXP(player, "rpg-level")
  
SkLevelsGetCurrentMaxXP(player, leveltype)
    Returns the current Max XP of a player's level 
  
SkLevelsGetCurrentLevel(player, leveltype)
    Returns the current level of a player
  
SkLevelResetPlayer(player, leveltype)
    Resets the XP and the level of a player

SkLevelsGiveXP(player, leveltype, amount)
    Gives an amount of XP to a level type

SkLevelsProgressBar(player, leveltype, barstyle, baramount)
    Returns a custom progress bar to show in a lore for example.
    barstyle represents the 'style' of the bar. For example you can type -, ▅, █...
    baramount is the length of the bar
Author
Palgia
Downloads
77
Views
171
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Palgia