Skript Version: Skript bensku-2.4-beta7
Minecraft Version: 1.13.2
---
Full Code:
Errors on Reload: None.
What I'd like Skript to do:
If a player logs out in the KnightCity world, I want them to be teleported to the KnightCity warp upon joining back in UNLESS they have the permission essentials.warps.barracks. If they have that permission, I want them to be warped to the Barracks. When players log back in, they're at the same point they left so I have this set to execute on join.
I want Skript to ignore players who log in at other worlds, regardless of their permissions.
What Skript is doing instead:
Skript successfully teleports people who are in KnightCity to the KnightCity warp, but it's doing that for ALL players, including players who have the essentials.warps.barracks permission.
Skript teleports people who have the permission essentials.warps.barracks to Barracks regardless of what world they are in instead of only doing it to players who have that permission AND are in KnightCity. I'm not sure how to get it to respect both conditions simultaneously. I don't want it to do one or the other.
Can anyone help me out? I'm 100% new to Skript. Thanks in advance.
Minecraft Version: 1.13.2
---
Full Code:
Code:
on join:
if player is in "KnightCity":
execute console command "warp KnightCity"
else if player has permission "essentials.warps.barracks":
execute console command "warp Barracks %player%"
What I'd like Skript to do:
If a player logs out in the KnightCity world, I want them to be teleported to the KnightCity warp upon joining back in UNLESS they have the permission essentials.warps.barracks. If they have that permission, I want them to be warped to the Barracks. When players log back in, they're at the same point they left so I have this set to execute on join.
I want Skript to ignore players who log in at other worlds, regardless of their permissions.
What Skript is doing instead:
Skript successfully teleports people who are in KnightCity to the KnightCity warp, but it's doing that for ALL players, including players who have the essentials.warps.barracks permission.
Skript teleports people who have the permission essentials.warps.barracks to Barracks regardless of what world they are in instead of only doing it to players who have that permission AND are in KnightCity. I'm not sure how to get it to respect both conditions simultaneously. I don't want it to do one or the other.
Can anyone help me out? I'm 100% new to Skript. Thanks in advance.