@
GhostHunters, sen ne kadar gereksiz trol birisin yahu. Her konuda trollüklerini görüyorum. Hadi bir şey bildiğin olsa amenna.
plugin.yml'ye işlemeden komut çalıştırdığımız plugin var demişsin. Bukkit ve biz yanlış biliyoruz, siz doğru biliyorsunuz tabi.
You will also need to add the command to your
plugin.yml file. Add the following to the end of
plugin.yml:
Kod:
commands:
basic:
description: This is a demo command.
usage: /<command> [player]
permission: <plugin name>.basic
permission-message: You don't have <permission>
- basic - the name of the command.
- description - the description of the command .
- usage - the help dialog that users will see when you return false in the onCommand method. Write clearly, so that others can discern what the command is and how to use it.
- permission - This is used by some help plugins to work out which commands to show to the user.
- permission-message - This is output when the player attempts but does not have permission to use the command.
Note that yml files use 2 spaces for tabs, as the tab character will cause problems.[DOUBLEPOST=1386507063,1386506941][/DOUBLEPOST]Ekleme:
Bu yöntem çok faydalı bir yöntem, argümentsiz komutlar için kesinlikle en iyi yoldur. Ancak argümentli komutlar için Skript öneririm.