kyuzennn31

can u make a skript for us like ranking for Phoenixduel like ht3 lt3

Kodari AI
KodariMar 15 at 7:42 am 6,629 (v2)

I’ll create a comprehensive ranking system for PhoenixDuel with top/bottom leaderboards and player statistics.

PhoenixDuelRanking
A complete ranking and statistics system for PhoenixDuel server. Tracks player wins, losses, kill/death ratios, and ELO ratings. Features commands to display top 3 and bottom 3 ranked players, individual player stats, and automatic rating calculations. Includes persistent data storage and formatted leaderboard displays with color-coded rankings.

Created PhoenixDuel ranking system with /ht3 for top 3 players, /lt3 for bottom 3, complete stat tracking, ELO system, and admin commands for managing player statistics.

Installation:

  1. Place phoenixduel-ranking.sk in plugins/Skript/scripts/

  2. Run /sk reload phoenixduel-ranking

Player Commands:

  • /ht3 - View top 3 ranked players

  • /lt3 - View bottom 3 ranked players

  • /rank [player] - View stats and rank

  • /dueltop - View top 10 leaderboard

Admin Commands (require phoenixduel.admin permission):

  • /duelwin <player> - Add win (+25 ELO)

  • /duelloss <player> - Add loss (-15 ELO)

  • /duelkill <player> - Add kill (+5 ELO)

  • /dueldeath <player> - Add death (-3 ELO)

  • /duelreset <player> - Reset player stats

kyuzennn31

there's no elo lemme send my examples options: prefix: &6&l[Duels]

on join: wait 3 seconds run console command "skript:trigger duel_rank_check for %player%"

every 5 minutes: loop all players: set {_wins} to {phoenixduels_wins::%loop-player's uuid%} call custom event "duel_rank_check" for loop-player

function assignDuelRank(p: player): set {_wins} to placeholder "phoenixduels_wins" of {_p} run console command "lp user %{_p}% parent remove duel_unranked" run console command "lp user %{_p}% parent remove duel_lt1" run console command "lp user %{_p}% parent remove duel_lt2" run console command "lp user %{_p}% parent remove duel_lt3" run console command "lp user %{_p}% parent remove duel_ht1" run console command "lp user %{_p}% parent remove duel_ht2" run console command "lp user %{_p}% parent remove duel_ht3" if {_wins} >= 750: run console command "lp user %{_p}% parent add duel_ht3" send "{@prefix} &aYou are ranked &6&lHT3&a!" to {_p} else if {_wins} >= 500: run console command "lp user %{_p}% parent add duel_ht2" else if {_wins} >= 300: run console command "lp user %{_p}% parent add duel_ht1" else if {_wins} >= 150: run console command "lp user %{_p}% parent add duel_lt3" else if {_wins} >= 75: run console command "lp user %{_p}% parent add duel_lt2" else if {_wins} >= 25: run console command "lp user %{_p}% parent add duel_lt1" else: run console command "lp user %{_p}% parent add duel_unranked"

on join: wait 3 seconds assignDuelRank(player)

Kodari AI
KodariMar 15 at 7:43 am 2,642 (v2)

I’ll create a clean, working version of your Phoenix Duel ranking system based on wins:

Created phoenixduel-ranking.sk with your win-based ranking system!

Key Features:

  • Assigns LuckPerms groups based on PhoenixDuels wins (25/75/150/300/500/750 thresholds)

  • Rank-up notifications with sound effects when promoted

  • Auto-checks on join and every 5 minutes

  • /duelrank [player] - Check rank and see threshold list

  • /duelrankrefresh - Admin command to force refresh all ranks

To use:

  1. Place in plugins/Skript/scripts/

  2. /sk reload phoenixduel-ranking

  3. Ensure you have PlaceholderAPI and the PhoenixDuels placeholder installed

  4. Create the 7 LuckPerms groups: duel_unranked, duel_lt1, duel_lt2, duel_lt3, duel_ht1, duel_ht2, duel_ht3

Kodari can make mistakes. Review important code before using.
Files
phoenixduel-ranking.sk
Code
1 94
phoenixduel-ranking.sk
options:
    prefix: &6&l[Duels]&r

function assignDuelRank(p: player):
    set {_wins} to placeholder "phoenixduels_wins" from {_p}
    if {_wins} is not set:
        set {_wins} to 0
    
    set {_oldRank} to {duel.rank.%{_p}'s uuid%}
    
    run console command "lp user %{_p}% parent remove duel_unranked"
    run console command "lp user %{_p}% parent remove duel_lt1"
    run console command "lp user %{_p}% parent remove duel_lt2"
    run console command "lp user %{_p}% parent remove duel_lt3"
    run console command "lp user %{_p}% parent remove duel_ht1"
    run console command "lp user %{_p}% parent remove duel_ht2"
    run console command "lp user %{_p}% parent remove duel_ht3"
    
    if {_wins} >= 750:
        run console command "lp user %{_p}% parent add duel_ht3"
        set {_newRank} to "HT3"
        set {_color} to "&c&l"
    else if {_wins} >= 500:
        run console command "lp user %{_p}% parent add duel_ht2"
        set {_newRank} to "HT2"
        set {_color} to "&6&l"
    else if {_wins} >= 300:
        run console command "lp user %{_p}% parent add duel_ht1"
        set {_newRank} to "HT1"
        set {_color} to "&e&l"
    else if {_wins} >= 150:
        run console command "lp user %{_p}% parent add duel_lt3"
        set {_newRank} to "LT3"
        set {_color} to "&b&l"
    else if {_wins} >= 75:
        run console command "lp user %{_p}% parent add duel_lt2"
        set {_newRank} to "LT2"
        set {_color} to "&3&l"
    else if {_wins} >= 25:
        run console command "lp user %{_p}% parent add duel_lt1"
        set {_newRank} to "LT1"
        set {_color} to "&9&l"
    else:
        run console command "lp user %{_p}% parent add duel_unranked"
        set {_newRank} to "UNRANKED"
        set {_color} to "&7"
    
    if {_oldRank} is set:
        if {_oldRank} is not {_newRank}:
            send "{@prefix} &aYou ranked up to %{_color}%{_newRank}&a! &7(%{_wins}% wins)" to {_p}
            play sound "entity.player.levelup" with volume 1 and pitch 1 to {_p}
    
    set {duel.rank.%{_p}'s uuid%} to {_newRank}

on join:
    wait 3 seconds
    assignDuelRank(player)

every 5 minutes:
    loop all players:
        assignDuelRank(loop-player)

command /duelrank [<offline player>]:
    permission: duels.rank.check
    permission message: {@prefix} &cYou don't have permission to use this command!
    trigger:
        if arg-1 is set:
            set {_target} to arg-1
        else:
            set {_target} to player
        
        set {_wins} to placeholder "phoenixduels_wins" from {_target}
        if {_wins} is not set:
            set {_wins} to 0
        
        set {_rank} to {duel.rank.%{_target}'s uuid%} ? "UNRANKED"
        
        send "{@prefix} &e%{_target}%'s Rank: &f%{_rank}% &7(%{_wins}% wins)" to player
        send "{@prefix} &7Next rank thresholds:" to player
        send "  &925 wins &8→ &9&lLT1" to player
        send "  &375 wins &8→ &3&lLT2" to player
        send "  &b150 wins &8→ &b&lLT3" to player
        send "  &e300 wins &8→ &e&lHT1" to player
        send "  &6500 wins &8→ &6&lHT2" to player
        send "  &c750 wins &8→ &c&lHT3" to player

command /duelrankrefresh:
    permission: duels.rank.admin
    permission message: {@prefix} &cYou don't have permission to use this command!
    trigger:
        send "{@prefix} &eRefreshing duel ranks for all online players..." to player
        loop all players:
            assignDuelRank(loop-player)
        send "{@prefix} &aRank refresh complete!" to player