Jump to content
Sign in to follow this  
Swayl

Rules | Better rules system?

Recommended Posts

RULES

A better rules system? Uh I don't know,

I have anxiety, I just made this quick rules

system for the community. Please don't hate me

There's a typhoon that's about to hit my country

and I might die. Nonetheless, enjoy the quick

rules system I made.

SCRIPT (40 lines)

options:
    mColor: &e            # Main Color
    sColor: &7            # Secondary Color
    admin: staff.admin    # Admin permission for command
    server: Server        # Server name

command /rules [<text>] [<text>]:
    aliases:rule
    trigger:
        if arg-1 is not set:
            send "%nl%{@mColor}{@server}{@sColor}'s rules%nl%"
            loop {rules::*}:
                send "{@sColor}##%loop-index%. {@mColor}%loop-value%"

            send ""

        else:
            if arg-1 is "add" or "remove":
                if player does not have permission "{@admin}":
                    send "%nl%{@mColor}{@server}{@sColor}'s rules%nl%"
                    loop {rules::*}:
                        send "{@sColor}##%loop-index%. {@mColor}%loop-value%"

                    send ""
                else:
                    if arg-1 is "add":
                        add arg-2 to {rules::*}
                        send "{@sColor}Successfully added {@mColor}%arg-2%{@sColor} to the list of rules."
                    else:
                        if {rules::*} does not contain arg-2:
                            send "{@mColor}%arg-2%{@sColor} cannot be found on the list of rules."
                        else:
                            remove arg-2 from {rules::*}
                            send "{@sColor}Successfully removed {@mColor}%arg-2%{@sColor} from the list of rules."
            else:
                send "%nl%{@mColor}{@server}{@sColor}'s rules%nl%"
                loop {rules::*}:
                    send "{@sColor}##%loop-index%. {@mColor}%loop-value%"

                send ""

 

  • Like 1

  • Been "Skripting" for half a year now
  • Whale type 
  • Doesn't like Idle Servers (But made one)
  • Doesn't like Mining-PvP servers (But made one)
  • Likes MrScopes lol

 

I make original memes about minehut too.

Capture.png.5a3e6c2c283f3e0ee17860d8704f25f6.png

 

  • Discord Swayl#4299
  • MC IGN - Swayl

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...