I have a pretty basic skript file.
Basically, this code is to prevent players from saddling pigs with named saddles, including a saddle named "Imperfect Saddle" which is craftable on the server. (The reasoning for this is that the pigs drop an un-named saddle on death)
The first four lines display properly. I right click the pig with the Imperfect Saddle, and the message is sent to me just fine. However, what once worked in 1.8 (cancel the event) is no longer cancelling the event, and the pig is being saddled anyway. Ah-!
This also seems to apply for another system on the server...
What this basically does is open up HyperMerchant's /shopmenu when right clicking a villager... but right now it's just opening the regular villager GUI, despite there being a "cancel the event" thing in there. :c
Code:
on right click on a pig:
player's tool is saddle:
name of player's tool is not "":
send "[&eInfo&f] You cannot saddle a pig with an &o&bImperfect Saddle&f." to player
cancel the event
Basically, this code is to prevent players from saddling pigs with named saddles, including a saddle named "Imperfect Saddle" which is craftable on the server. (The reasoning for this is that the pigs drop an un-named saddle on death)
The first four lines display properly. I right click the pig with the Imperfect Saddle, and the message is sent to me just fine. However, what once worked in 1.8 (cancel the event) is no longer cancelling the event, and the pig is being saddled anyway. Ah-!
This also seems to apply for another system on the server...
Code:
on right click on villager:
cancel the event
set {tk-usingVillager.%UUID of player%} to true
make player execute command "/shopmenu"
set {tk-usingVillager.%UUID of player%} to false
What this basically does is open up HyperMerchant's /shopmenu when right clicking a villager... but right now it's just opening the regular villager GUI, despite there being a "cancel the event" thing in there. :c