Solved If statement doesnt work|Skript

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

DutchKiller

Member
Jul 29, 2017
4
0
0
33
if "%world of player%" is "Invasion":
command /invasion <text>:
trigger:
if arg-1 is "healer":
player has permission "invasion.createhealer"
spawn a priest
set {healer.%spawned villager%} to true
on rightclick on a priest:
cancel event
player has permission "invasion.usehealer"
player is holding a gold nugget
{healer.%clicked villager%} is true
player's health is below 9.5
player has 32 gold nuggets
remove 32 gold nuggets from the player
heal the player
send "{@prefix} &aYou have been healed" to player


The error i am getting is "can't understand this event: 'if %world of player% is "Invasion" ' "
 
Status
Not open for further replies.