Updated commands to have optional aliases, and to fallback to /pluginName:cmdName on name conflict.

By: VictorD <victor.danell@gmail.com>
This commit is contained in:
Bukkit/Spigot
2011-01-18 01:12:50 +01:00
parent b46210453c
commit ab6f5d4bc2
11 changed files with 233 additions and 161 deletions

View File

@@ -3,6 +3,7 @@ package org.bukkit.plugin;
import java.io.File;
import org.bukkit.Server;
import org.bukkit.command.Command;
import org.bukkit.entity.Player;
import org.bukkit.util.config.Configuration;
@@ -65,6 +66,8 @@ public interface Plugin {
/**
* Called when a command registered by this plugin is received.
* @param commandLabel
* @return TODO
*/
public void onCommand(Player player, String command, String[] args);
public boolean onCommand(Player player, Command command, String commandLabel, String[] args);
}