Added BSB about command

This commit is contained in:
tastybento 2018-08-04 20:50:19 -07:00
parent cbf3f4f987
commit 1e5e2c54ce
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,31 @@
package bentobox.addon.bskyblock.commands;
import java.util.List;
import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.user.User;
public class IslandAboutCommand extends CompositeCommand {
/**
* About
* @param islandCommand - parent command
*/
public IslandAboutCommand(CompositeCommand islandCommand) {
super(islandCommand, "about", "ab");
}
@Override
public void setup() {
setDescription("commands.island.about.description");
}
@Override
public boolean execute(User user, String label, List<String> args) {
user.sendRawMessage("About " + getAddon().getDescription().getName() + " " + getAddon().getDescription().getVersion() + ":");
user.sendRawMessage("Copyright (c) 2017 - 2018 tastybento, Poslovitch");
user.sendRawMessage("See https://www.eclipse.org/legal/epl-2.0/ for license information.");
return true;
}
}

View File

@ -5,7 +5,6 @@ import java.util.List;
import bentobox.addon.bskyblock.BSkyBlock; import bentobox.addon.bskyblock.BSkyBlock;
import world.bentobox.bentobox.api.commands.CompositeCommand; import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.commands.island.IslandAboutCommand;
import world.bentobox.bentobox.api.commands.island.IslandBanCommand; import world.bentobox.bentobox.api.commands.island.IslandBanCommand;
import world.bentobox.bentobox.api.commands.island.IslandBanlistCommand; import world.bentobox.bentobox.api.commands.island.IslandBanlistCommand;
import world.bentobox.bentobox.api.commands.island.IslandCreateCommand; import world.bentobox.bentobox.api.commands.island.IslandCreateCommand;