mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +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) {
|
||||
try {
|
||||
pluginCommand.setExecutor(this);
|
||||
pluginCommand.setTabCompleter(this);
|
||||
pluginCommand.setAliases(pluginCommand.getAliases());
|
||||
pluginCommand.setPermission(command.permission);
|
||||
pluginCommand.setDescription(command.getDescription());
|
||||
pluginCommand.setExecutor(this);
|
||||
pluginCommand.setTabCompleter(this);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user