/* * This file is part of OneConfig. * OneConfig - Next Generation Config Library for Minecraft: Java Edition * Copyright (C) 2021, 2022 Polyfrost. * * Co-author: Pinkulu * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * OneConfig is licensed under the terms of version 3 of the GNU Lesser * General Public License as published by the Free Software Foundation, AND * under the Additional Terms Applicable to OneConfig, as published by Polyfrost, * either version 1.0 of the Additional Terms, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License. If not, see . You should * have also received a copy of the Additional Terms Applicable * to OneConfig, as published by Polyfrost. If not, see * */ package cc.polyfrost.oneconfig.utils.commands.annotations; import cc.polyfrost.oneconfig.libs.universal.ChatColor; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Marks a class as a subcommand. Can be stacked together. * * @see Command * @see cc.polyfrost.oneconfig.utils.commands.CommandManager */ @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.TYPE}) public @interface SubCommand { /** * The name of the command. * * @return The name of the command. */ String value(); /** * The aliases of the command. * * @return The aliases of the command. */ String[] aliases() default {}; /** * The description of the command. * * @return The description of the command. */ String description() default ""; /** * The color of the command. * * @return The color of the command. */ ChatColor color() default ChatColor.RESET; }