forked from UnlegitDqrk/unlegitlibrary
- Restructured everything
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user