- Restructured everything

This commit is contained in:
2025-09-29 14:21:10 +02:00
parent be602a35e0
commit 35989d9767
80 changed files with 538 additions and 1350 deletions

View File

@@ -1,18 +1,4 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
package dev.unlegitdqrk.unlegitlibrary.command;
@@ -22,10 +8,10 @@ import java.util.List;
public abstract class Command {
public final CommandManager commandManager;
public final String name;
public final String description;
public final String usage;
private final CommandManager commandManager;
private final String name;
private final String description;
private final String usage;
private final List<CommandPermission> permissions;
private final List<String> aliases;
@@ -42,6 +28,22 @@ public abstract class Command {
if (exists) throw new InstanceAlreadyExistsException("Command with this name or some alias alreadx exists!");
}
public final String getName() {
return name;
}
public final CommandManager getCommandManager() {
return commandManager;
}
public final String getDescription() {
return description;
}
public final String getUsage() {
return usage;
}
public final List<CommandPermission> getPermissions() {
return new ArrayList<>(permissions);
}