i need help

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

LauchGame

Member
Nov 24, 2019
11
1
1
24
Category: Skript

Suggested name: /Members

Spigot/Skript Version: 1.12.2

What I want:
So I have a / duty script where you can go into the duty but I want you to see who is in the duty, how does that work?

Ideas for commands:

/Members


Ideas for permissions:

rp.member


When I'd like it by: 24.12.2019-25.12.2019
 
Could you post the skript you have already?

So you just want to list the "members" of the duty? If you add the players to the duty, then you just need to loop through the list to get the players.
 
Code:
command /duty:
    permission: rp.duty
    trigger:
        if {duty.%player%} is false:
            add player to {duty::*}
            set {duty.%player%} to true
        if {duty.%player%} is true:
            remove player from {duty::*}
            set {duty.%Player%} to false
command /members:
    permission: rp.member
    trigger:
        send "&cPlayers in duty: &a%{duty::*}%
[/CODE]
 
Code:
command /duty:
    permission: rp.duty
    trigger:
        if {duty.%player%} is false:
            add player to {duty::*}
            set {duty.%player%} to true
        if {duty.%player%} is true:
            remove player from {duty::*}
            set {duty.%Player%} to false
command /members:
    permission: rp.member
    trigger:
        send "&cPlayers in duty:"
        loop {duty::*}:
            send "%loop-value%"