1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Bounty List

Discussion in 'Skript' started by Harro, Mar 19, 2020.

Tags:
Thread Status:
Not open for further replies.
  1. Harro

    Harro Member

    Joined:
    Mar 12, 2020
    Messages:
    12
    Likes Received:
    1
    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 (Text):
    1. command /bountylist:
    2.     trigger:
    3.         loop all players:
    4.             if player is op:
    5.                 clear {bounties::*}
    6.                 if {bounty::%loop-player%} is greater than or equal to 10:
    7.                     set {_p} to skull of loop-player named "&6%loop-player%" with lore "&7Bounty &8» &6%{bounty::%loop-player%}% &6⛃"
    8.                     add {_p} to {bounties::*}
    9.                     send "%{bounties::*}%" to player
    10.                     open virtual chest inventory with 6 rows named "Bounties" to player
    11.                     set {_slot} to 0
    12.                     set {_pp} to 0
    13.                     loop {_size} times:
    14.                         add 1 to {_pp}
    15.                         make gui slot {_slot} of player with {bounties::%{_pp}%} to do nothing
    16.                         add 1 to {_slot}
    Lemme know if you have any ideas/suggestions that could help <3
     
  2. ZeyKra_

    ZeyKra_ Active Member

    Joined:
    Dec 12, 2019
    Messages:
    109
    Likes Received:
    2
    Why do you clear bounties before check those ?

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

    Code (Text):
    1. if loop-player is op:
    2.     clear {bounties ::%loop-player%}
     
  3. Harro

    Harro Member

    Joined:
    Mar 12, 2020
    Messages:
    12
    Likes Received:
    1
    No it's like just a permission thing, so that they have to be op to use the command.
     
  4. ZeyKra_

    ZeyKra_ Active Member

    Joined:
    Dec 12, 2019
    Messages:
    109
    Likes Received:
    2
    You don't need this just type

    Code (Text):
    1. Command /youcmd:
    2.     permission : Youperm
    3.     trigger:
     
  5. Harro

    Harro Member

    Joined:
    Mar 12, 2020
    Messages:
    12
    Likes Received:
    1
    Yeah I know, but that still doesn't solve the problem.
     
  6. ZeyKra_

    ZeyKra_ Active Member

    Joined:
    Dec 12, 2019
    Messages:
    109
    Likes Received:
    2
    Where {_size} is set ?bc bc use it to
    loop
     
  7. Harro

    Harro Member

    Joined:
    Mar 12, 2020
    Messages:
    12
    Likes Received:
    1
    I fixed it btw, sorry for wasting your time.
     
  8. ZeyKra_

    ZeyKra_ Active Member

    Joined:
    Dec 12, 2019
    Messages:
    109
    Likes Received:
    2
    No probs mark you post as solved
     
Thread Status:
Not open for further replies.

Share This Page

Loading...