summaryrefslogtreecommitdiffstats
path: root/src/main/javadoc
diff options
context:
space:
mode:
authort00thpick1 <t00thpick1dirko@gmail.com>2014-02-08 04:07:11 -0500
committerTravis Watkins <amaranth@ubuntu.com>2014-02-08 03:11:46 -0600
commit9d0d46dee35c257fdee5145eba0fda275a0795dc (patch)
tree9b00a48d9b3a882c75a17541577c9bf699091fb8 /src/main/javadoc
parent9080288a36daa6bbb6c3ca885f2d56f0538e8076 (diff)
downloadbukkit-9d0d46dee35c257fdee5145eba0fda275a0795dc.tar
bukkit-9d0d46dee35c257fdee5145eba0fda275a0795dc.tar.gz
bukkit-9d0d46dee35c257fdee5145eba0fda275a0795dc.tar.lz
bukkit-9d0d46dee35c257fdee5145eba0fda275a0795dc.tar.xz
bukkit-9d0d46dee35c257fdee5145eba0fda275a0795dc.zip
[Bleeding] Improve alias system.
Adds a large expansion of the aliases system. Aliases can now take arguments, reorder their arguments, and only pass certain arguments to certain commands. New syntax added to the aliases are $1 for optional arguments, $$1 for required arguments, $1- for optionally using all the arguments from the specified position onward, and $$1- to do the same thing but require at least the specified position exist. These exist for numbers 1 through 9. You are able to pass arguments to one command of a multiple command argument and not others. You can also use the argument as a prefix and/or suffix. A raw $ can be represented in the arguments by using \$. Examples: aliases: # Usage: /testobjective score_deaths 1 5 testobjective: - "testfor @p[$$1=$$3,$$1_min=$$2]" # Usage: /ban Amaranthus Because reasons ban: - ban $$1 $2- - say Banned $$1 # Usage: /icanhasbukkit icanhasbukkit: - version # Usage: /icanhasplugin HomeBukkit icanhasplugin: - version $$1 One change from the previous aliases system is that commands are no longer passed all arguments implicitly. You must explicitly pass the arguments you want to pass to the command.
Diffstat (limited to 'src/main/javadoc')
0 files changed, 0 insertions, 0 deletions