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.

detect players faction

Discussion in 'Skript' started by Builder4Life, Mar 22, 2021.

Thread Status:
Not open for further replies.
  1. Builder4Life

    Builder4Life New Member

    Joined:
    Mar 22, 2021
    Messages:
    5
    Likes Received:
    0
    i want when a player has joined a faction it detect in wich faction they are and if there in a specific faction they get an commnd executed every time they join

    onjoin:
    if player's faction is named "estland"
    execute console command "/pex user %player% prefix %{''}%&2&lPor&e&lt&c&lugal &7%{''}% ul_smpsurvival"
    execute console command "/pex user %player% prefix %{''}%&2&lPor&e&lt&c&lugal &7%{''}% ul_smpsurvival_nether"
    cancel event

    does anyone no a solution
     

    Attached Files:

  2. Marc

    Marc Active Member

    Joined:
    Nov 27, 2020
    Messages:
    94
    Likes Received:
    0
    I'd just suggest using skripts in-built prefix thingy, so you can use conditions such as:
    Code (Text):
    1. if player's prefix is "":
     
  3. Panvvan

    Panvvan Member

    Joined:
    May 16, 2020
    Messages:
    4
    Likes Received:
    0
    why are you canceling the event?
    --- Double Post Merged, Mar 23, 2021, Original Post Date: Mar 23, 2021 ---
    and for the factions are you using a skript, or a factions plugin?
     
  4. Builder4Life

    Builder4Life New Member

    Joined:
    Mar 22, 2021
    Messages:
    5
    Likes Received:
    0
    im using a plugin called factionsuuid
    --- Double Post Merged, Mar 24, 2021 ---
    okay thanks im gonna try it
     
Thread Status:
Not open for further replies.

Share This Page

Loading...