Jump to content

Command label.


Maximus_yt
 Share

Recommended Posts

Hey guys!

I just made it so you can get a command label like in java.

on command:
	set {last-command::%player's uuid%} to command

Then once you put that in your skript, make the usage 'Usage: %{last-command::%player's uuid%}% <args>...'

When you do the usage, you have to do it like this:

command /command [<args>]...:
	trigger:
		if arg-1 is not set:
			send "&cUsage: /%lowercase {last-command::%player's uuid%}% <args>..."
  		else:
  			# code here

**YOU MUST USE '[ ]' AROUND THE ARGUMENTS**

I hope people come up with good ideas using this.

Thanks, guys,

    Maximus_yt

Edited by Maximus_yt
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
 Share



×
×
  • Create New...