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 out 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.

Solved Admin/Player Mode

Discussion in 'Skript' started by IViddyy, Jul 3, 2022.

Thread Status:
Not open for further replies.
  1. IViddyy

    IViddyy Member

    Joined:
    Apr 17, 2022
    Messages:
    17
    Likes Received:
    1
    Hi im trying to make a admin/player mode using /admin and /player or all of it in one command.I wanted to toggle the world guard bypass (/rg toggle-bypass) with text etc.Thanks!
     
  2. Best Answer:
    Post #2 by HyperOmar10, Jul 5, 2022
  3. HyperOmar10

    HyperOmar10 Member

    Joined:
    Jun 18, 2022
    Messages:
    2
    Likes Received:
    0
    Code (Text):
    1. command /bypass:
    2.     trigger:
    3.         if {bypass::%player's uuid%} is not set:
    4.             set {bypass::%player's uuid%} to true
    5.             make player execute command "/rg toggle-bypass"
    6.             send "Bypassing!"
    7.         else:
    8.             delete {bypass::%player's uuid%}
    9.             make player execute command "/rg toggle-bypass"
    10.             send "Not Bypassing!"
    I didn't test it but it should work also i am not that good so it might not be the best
     
  4. IViddyy

    IViddyy Member

    Joined:
    Apr 17, 2022
    Messages:
    17
    Likes Received:
    1
    it worked thanks!
     
Thread Status:
Not open for further replies.

Share This Page

Loading...