Command Info (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.6

Syntax

[the] main command [label|name] [of [[the] command[s] %-strings%]]

Description

Get information about a command.

Examples

main command label of command "skript"
description of command "help"
label of command "pl"
usage of command "help"
aliases of command "bukkit:help"
permission of command "/op"
command "op"'s permission message
command "sk"'s plugin owner
command /greet <player>:
	usage: /greet <target>
	trigger:
		if arg-1 is sender:
			send "&cYou can't greet yourself! Usage: %the usage%"
			stop
		send "%sender% greets you!" to arg-1
		send "You greeted %arg-1%!"

View source