Nice Booleans [skript-reflect]

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

Ankle Boiii

Member
Jun 27, 2020
3
0
1
20
Hihi, I made this because its just sorta cool and might shorten some codes.


Code:
expression nice boolean of [boolean] %boolean%:
    get:
        if expr-1 is true:
            return "&aTrue"
        else:
            return "&cFalse"

Code:
command /fly:
    permission: donor.rank
    permission message: &cGet denied FOOL
    trigger:
        if player's flight mode is true:
            set player's flight mode to false
        else:
            set player's flight mode to true
        send "Flight enabled: %nice boolean of boolean player's flight mode%"

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