mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 22:16:34 +00:00
Register command aliases
This commit is contained in:
1 parent
bbe4ea34bf
commit
ced7ae3c35
1 file changed
+3
-2
@@ -37,10 +37,11 @@ public class BukkitCommand implements CommandExecutor, TabExecutor {
|
|||||||
*/
|
*/
|
||||||
public void register(@NotNull PluginCommand pluginCommand) {
|
public void register(@NotNull PluginCommand pluginCommand) {
|
||||||
try {
|
try {
|
||||||
pluginCommand.setExecutor(this);
|
pluginCommand.setAliases(pluginCommand.getAliases());
|
||||||
pluginCommand.setTabCompleter(this);
|
|
||||||
pluginCommand.setPermission(command.permission);
|
pluginCommand.setPermission(command.permission);
|
||||||
pluginCommand.setDescription(command.getDescription());
|
pluginCommand.setDescription(command.getDescription());
|
||||||
|
pluginCommand.setExecutor(this);
|
||||||
|
pluginCommand.setTabCompleter(this);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user