mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-22 17:18:47 +01:00
2825f9535e
Commands now require a setup to define their permission, player/console status, description and any parameters they have. This is also where any subcommands are created if they exist. Each command automatically has a help subcommand. This is used to display help. This will also recursively go to any other sub commands and get help from them. Note that getUsage() now *only* shows the command and any sub commands. It turns out that Bukkit requires this to start with a / because it actually uses this in its own help system and the server will not start if it is not in the right format. Therefore I split off parameters into their own string. This also enables them to be translatable. Everything should work at this point. It's just waiting on the locale system to work to display the strings in the locale files. |
||
---|---|---|
.. | ||
de_DE.yml | ||
en_GB.yml | ||
en_US.yml | ||
fr_FR.yml | ||
zh_CN.yml |