Disabling phantoms (im new to 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.

CallumlousTV

Member
Sep 8, 2019
2
0
0
22
Hello, i am new to skript, i managed to get this but i am unsure if it will work:
i want to add a disable and enable feature

command /phantoms:
trigger:
send "&bCallumlousTV's Disable Phantoms: &e&lDisabled Phantoms
on spawn of a phantom:
cancel event
 
You can spawn manually because spawn trigger is for every spawn events
Edit: sry for the error, you can't because spawn trigger is for every things
 
Last edited:
code_language.skript:
command /phantom:
    trigger:
        if player has permission "malia.admin":
            if {PHANTOMS::ENABLED} is not set:
                set {PHANTOMS::ENABLED} to true
                stop
            delete {PHANTOMS::ENABLED}

on spawn of phantom:
    if {PHANTOMS::ENABLED} is set:
        cancel event
Pseudo code
sorry for late reply! but tysm
 
Status
Not open for further replies.