Disable Brewing Potions

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

PotteryTNT

Member
Jul 21, 2017
41
0
0
22
Category: UHC

Suggested name: NoBrew (you can change if you want)

What I want:
I would like to make it so that when I do a command, it will stop everyone from being able to brew potions. I've searched around and I actually couldn't find one that worked.

Ideas for commands:
/brewing on/off
Ideas for permissions:
brew.admin
When I'd like it by:
In 3-4 days
 
here you go. if you choose to keep the on brew: event, you need skellett

code_language.skript:
command /brewing [<text>]:
    permission: brew.admin
    permission message: &cYou do not have access to this command.
    trigger:
        if arg 1 is not set:
            message "&7Usage: &c/brewing <on|off>"
        if arg 1 is "on":
            if {brewingon} is not set:
                message "&7Brewing is currently on, you can turn it off with &c/brewing off"
            else if {brewingon} is set:
                delete {brewingon}
                message "&7Players can now brew."
        if arg 1 is "off":
            if {brewingon} is set:
                message "&7Brewing is currently off, you can turn it on with &c/brewing on"
            else if {brewingon} is not set:
                set {brewingon} to true
                message "&7Players can't brew now."
               
on brew: #you can remove this. this just make it so whenever something brews, when it finishes, nothing happens
    if {brewingon} is set:
        cancel event
       
on rightclick on brewing stand: #however, this make it so you cant access the brewing stand, when you rightclick one, nothing happens. you can choose the one you like, and delete the other one
    if {brewingon} is set:
        cancel event
        message "&cAn Admin has turned brewing off."