mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-03 14:02:04 +01:00
Added more JavaDoc for API usage
This commit is contained in:
parent
1b2748f920
commit
397f9e4700
@ -32,6 +32,7 @@ public abstract class DefaultAdminCommand extends CompositeCommand {
|
|||||||
*/
|
*/
|
||||||
protected DefaultAdminCommand(GameModeAddon addon) {
|
protected DefaultAdminCommand(GameModeAddon addon) {
|
||||||
// Register command with alias from config.
|
// Register command with alias from config.
|
||||||
|
// The first command listed is the "label" and the others are aliases.
|
||||||
super(addon,
|
super(addon,
|
||||||
addon.getWorldSettings().getAdminCommandAliases().split(" ")[0],
|
addon.getWorldSettings().getAdminCommandAliases().split(" ")[0],
|
||||||
addon.getWorldSettings().getAdminCommandAliases().split(" "));
|
addon.getWorldSettings().getAdminCommandAliases().split(" "));
|
||||||
|
@ -23,6 +23,7 @@ public abstract class DefaultPlayerCommand extends CompositeCommand {
|
|||||||
*/
|
*/
|
||||||
protected DefaultPlayerCommand(GameModeAddon addon) {
|
protected DefaultPlayerCommand(GameModeAddon addon) {
|
||||||
// Register command with alias from config.
|
// Register command with alias from config.
|
||||||
|
// The first command listed is the "label" and the others are aliases.
|
||||||
super(addon,
|
super(addon,
|
||||||
addon.getWorldSettings().getPlayerCommandAliases().split(" ")[0],
|
addon.getWorldSettings().getPlayerCommandAliases().split(" ")[0],
|
||||||
addon.getWorldSettings().getPlayerCommandAliases().split(" "));
|
addon.getWorldSettings().getPlayerCommandAliases().split(" "));
|
||||||
|
@ -549,6 +549,7 @@ public interface WorldSettings extends ConfigObject {
|
|||||||
* Returns all aliases for main admin command.
|
* Returns all aliases for main admin command.
|
||||||
* It is assumed that all aliases are split with whitespace between them.
|
* It is assumed that all aliases are split with whitespace between them.
|
||||||
* String cannot be empty.
|
* String cannot be empty.
|
||||||
|
* The first command listed is the "label" in the API, and after that are the aliases
|
||||||
* Default value: {@code getFriendlyName() + "admin"} (to retain backward compatibility).
|
* Default value: {@code getFriendlyName() + "admin"} (to retain backward compatibility).
|
||||||
* @return String value
|
* @return String value
|
||||||
* @since 1.13.0
|
* @since 1.13.0
|
||||||
@ -563,6 +564,7 @@ public interface WorldSettings extends ConfigObject {
|
|||||||
* Returns all aliases for main player command.
|
* Returns all aliases for main player command.
|
||||||
* It is assumed that all aliases are split with whitespace between them.
|
* It is assumed that all aliases are split with whitespace between them.
|
||||||
* String cannot be empty.
|
* String cannot be empty.
|
||||||
|
* The first command listed is the "label" in the API, and after that are the aliases
|
||||||
* Default value: {@code getFriendlyName()} (to retain backward compatibility).
|
* Default value: {@code getFriendlyName()} (to retain backward compatibility).
|
||||||
* @return String value
|
* @return String value
|
||||||
* @since 1.13.0
|
* @since 1.13.0
|
||||||
|
Loading…
Reference in New Issue
Block a user