Update Bukkit for 1.3.1 changes
By: feildmaster <admin@feildmaster.com>
This commit is contained in:
@ -47,6 +47,22 @@ public abstract class Command {
|
||||
*/
|
||||
public abstract boolean execute(CommandSender sender, String commandLabel, String[] args);
|
||||
|
||||
/**
|
||||
* Executed on tab completion for this command, returning a list of options
|
||||
* the player can tab through.
|
||||
* <p />
|
||||
* By returning null, you tell Bukkit to generate a list of players to send
|
||||
* to the sender.
|
||||
* By returning an empty list, no options will be sent.
|
||||
*
|
||||
* @param sender Source object which is executing this command
|
||||
* @param args All arguments passed to the command, split via ' '
|
||||
* @return null to generate a Player list, otherwise a list of options
|
||||
*/
|
||||
public List<String> tabComplete(CommandSender sender, String[] args) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the name of this command
|
||||
*
|
||||
@ -110,7 +126,7 @@ public abstract class Command {
|
||||
if ((permission == null) || (permission.length() == 0)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
for (String p : permission.split(";")) {
|
||||
if (target.hasPermission(p)) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user