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

Builder4Life

New Member
Mar 22, 2021
5
0
1
24
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
 

Attachments

  • onjoinfactions.sk
    283 bytes · Views: 215
I'd just suggest using skripts in-built prefix thingy, so you can use conditions such as:
Code:
if player's prefix is "":
 
why are you canceling the event?
[doublepost=1616484593,1616484563][/doublepost]and for the factions are you using a skript, or a factions plugin?
 
why are you canceling the event?
[doublepost=1616484593,1616484563][/doublepost]and for the factions are you using a skript, or a factions plugin?
im using a plugin called factionsuuid
[doublepost=1616574440][/doublepost]
I'd just suggest using skripts in-built prefix thingy, so you can use conditions such as:
Code:
if player's prefix is "":
okay thanks im gonna try it
 
Status
Not open for further replies.