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!

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

Nice Booleans [skript-reflect]

Discussion in 'Snippets' started by Ankle Boiii, Jan 5, 2021.

  1. Ankle Boiii

    Ankle Boiii Member

    Jun 27, 2020
    Likes Received:
    Hihi, I made this because its just sorta cool and might shorten some codes.

    Code (Text):
    1. expression nice boolean of [boolean] %boolean%:
    2.     get:
    3.         if expr-1 is true:
    4.             return "&aTrue"
    5.         else:
    6.             return "&cFalse"

    Code (Text):
    2. command /fly:
    3.     permission: donor.rank
    4.     permission message: &cGet denied FOOL
    5.     trigger:
    6.         if player's flight mode is true:
    7.             set player's flight mode to false
    8.         else:
    9.             set player's flight mode to true
    10.         send "Flight enabled: %nice boolean of boolean player's flight mode%"

    Thanks, its short but I guess its pretty useful & simple.

Share This Page