-
-
Notifications
You must be signed in to change notification settings - Fork 50
Description
I saw this;
DenizenScript/Depenizen#430
Ive been using custom scripts for a very long time with brews, but ive been limited to running a command when brews drunk.
If you can make a commandHelper addon then you can hook directly into commandhelper/commadhelper directly into brewing which would be brilliant.
The feature I want, is to prevent drinking the brew if the script returns false.
For exmaple, I have a "Super chorus" brew that I make run a random teleport plugins commands, BUT i needed to make it check if the player was PvP tagged first, I got it all working, but it still consumes the brew, the only idea ive had to resolve this is in the script give them another brew, but then it wont be able to know how strong etc.
Additonally we could just add conditions and contexts to brewing for checking if a brew can be drunk first, this may be good anyway.
Checknig for if in PvP with PVPmanager or in a worldguard claim, to prevent use in an event or spawn etc.