Potion time

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

GlaxFusion

Member
Feb 9, 2021
3
0
1
24
Hello Im kinda new at skript so..
Im trying to make a custom potion, problem is that the potion can runs out even if the player is offline
and I want that it only runs out when player is online

Skript:
on consume:
if name of player's tool is "&e&lTea":
if {custompot::%player%} is not set:
message "&e&lTea &aActivated." to player
set {custompot::%player%} to true
wait 60 seconds
clear {custompot::%player%}
message "&cYour Potion &e&lTea &cExpired." to player
else if {custompot::%player%} is true:
cancel event
message "&cYou have this potion effect already!" to player
 
Status
Not open for further replies.