Aliasy slouží na tvoření jednoduchých příkazů bez instalovaní různých pluginů, které by zatěžovali server.
Stačí na to jenom jeden soubor, který vygeneruje sám server.
Nepoužívejte nikdy lomítka v tomhle souboru (příkazy fungují i bez nich)
Konfigurace
Naleznete ho ve Správci souborů v administraci nebo v FTP od serveru, článek Zde
Tento soubor otevřete
# This is the commands configuration file for Bukkit.
# For documentation on how to make use of this file, check out the Bukkit Wiki at
# http://wiki.bukkit.org/Commands.yml
#
# If you need help on this file, feel free to join us on irc or leave a message
# on the forums asking for advice.
#
# IRC: #spigot @ irc.spi.gt
# (If this means nothing to you, just go to http://www.spigotmc.org/pages/irc/ )
# Forums: http://www.spigotmc.org/
# Bug tracker: http://www.spigotmc.org/go/bugs
command-block-overrides: []
aliases:
icanhasbukkit:
- version $1-
Pro vás jsou důležité řádky pod “aliases:”
Pro vytvoření příkazu např. “/priroda” upravíme soubor takhle:
# This is the commands configuration file for Bukkit.
# For documentation on how to make use of this file, check out the Bukkit Wiki at
# http://wiki.bukkit.org/Commands.yml
#
# If you need help on this file, feel free to join us on irc or leave a message
# on the forums asking for advice.
#
# IRC: #spigot @ irc.spi.gt
# (If this means nothing to you, just go to http://www.spigotmc.org/pages/irc/ )
# Forums: http://www.spigotmc.org/
# Bug tracker: http://www.spigotmc.org/go/bugs
command-block-overrides: []
aliases:
priroda: #příkaz, který budeme zadávat do chatu
- warp priroda #příkazy, které se vykonají po napsání /priroda