1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Disabling phantoms (im new to skript)

Discussion in 'Skript' started by CallumlousTV, Sep 8, 2019.

  1. C

    CallumlousTV Member

    Joined:
    Sep 8, 2019
    Messages:
    2
    Likes Received:
    0
    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
     
  2. i

    ilovepancake Member

    Joined:
    Sep 1, 2019
    Messages:
    2
    Likes Received:
    0
    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
     
    #2 ilovepancake, Sep 9, 2019
    Last edited: Sep 13, 2019
  3. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    271
    Likes Received:
    17
    Code (Skript):
    1. command /phantom:
    2.     trigger:
    3.         if player has permission "malia.admin":
    4.             if {PHANTOMS::ENABLED} is not set:
    5.                 set {PHANTOMS::ENABLED} to true
    6.                 stop
    7.             delete {PHANTOMS::ENABLED}
    8.  
    9. on spawn of phantom:
    10.     if {PHANTOMS::ENABLED} is set:
    11.         cancel event
    Pseudo code
     
  4. C

    CallumlousTV Member

    Joined:
    Sep 8, 2019
    Messages:
    2
    Likes Received:
    0
    sorry for late reply! but tysm
     
Loading...