Effect in one world

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

Matias Lund

Member
Jan 25, 2021
10
0
1
24
Hey, so i'm very new to skript and i would like help with a problem. So i want to give an effect in one world. So when the player joins the world he automatically gets an effect.

This is my script for now:

if player is in world "Void":
apply potion of speed of tier 1 to player for 30 minutes
else if player isn't in world "Void" don't apply

^^ The problem is that i still have the effect in other worlds. So how do i cancel the effect when i return to another world? And how do a apply to the player when he joins the world?

Thanks :3
 
you can check on enter of the world, if its not the void world, remove potion effect of speed
note you don't need the 3rd line it just won't do anything if not in that world:emoji_stuck_out_tongue:
 
you can check on enter of the world, if its not the void world, remove potion effect of speed
note you don't need the 3rd line it just won't do anything if not in that world:emoji_stuck_out_tongue:

Sorry but i'm very new to this. Can you explain it in an other way?

Sorry ...
 
Code:
if player is in world "world":
    apply speed 2 to player

Sorry im not exactly sure what the syntax for applying a potion effect is but you could probably guess what I mean
 
Status
Not open for further replies.