// $Id$ /* * This file is a part of WorldEdit. * Copyright (c) sk89q * Copyright (c) the WorldEdit team and contributors * * This program is free software: you can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License as published by the Free Software * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License along with * this program. If not, see . */ package com.sk89q.rebar.command; import java.util.List; /** * A description of a command. */ public interface Description { /** * Get the list of parameters for this command. * * @return a list of parameters */ List getParameters(); /** * Get a short one-line description of this command. * * @return a description, or null if no description is available */ String getDescription(); /** * Get a longer help text about this command. * * @return a help text, or null if no help is available */ String getHelp(); /** * Get the usage string of this command. * *

A usage string may look like * [-w <world>] <var1> <var2>.

* * @return a usage string */ String getUsage(); /** * Get a list of permissions that the player may have to have permission. * *

Permission data may or may not be available. This is only useful as a * potential hint.

* * @return the list of permissions */ List getPermissions(); }