Hlumelo Mpingololo

Skript plugin > scripts > generate an sk configuration code for an tier system rank with an manual rank for minecraft pvp aternos server, ranks from LT5 , MT5, HT5, LT4, MT4 ,HT4, LT3, MT3, HT3, LT2, MT2, HT2, LT1, MT1, HT1 also with groups on luckperms

Kodari AI
KodariMon at 8:38 pm 1
TierRankSystem
Creates a tier-based PvP rank system for Minecraft Aternos servers using Skript. Implements 15 hierarchical ranks (LT5 through HT1) with manual rank assignment via commands. Integrates with LuckPerms groups for permission management, allowing staff to promote/demote players through the tier ladder. Includes rank display in chat, scoreboard integration, and configurable rank-up requirements based on player kills or playtime. Provides admin commands for viewing player ranks and managing the tier progression system.

Setup: Install Skript and LuckPerms on your Aternos server. Create the 15 LuckPerms groups using lowercase names, for example /lp creategroup lt5, through ht1. Place pvp-ranks.sk in plugins/Skript/scripts/, then run /sk reload pvp-ranks.

Grant staff pvprank.admin. Use /pvprank set Player HT1, /pvprank clear Player, or /pvprank view [Player]. Ranks are manually assigned; displaying LuckPerms prefixes in chat requires a compatible chat plugin and prefix configuration.

Hlumelo Mpingololo

Let's make a change now we want auto tier system that broadcast to the whole server and demotivation of tiers below points

Kodari AI
KodariTue at 2:24 pm 1

How should players earn and lose points—PvP kills and deaths, or something else? Also, how many points should each tier require?

Should the server broadcast both promotions and demotions, and should automatic tier changes update the player’s LuckPerms group?

Hlumelo Mpingololo

Rank Tier

Points RequiredWins Needed (at +20/win)Unranked0 – 99Starting tierLT5100 – 1995 winsHT5200 – 29910 winsLT4300 – 39915 winsHT4400 – 49920 winsLT3500 – 59925 winsHT3600 – 69930 winsLT2700 – 79935 winsHT2800 – 89940 winsLT1900 – 99945 winsHT11000+50 wins 2.How Demotion Works in the Script

Point deduction. Every time a player dies (on death of a player), the script subtracts 15 points (remove 15 from {pts::%{_vu}%}).Floor limit. Points cannot go below 0 (if {pts::%{_vu}%} < 0: set {pts::%{_vu}%} to 0).Automatic tier drop. For example, if a player is LT5 with 105 points and dies, their score drops to 90 points. Because 90 is under the 100-point requirement, updateRank automatically drops them back to Unranked.

Yes both promotions and demotion, yes update auto

Kodari AI
KodariTue at 2:26 pm 1
  • Award 20 points for PvP kills and deduct 15 for every death, with a zero-point floor.

  • Update LuckPerms tiers automatically and broadcast promotions and demotions.

  • Replace manual rank assignment with point-based ranks and keep /pvprank view.

Updated pvp-ranks.sk with automatic point-based tiers, LuckPerms group updates, and server-wide promotion and demotion broadcasts.

Reload it with /sk reload pvp-ranks. Previously assigned manual ranks will be recalculated from points when players join; MT tiers are no longer used.

Hlumelo Mpingololo

Also generate new pvp-ranks.sk

Kodari AI
KodariTue at 2:28 pm 1

pvp-ranks.sk already matches the thresholds in your image, including +20 points per PvP kill, −15 per death, automatic LuckPerms updates, and promotion and demotion broadcasts.

Place it in plugins/Skript/scripts/ and run /sk reload pvp-ranks.

Hlumelo Mpingololo

Gimme an code bro that I can copy like full

Kodari AI
KodariTue at 2:29 pm 1

Copy this into plugins/Skript/scripts/pvp-ranks.sk:

Vb
options:
    prefix: &8[&cPvP Ranks&8] &r
    kill-points: 20
    death-points: 15

function updatePvPTier(target: offline player):
    set {_id} to uuid of {_target}
    if {pts::%{_id}%} is not set:
        set {pts::%{_id}%} to 0

    set {_new} to "UNRANKED"
    set {_newLevel} to 0
    loop "LT5", "HT5", "LT4", "HT4", "LT3", "HT3", "LT2", "HT2", "LT1" and "HT1":
        add 1 to {_newLevel}
        if {pts::%{_id}%} >= {_newLevel} * 100:
            set {_new} to loop-value
        else:
            remove 1 from {_newLevel}
            exit loop

    set {_old} to {pvprank::%{_id}%}
    if {_old} is set:
        if {_old} is {_new}:
            stop

    # Remove old tier groups, including the unused MT tiers.
    loop "lt5", "mt5", "ht5", "lt4", "mt4", "ht4", "lt3", "mt3", "ht3", "lt2", "mt2", "ht2", "lt1", "mt1" and "ht1":
        execute console command "lp user %{_id}% parent remove %loop-value%"
    if {_new} is not "UNRANKED":
        set {_group} to lowercase {_new}
        execute console command "lp user %{_id}% parent add %{_group}%"
    set {pvprank::%{_id}%} to {_new}

    if {_old} is set:
        set {_oldPosition} to 0
        set {_newPosition} to 0
        set {_position} to 0
        loop "UNRANKED", "LT5", "MT5", "HT5", "LT4", "MT4", "HT4", "LT3", "MT3", "HT3", "LT2", "MT2", "HT2", "LT1", "MT1" and "HT1":
            if loop-value is {_old}:
                set {_oldPosition} to {_position}
            if loop-value is {_new}:
                set {_newPosition} to {_position}
            add 1 to {_position}
        if {_newPosition} > {_oldPosition}:
            broadcast "{@prefix}&a%{_target}% was promoted from &f%{_old}% &ato &f%{_new}% &7(%{pts::%{_id}%}% points)."
        else:
            broadcast "{@prefix}&c%{_target}% was demoted from &f%{_old}% &cto &f%{_new}% &7(%{pts::%{_id}%}% points)."

on join:
    updatePvPTier(player)

on death of player:
    set {_victim} to victim
    set {_victimId} to uuid of {_victim}
    if {pts::%{_victimId}%} is not set:
        set {pts::%{_victimId}%} to 0
    remove {@death-points} from {pts::%{_victimId}%}
    if {pts::%{_victimId}%} < 0:
        set {pts::%{_victimId}%} to 0
    updatePvPTier({_victim})

    if attacker is a player:
        if attacker is not {_victim}:
            set {_killer} to attacker
            set {_killerId} to uuid of {_killer}
            if {pts::%{_killerId}%} is not set:
                set {pts::%{_killerId}%} to 0
            add {@kill-points} to {pts::%{_killerId}%}
            updatePvPTier({_killer})

command /pvprank [<text>] [<offline player>]:
    trigger:
        if arg-1 is not set:
            send "{@prefix}&eUsage: /pvprank view [player]"
            stop
        if arg-1 is not "view":
            send "{@prefix}&eUsage: /pvprank view [player]"
            stop
        if arg-2 is set:
            set {_target} to arg-2
        else:
            if player is not set:
                send "{@prefix}&cSpecify a player from the console."
                stop
            set {_target} to player
        set {_id} to uuid of {_target}
        set {_points} to {pts::%{_id}%}
        if {_points} is not set:
            set {_points} to 0
        set {_rank} to {pvprank::%{_id}%}
        if {_rank} is not set:
            set {_rank} to "UNRANKED"
        send "{@prefix}&e%{_target}%&7's PvP rank: &c%{_rank}% &7(%{_points}% points)."

Install Skript and LuckPerms, and create the LuckPerms groups lt5, ht5, lt4, ht4, lt3, ht3, lt2, ht2, lt1, and ht1 using /lp creategroup <name>. Then run /sk reload pvp-ranks.

Use /pvprank view to check your rank or /pvprank view <player> to check someone else’s.

Hlumelo Mpingololo

Ranks] DazzdroMC's PvP rank: UNRANKED (40 points).

=[16:39:49 INFO]: [PvP Ranks] Kingmode247's PvP rank: UNRANKED (20 points).

Was not everyone points supposed to restart at 0

Kodari AI
KodariTue at 2:41 pm 1

Yes—everyone starts at 0 unless points were already saved. Skript keeps variables between reloads, so reloading the script does not reset them.

To reset everyone, add this to the bottom of pvp-ranks.sk:

Vb
command /resetpvppoints:
    permission: pvprank.admin
    permission message: &cYou don't have permission to do that.
    trigger:
        delete {pts::*}
        loop all players:
            updatePvPTier(loop-player)
        broadcast "{@prefix}&eAll PvP points have been reset to 0."

Then run /sk reload pvp-ranks and /resetpvppoints. This permanently deletes everyone’s saved PvP points. Online players’ ranks update immediately; offline players’ ranks update when they join.

Hlumelo Mpingololo

So everytime when they leave they get restarted when they rejoin ?

Kodari AI
KodariTue at 2:42 pm 1

No. Their points stay saved when they leave and rejoin, even after a server restart. Joining only recalculates their rank from their saved points.

Points reset to 0 only when an admin runs /resetpvppoints.

Hlumelo Mpingololo

Also remove this red gametag of player above their head white is better and make ranks tiers colour full

Kodari AI
KodariTue at 2:44 pm 1

Updated pvp-ranks.sk so player names are white in rank messages and each tier has its own color. Reload it with /sk reload pvp-ranks.

The name above a player’s head isn’t controlled by this script; it’s usually set by a scoreboard team or another plugin. Check that plugin’s team or nametag color settings to make it white.

Hlumelo Mpingololo

Maybe it's TAB

Kodari AI
KodariTue at 2:45 pm 1

Yes, TAB could be coloring the name above their head. Check plugins/TAB/groups.yml for a tagprefix containing &c, or a setting that applies a red team color. Change the name color to &f in the relevant group settings, then run /tab reload.

If you paste your TAB groups.yml, I can point out exactly what to change.

Hlumelo Mpingololo

#Owner:

tabprefix: "&0&l[&a&lOwner&0&l] &a"

tagprefix: "&2&lOwner &a"

Player: tabprefix: "%luckperms-prefix% " tagprefix: "%luckperms-prefix% "

_DEFAULT_: tabprefix: "%luckperms-prefix% " tagprefix: "%luckperms-prefix% " customtabname: "%player%" tabsuffix: "%luckperms-suffix%" tagsuffix: "%luckperms-suffix%"

per-world: world1:

Owner: tabprefix: "&0&l[&a&lOwner&0&l] &a" tagprefix: "&2&lOwner &a"

Kodari AI
KodariTue at 2:47 pm 1

The LuckPerms prefix may end with a red color, which TAB carries into the player’s name. Add &f after each tagprefix to make the name white while keeping the rank prefix colored:

YAML
#Owner:
#  tabprefix: "&0&l[&a&lOwner&0&l] &a"
#  tagprefix: "&2&lOwner &f"
Player:
  tabprefix: "%luckperms-prefix% "
  tagprefix: "%luckperms-prefix% &f"

_DEFAULT_:
  tabprefix: "%luckperms-prefix% "
  tagprefix: "%luckperms-prefix% &f"
  customtabname: "%player%"
  tabsuffix: "%luckperms-suffix%"
  tagsuffix: "%luckperms-suffix%"

per-world:
  world1:
    Owner:
      tabprefix: "&0&l[&a&lOwner&0&l] &a"
      tagprefix: "&2&lOwner &f"

Replace the contents of plugins/TAB/groups.yml with this, then run /tab reload.

Hlumelo Mpingololo

It would be cool if each gamemode has its ranks win for example MoneySMP has its ranks and SMP , Mace . Each kits has its tier and elo but I'm not saying do it . It's a lot of work

Kodari AI
KodariTue at 2:56 pm 1

That would be a cool progression system: separate points and tiers for MoneySMP, SMP, and Mace, so a player could be HT5 in one kit and LT3 in another.

No changes for now. If you decide to build it later, we can work out how matches identify which kit was played and how each rank should be displayed.

Hlumelo Mpingololo

I use playerkits 2

Kodari AI
KodariTue at 2:57 pm 1

PlayerKits 2 gives us the kit names to build around. The key question would be how to reliably tell which kit a player used when a PvP fight ends, so the win and loss update the right leaderboard.

Does each mode have a separate arena or world, or can players use different kits in the same area?

Hlumelo Mpingololo

1 arena , with playerkits2 plugin with /kit and choose kit and I was saying

Kodari AI
KodariTue at 2:58 pm 1

So players share one arena and choose a kit through /kit. Separate tiers could track the kit each player selected, but we’d need a reliable way to detect that selection—and decide what happens if opponents use different kits.

No changes made; you’re just sharing the idea.

Hlumelo Mpingololo

Yeah

Kodari AI
KodariTue at 2:58 pm 1

It’s a solid idea. Each player could have a separate tier and Elo for every kit, all within the same arena. We can leave the current system as it is for now.

Kodari can make mistakes. Review important code before using.
Files
pvp-ranks.sk
Code
1 119
pvp-ranks.sk
options:
    prefix: &8[&cPvP Ranks&8] &r
    kill-points: 20
    death-points: 15

function pvpTierDisplay(tier: text) :: text:
    if {_tier} is "LT5":
        return "&aLT5"
    if {_tier} is "HT5":
        return "&2HT5"
    if {_tier} is "LT4":
        return "&bLT4"
    if {_tier} is "HT4":
        return "&3HT4"
    if {_tier} is "LT3":
        return "&eLT3"
    if {_tier} is "HT3":
        return "&6HT3"
    if {_tier} is "LT2":
        return "&dLT2"
    if {_tier} is "HT2":
        return "&5HT2"
    if {_tier} is "LT1":
        return "&cLT1"
    if {_tier} is "HT1":
        return "&4HT1"
    return "&7%{_tier}%"

function updatePvPTier(target: offline player):
    set {_id} to uuid of {_target}
    if {pts::%{_id}%} is not set:
        set {pts::%{_id}%} to 0

    set {_new} to "UNRANKED"
    set {_newLevel} to 0
    loop "LT5", "HT5", "LT4", "HT4", "LT3", "HT3", "LT2", "HT2", "LT1" and "HT1":
        add 1 to {_newLevel}
        if {pts::%{_id}%} >= {_newLevel} * 100:
            set {_new} to loop-value
        else:
            remove 1 from {_newLevel}
            exit loop

    set {_old} to {pvprank::%{_id}%}
    if {_old} is set:
        if {_old} is {_new}:
            stop

    # Include old MT groups so existing manual ranks are removed on migration.
    loop "lt5", "mt5", "ht5", "lt4", "mt4", "ht4", "lt3", "mt3", "ht3", "lt2", "mt2", "ht2", "lt1", "mt1" and "ht1":
        execute console command "lp user %{_id}% parent remove %loop-value%"
    if {_new} is not "UNRANKED":
        set {_group} to lowercase {_new}
        execute console command "lp user %{_id}% parent add %{_group}%"
    set {pvprank::%{_id}%} to {_new}

    if {_old} is set:
        set {_oldPosition} to 0
        set {_newPosition} to 0
        set {_position} to 0
        loop "UNRANKED", "LT5", "MT5", "HT5", "LT4", "MT4", "HT4", "LT3", "MT3", "HT3", "LT2", "MT2", "HT2", "LT1", "MT1" and "HT1":
            if loop-value is {_old}:
                set {_oldPosition} to {_position}
            if loop-value is {_new}:
                set {_newPosition} to {_position}
            add 1 to {_position}
        set {_oldDisplay} to pvpTierDisplay({_old})
        set {_newDisplay} to pvpTierDisplay({_new})
        if {_newPosition} > {_oldPosition}:
            broadcast "{@prefix}&f%{_target}% &awas promoted from %{_oldDisplay}% &ato %{_newDisplay}% &7(%{pts::%{_id}%}% points)."
        else:
            broadcast "{@prefix}&f%{_target}% &cwas demoted from %{_oldDisplay}% &cto %{_newDisplay}% &7(%{pts::%{_id}%}% points)."

on join:
    updatePvPTier(player)

on death of player:
    set {_victim} to victim
    set {_victimId} to uuid of {_victim}
    if {pts::%{_victimId}%} is not set:
        set {pts::%{_victimId}%} to 0
    remove {@death-points} from {pts::%{_victimId}%}
    if {pts::%{_victimId}%} < 0:
        set {pts::%{_victimId}%} to 0
    updatePvPTier({_victim})

    if attacker is a player:
        if attacker is not {_victim}:
            set {_killer} to attacker
            set {_killerId} to uuid of {_killer}
            if {pts::%{_killerId}%} is not set:
                set {pts::%{_killerId}%} to 0
            add {@kill-points} to {pts::%{_killerId}%}
            updatePvPTier({_killer})

command /pvprank [<text>] [<offline player>]:
    trigger:
        if arg-1 is not set:
            send "{@prefix}&eUsage: /pvprank view [player]"
            stop
        if arg-1 is not "view":
            send "{@prefix}&eUsage: /pvprank view [player]"
            stop
        if arg-2 is set:
            set {_target} to arg-2
        else:
            if player is not set:
                send "{@prefix}&cSpecify a player from the console."
                stop
            set {_target} to player
        set {_id} to uuid of {_target}
        set {_points} to {pts::%{_id}%}
        if {_points} is not set:
            set {_points} to 0
        set {_rank} to {pvprank::%{_id}%}
        if {_rank} is not set:
            set {_rank} to "UNRANKED"
        set {_rankDisplay} to pvpTierDisplay({_rank})
        send "{@prefix}&f%{_target}%&7's PvP rank: %{_rankDisplay}% &7(%{_points}% points)."