Jump to content

Sudo Players :O /sudo <Player> <Arg1> <Arg2> <Arg3>


Recommended Posts

 

Quote

    command /sudo [<player>] [<text>] [<text>]:

    trigger:

        if arg 1 is not set:

            message "Chat Format was not set (ARG1)"

            stop

        else:

            if arg 2 is not set:

                message "Command Was Not Set (ARG2)"

                stop

            if arg 2 is "c:":

                if arg 3 is not set:

                    message "Message Not Set (ARG3)"

                    stop

                else:

                    # This needs to be your chat format

                    broadcast "&7[&c%arg 1%&7] &f> %arg 3%"

                    stop

            if arg 2 is set:

                make arg 1 execute command "/%arg 2%"

                stop

 

 

Edited by AngerYT
V2 Better Preformance
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...