#Temporary /fly perk
On right click holding a barrier:
if player is in world "world":
remove 1 barrier from player's inventory
message "&6You can now fly around! &4(Flight will end in 5 Minutes!)"
make console execute "fly %player% enabled"
wait 5 minutes
make console execute "fly %player% disabled"
message "&6You're temporary flight perk has &4ran out of time!"
on place of barrier:
if player is in world "world":
set event-block to air
So i set "if player is in world "world":
but it doesnt seem to work i tested it and the skript
affects every world not just the "world"? how can i fix this
doesnt display any error messages. it works fine but it just affects every world when it
should only affect the players in "world"
[doublepost=1581425460,1581424876][/doublepost]Nvm i figured it out
On right click holding a barrier:
if player is in world "world":
remove 1 barrier from player's inventory
message "&6You can now fly around! &4(Flight will end in 5 Minutes!)"
make console execute "fly %player% enabled"
wait 5 minutes
make console execute "fly %player% disabled"
message "&6You're temporary flight perk has &4ran out of time!"
on place of barrier:
if player is in world "world":
set event-block to air
So i set "if player is in world "world":
but it doesnt seem to work i tested it and the skript
affects every world not just the "world"? how can i fix this
doesnt display any error messages. it works fine but it just affects every world when it
should only affect the players in "world"
[doublepost=1581425460,1581424876][/doublepost]Nvm i figured it out