Hi, I'm creating a disease script. I wanted to create an item that can tell you what the player is infected with based on permissions. The code I managed to create is the following:
on tight click on a player with a Stick:
if player Is holding a stick named "stethoscope":
send "&8---------- health &8----------" to player
if %clicked entity% has permissione "health.stomachache":
send "stomachache" to player
the fourth line does not work
PS: I'm talking to the translator if something is not understood tell me, do not take into account the wrong Tabs I'm writing from the phone.
[doublepost=1598952064,1598951959][/doublepost]I don't know if it's explained well I want to create a tool to analyze the diseases that the player has based on permissions
on tight click on a player with a Stick:
if player Is holding a stick named "stethoscope":
send "&8---------- health &8----------" to player
if %clicked entity% has permissione "health.stomachache":
send "stomachache" to player
the fourth line does not work
PS: I'm talking to the translator if something is not understood tell me, do not take into account the wrong Tabs I'm writing from the phone.
[doublepost=1598952064,1598951959][/doublepost]I don't know if it's explained well I want to create a tool to analyze the diseases that the player has based on permissions