Paper/paper-api
Bukkit/Spigot 67a85bef54 [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.

By: t00thpick1 <t00thpick1dirko@gmail.com>
2014-02-08 04:07:11 -05:00
..
src [Bleeding] Improve alias system. 2014-02-08 04:07:11 -05:00
.gitignore Ignore all .DS_Store files, not just root folder 2013-03-30 18:04:11 -03:00
CONTRIBUTING.md Minecraft spec has changed and we're required to follow. We now build with Java 6. 2013-07-10 19:30:45 -04:00
LICENCE.txt We're GPL. 2011-01-02 10:57:42 +01:00
pom.xml Updated version to 1.7.2-R0.3-SNAPSHOT for development towards next release. 2013-12-21 03:08:33 -05:00
README.md Add missing new line to README.md 2013-03-18 22:35:10 -04:00

Bukkit

A Minecraft Server API.

Website: http://bukkit.org
Bugs/Suggestions: http://leaky.bukkit.org
Contributing Guidelines: CONTRIBUTING.md

Compilation

We use maven to handle our dependencies.

  • Install Maven 3
  • Check out this repo and: mvn clean install