Stránka 1 z 1

Vlastný príkaz /doly, /vip

Napsal: 19 bře 2017, 19:58
od IĐontŁikeHack€rs
Takže čau...
Dnes vám ukážem ako nastaviť alias na nejaké príkazy.
Nepotrebujeme k tomu žiaden plugin, stačí sa pripojiť na ftp a otvoriť súbor commands.yml

Kód: Vybrat vše

# 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://irc.spi.gt/iris/?nick=&channels=spigot )
# Forums: http://www.spigotmc.org/forums/help.40/
# Bug tracker: http://www.spigotmc.org/forums/bugs-feature-requests.8/

command-block-overrides: []
aliases: #aliasy
  icanhasbukkit: #nazov nasho prikazu napr /Doly
  - version $1- #prikaz /Warp doly

Ked chceme aby ked hrac zada prikaz /doly tak ho portlo na doly upravíme config následovne:

Kód: Vybrat vše

# 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://irc.spi.gt/iris/?nick=&channels=spigot )
# Forums: http://www.spigotmc.org/forums/help.40/
# Bug tracker: http://www.spigotmc.org/forums/bugs-feature-requests.8/

command-block-overrides: []
aliases:
  doly:
  - warp doly


Dúfam že som vám s týmto návodom pomohol!

Re: Vlastný príkaz /doly, /vip

Napsal: 19 bře 2017, 22:47
od BigwebSvK
Co ak chcem pouizit parametre? :D

Re: Vlastný príkaz /doly, /vip

Napsal: 19 bře 2017, 23:35
od nejento
Lze nastavit i parametry.