Bounty List

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Harro

Member
Mar 12, 2020
12
1
0
25
I've been trying to figure out how to fix this for a bit now, can't seem to figure it out. I'm trying to make a command that shows a gui list of all players with a bounty.
(no errors)

Code:
command /bountylist:
    trigger:
        loop all players:
            if player is op:
                clear {bounties::*}
                if {bounty::%loop-player%} is greater than or equal to 10:
                    set {_p} to skull of loop-player named "&6%loop-player%" with lore "&7Bounty &8» &6%{bounty::%loop-player%}% &6⛃"
                    add {_p} to {bounties::*}
                    send "%{bounties::*}%" to player
                    open virtual chest inventory with 6 rows named "Bounties" to player
                    set {_slot} to 0
                    set {_pp} to 0
                    loop {_size} times:
                        add 1 to {_pp}
                        make gui slot {_slot} of player with {bounties::%{_pp}%} to do nothing
                        add 1 to {_slot}

Lemme know if you have any ideas/suggestions that could help <3
 
Why do you clear bounties before check those ?

If you want to clear the bounties of loop-player if he is op use

Code:
if loop-player is op:
    clear {bounties ::%loop-player%}
 
Why do you clear bounties before check those ?

If you want to clear the bounties of loop-player if he is op use

Code:
if loop-player is op:
    clear {bounties ::%loop-player%}
No it's like just a permission thing, so that they have to be op to use the command.
 
Status
Not open for further replies.