From f9f04e0398ff875e7a973cbbed763dc3945c8a54 Mon Sep 17 00:00:00 2001 From: salva Date: Mon, 1 Aug 2022 02:39:08 -0500 Subject: [PATCH 01/31] BREAKING API: make Sender annotation universal --- .../commandflow/bukkit/factory/BukkitModule.java | 2 +- .../commandflow/bungee/annotation/Sender.java | 11 ----------- .../commandflow/bungee/factory/BungeeModule.java | 2 +- .../commandflow/discord/annotation/Sender.java | 11 ----------- .../commandflow/discord/factory/DiscordModule.java | 2 +- .../commandflow/annotated}/annotation/Sender.java | 2 +- .../commandflow/velocity/annotation/Sender.java | 11 ----------- .../commandflow/velocity/factory/VelocityModule.java | 2 +- 8 files changed, 5 insertions(+), 38 deletions(-) delete mode 100644 Bungee/src/main/java/me/fixeddev/commandflow/bungee/annotation/Sender.java delete mode 100644 Discord/src/main/java/me/fixeddev/commandflow/discord/annotation/Sender.java rename {Bukkit/src/main/java/me/fixeddev/commandflow/bukkit => Universal/src/main/java/me/fixeddev/commandflow/annotated}/annotation/Sender.java (82%) delete mode 100644 Velocity/src/main/java/me/fixeddev/commandflow/velocity/annotation/Sender.java diff --git a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/BukkitModule.java b/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/BukkitModule.java index d8c6bc5e..0d4dd12a 100644 --- a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/BukkitModule.java +++ b/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/BukkitModule.java @@ -2,7 +2,7 @@ import me.fixeddev.commandflow.annotated.part.AbstractModule; import me.fixeddev.commandflow.annotated.part.Key; -import me.fixeddev.commandflow.bukkit.annotation.Sender; +import me.fixeddev.commandflow.annotated.annotation.Sender; import org.bukkit.GameMode; import org.bukkit.OfflinePlayer; diff --git a/Bungee/src/main/java/me/fixeddev/commandflow/bungee/annotation/Sender.java b/Bungee/src/main/java/me/fixeddev/commandflow/bungee/annotation/Sender.java deleted file mode 100644 index 6a0fd7ee..00000000 --- a/Bungee/src/main/java/me/fixeddev/commandflow/bungee/annotation/Sender.java +++ /dev/null @@ -1,11 +0,0 @@ -package me.fixeddev.commandflow.bungee.annotation; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.PARAMETER) -public @interface Sender { -} diff --git a/Bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/BungeeModule.java b/Bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/BungeeModule.java index fae33a33..0b12e29e 100644 --- a/Bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/BungeeModule.java +++ b/Bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/BungeeModule.java @@ -1,8 +1,8 @@ package me.fixeddev.commandflow.bungee.factory; +import me.fixeddev.commandflow.annotated.annotation.Sender; import me.fixeddev.commandflow.annotated.part.AbstractModule; import me.fixeddev.commandflow.annotated.part.Key; -import me.fixeddev.commandflow.bungee.annotation.Sender; import net.md_5.bungee.api.CommandSender; import net.md_5.bungee.api.connection.ProxiedPlayer; diff --git a/Discord/src/main/java/me/fixeddev/commandflow/discord/annotation/Sender.java b/Discord/src/main/java/me/fixeddev/commandflow/discord/annotation/Sender.java deleted file mode 100644 index e9237974..00000000 --- a/Discord/src/main/java/me/fixeddev/commandflow/discord/annotation/Sender.java +++ /dev/null @@ -1,11 +0,0 @@ -package me.fixeddev.commandflow.discord.annotation; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.PARAMETER) -public @interface Sender { -} diff --git a/Discord/src/main/java/me/fixeddev/commandflow/discord/factory/DiscordModule.java b/Discord/src/main/java/me/fixeddev/commandflow/discord/factory/DiscordModule.java index 32a7012c..95decc51 100644 --- a/Discord/src/main/java/me/fixeddev/commandflow/discord/factory/DiscordModule.java +++ b/Discord/src/main/java/me/fixeddev/commandflow/discord/factory/DiscordModule.java @@ -1,8 +1,8 @@ package me.fixeddev.commandflow.discord.factory; +import me.fixeddev.commandflow.annotated.annotation.Sender; import me.fixeddev.commandflow.annotated.part.AbstractModule; import me.fixeddev.commandflow.annotated.part.Key; -import me.fixeddev.commandflow.discord.annotation.Sender; import net.dv8tion.jda.api.entities.Member; import net.dv8tion.jda.api.entities.Message; import net.dv8tion.jda.api.entities.TextChannel; diff --git a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/annotation/Sender.java b/Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Sender.java similarity index 82% rename from Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/annotation/Sender.java rename to Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Sender.java index b6328efb..94d00d45 100644 --- a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/annotation/Sender.java +++ b/Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Sender.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.bukkit.annotation; +package me.fixeddev.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/Velocity/src/main/java/me/fixeddev/commandflow/velocity/annotation/Sender.java b/Velocity/src/main/java/me/fixeddev/commandflow/velocity/annotation/Sender.java deleted file mode 100644 index 9c5b0574..00000000 --- a/Velocity/src/main/java/me/fixeddev/commandflow/velocity/annotation/Sender.java +++ /dev/null @@ -1,11 +0,0 @@ -package me.fixeddev.commandflow.velocity.annotation; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.PARAMETER) -public @interface Sender { -} diff --git a/Velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/VelocityModule.java b/Velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/VelocityModule.java index 92371d24..afd4c8ba 100644 --- a/Velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/VelocityModule.java +++ b/Velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/VelocityModule.java @@ -3,9 +3,9 @@ import com.velocitypowered.api.command.CommandSource; import com.velocitypowered.api.proxy.Player; import com.velocitypowered.api.proxy.ProxyServer; +import me.fixeddev.commandflow.annotated.annotation.Sender; import me.fixeddev.commandflow.annotated.part.AbstractModule; import me.fixeddev.commandflow.annotated.part.Key; -import me.fixeddev.commandflow.velocity.annotation.Sender; public class VelocityModule extends AbstractModule { From e442aec4f6051a9f54767d3598bdc3a29f7c04c5 Mon Sep 17 00:00:00 2001 From: yusshu Date: Sun, 29 Oct 2023 19:01:56 -0500 Subject: [PATCH 02/31] refactor: lowercase module names and rename universal to api only for convention purposes, most maven projects use lowercase module names, and main module is often named 'api' or 'core' --- {Universal => api}/pom.xml | 4 ++-- .../java/me/fixeddev/commandflow/Authorizer.java | 0 .../me/fixeddev/commandflow/CommandContext.java | 0 .../me/fixeddev/commandflow/CommandManager.java | 0 .../me/fixeddev/commandflow/ContextSnapshot.java | 0 .../me/fixeddev/commandflow/ErrorHandler.java | 0 .../java/me/fixeddev/commandflow/Namespace.java | 0 .../me/fixeddev/commandflow/NamespaceImpl.java | 0 .../java/me/fixeddev/commandflow/ParseResult.java | 0 .../commandflow/SimpleCommandContext.java | 0 .../commandflow/SimpleCommandManager.java | 0 .../fixeddev/commandflow/SimpleErrorHandler.java | 0 .../annotated/AnnotatedCommandTreeBuilder.java | 0 .../AnnotatedCommandTreeBuilderImpl.java | 0 .../commandflow/annotated/CommandClass.java | 0 .../annotated/ReflectionInstanceCreator.java | 0 .../annotated/ReflectionSubCommandHandler.java | 0 .../annotated/SubCommandInstanceCreator.java | 0 .../annotated/action/ReflectiveAction.java | 0 .../commandflow/annotated/action/ValueGetter.java | 0 .../annotated/annotation/ArgOrSub.java | 0 .../commandflow/annotated/annotation/Command.java | 0 .../annotated/annotation/ConsumeAll.java | 0 .../commandflow/annotated/annotation/Flag.java | 0 .../commandflow/annotated/annotation/Handler.java | 0 .../commandflow/annotated/annotation/Limit.java | 0 .../commandflow/annotated/annotation/Named.java | 0 .../commandflow/annotated/annotation/OptArg.java | 0 .../annotated/annotation/ParentArg.java | 0 .../commandflow/annotated/annotation/Range.java | 0 .../annotated/annotation/Required.java | 0 .../annotated/annotation/Rewrites.java | 0 .../commandflow/annotated/annotation/Strict.java | 0 .../annotated/annotation/SubCommandClasses.java | 0 .../annotated/annotation/Suggestions.java | 0 .../commandflow/annotated/annotation/Switch.java | 0 .../commandflow/annotated/annotation/Text.java | 0 .../commandflow/annotated/annotation/Usage.java | 0 .../builder/AnnotatedCommandBuilder.java | 0 .../builder/AnnotatedCommandBuilderImpl.java | 0 .../commandflow/annotated/builder/Buildable.java | 0 .../annotated/builder/CommandActionNode.java | 0 .../builder/CommandBuilderNodesImpl.java | 0 .../annotated/builder/CommandDataNode.java | 0 .../annotated/builder/CommandModifiersNode.java | 0 .../annotated/builder/CommandPartsNode.java | 0 .../annotated/builder/SubCommandsNode.java | 0 .../modifier/CommandModifierFactory.java | 0 .../annotated/part/AbstractModule.java | 0 .../annotated/part/DelegatePartModifier.java | 0 .../fixeddev/commandflow/annotated/part/Key.java | 0 .../commandflow/annotated/part/Module.java | 0 .../commandflow/annotated/part/PartFactory.java | 0 .../commandflow/annotated/part/PartInjector.java | 0 .../commandflow/annotated/part/PartModifier.java | 0 .../annotated/part/SimplePartInjector.java | 0 .../annotated/part/defaults/DefaultsModule.java | 0 .../factory/ArgumentStackPartFactory.java | 0 .../part/defaults/factory/BooleanPartFactory.java | 0 .../part/defaults/factory/ContextFactory.java | 0 .../part/defaults/factory/DoublePartFactory.java | 0 .../part/defaults/factory/EnumPartFactory.java | 0 .../part/defaults/factory/FloatPartFactory.java | 0 .../part/defaults/factory/IntegerPartFactory.java | 0 .../part/defaults/factory/LongPartFactory.java | 0 .../part/defaults/factory/StringPartFactory.java | 0 .../defaults/factory/StringTextPartFactory.java | 0 .../part/defaults/factory/SwitchPartFactory.java | 0 .../part/defaults/modifier/LimitModifier.java | 0 .../part/defaults/modifier/OptionalModifier.java | 0 .../part/defaults/modifier/RewritesModifier.java | 0 .../defaults/modifier/SuggestionsModifier.java | 0 .../part/defaults/modifier/ValueFlagModifier.java | 0 .../me/fixeddev/commandflow/command/Action.java | 0 .../me/fixeddev/commandflow/command/Command.java | 0 .../commandflow/command/SimpleCommand.java | 0 .../command/modifiers/CommandModifier.java | 0 .../command/modifiers/CommandModifiers.java | 0 .../modifiers/FallbackCommandModifiers.java | 0 .../command/modifiers/ModifierPhase.java | 0 .../command/modifiers/ModifierUtils.java | 0 .../modifiers/SequentialCommandModifier.java | 0 .../command/modifiers/SimpleCommandModifiers.java | 0 .../commandflow/exception/ArgumentException.java | 0 .../exception/ArgumentParseException.java | 0 .../commandflow/exception/CommandException.java | 0 .../commandflow/exception/CommandUsage.java | 0 .../exception/InvalidSubCommandException.java | 0 .../exception/NoMoreArgumentsException.java | 0 .../exception/NoPermissionsException.java | 0 .../commandflow/exception/StopParseException.java | 0 .../commandflow/executor/DefaultExecutor.java | 0 .../fixeddev/commandflow/executor/Executor.java | 0 .../commandflow/input/InputTokenizer.java | 0 .../commandflow/input/QuotedSpaceTokenizer.java | 0 .../commandflow/input/StringSpaceTokenizer.java | 0 .../fixeddev/commandflow/part/ArgumentPart.java | 0 .../me/fixeddev/commandflow/part/CommandPart.java | 0 .../java/me/fixeddev/commandflow/part/Parts.java | 0 .../fixeddev/commandflow/part/PartsWrapper.java | 0 .../commandflow/part/SinglePartWrapper.java | 0 .../part/defaults/ArgumentRewriterPart.java | 0 .../part/defaults/ArgumentStackPart.java | 0 .../commandflow/part/defaults/BooleanPart.java | 0 .../commandflow/part/defaults/ContextPart.java | 0 .../commandflow/part/defaults/DoublePart.java | 0 .../commandflow/part/defaults/EmptyPart.java | 0 .../commandflow/part/defaults/EnumPart.java | 0 .../commandflow/part/defaults/FirstMatchPart.java | 0 .../commandflow/part/defaults/FloatPart.java | 0 .../commandflow/part/defaults/IntegerPart.java | 0 .../commandflow/part/defaults/LimitingPart.java | 0 .../commandflow/part/defaults/LongPart.java | 0 .../commandflow/part/defaults/OptionalPart.java | 0 .../commandflow/part/defaults/PrimitivePart.java | 0 .../part/defaults/SequentialCommandPart.java | 0 .../commandflow/part/defaults/StringPart.java | 0 .../commandflow/part/defaults/SubCommandPart.java | 0 .../part/defaults/SuggestionsModifierPart.java | 0 .../commandflow/part/defaults/SwitchPart.java | 0 .../commandflow/part/defaults/ValueFlagPart.java | 0 .../part/visitor/CommandPartVisitor.java | 0 .../part/visitor/UnwrappedCommandPartVisitor.java | 0 .../fixeddev/commandflow/stack/ArgumentStack.java | 0 .../commandflow/stack/SimpleArgumentStack.java | 0 .../fixeddev/commandflow/stack/StackSnapshot.java | 0 .../translator/ComponentRendererTranslator.java | 0 .../translator/DefaultMapTranslationProvider.java | 0 .../commandflow/translator/DefaultTranslator.java | 0 .../translator/TranslationProvider.java | 0 .../commandflow/translator/Translator.java | 0 .../commandflow/usage/DefaultUsageBuilder.java | 0 .../fixeddev/commandflow/usage/UsageBuilder.java | 0 .../fixeddev/commandflow/InputTokenizerTest.java | 0 .../commandflow/ParameterizedPartTest.java | 0 .../annotated/CustomComponentParserTest.java | 0 {Brigadier => brigadier}/pom.xml | 4 ++-- .../brigadier/BrigadierCommandManager.java | 0 .../brigadier/BrigadierCommandWrapper.java | 0 .../BrigadierDefaultTranslationProvider.java | 0 .../brigadier/CommandBrigadierConverter.java | 0 .../commandflow/brigadier/MultipleHeadNode.java | 0 .../brigadier/MultipleHeadNodeBuilder.java | 0 .../brigadier/PermissionRequirement.java | 0 {Bukkit => bukkit}/pom.xml | 4 ++-- .../commandflow/bukkit/BukkitAuthorizer.java | 0 .../commandflow/bukkit/BukkitCommandManager.java | 0 .../commandflow/bukkit/BukkitCommandWrapper.java | 0 .../bukkit/BukkitDefaultTranslationProvider.java | 0 .../fixeddev/commandflow/bukkit/MessageUtils.java | 0 .../commandflow/bukkit/annotation/Exact.java | 0 .../bukkit/annotation/PlayerOrSource.java | 0 .../commandflow/bukkit/annotation/Sender.java | 0 .../commandflow/bukkit/factory/BukkitModule.java | 0 .../bukkit/factory/CommandSenderFactory.java | 0 .../bukkit/factory/GameModeFactory.java | 0 .../bukkit/factory/OfflinePlayerPartFactory.java | 0 .../bukkit/factory/PlayerPartFactory.java | 0 .../bukkit/factory/PlayerSenderFactory.java | 0 .../commandflow/bukkit/factory/WorldFactory.java | 0 .../commandflow/bukkit/part/BukkitParts.java | 0 .../bukkit/part/CommandSenderPart.java | 0 .../commandflow/bukkit/part/GameModePart.java | 0 .../bukkit/part/OfflinePlayerPart.java | 0 .../commandflow/bukkit/part/PlayerPart.java | 0 .../commandflow/bukkit/part/PlayerSenderPart.java | 0 .../commandflow/bukkit/part/WorldPart.java | 0 {Bungee => bungee}/pom.xml | 4 ++-- .../commandflow/bungee/BungeeAuthorizer.java | 0 .../commandflow/bungee/BungeeCommandManager.java | 0 .../commandflow/bungee/BungeeCommandWrapper.java | 0 .../bungee/BungeeDefaultTranslationProvider.java | 0 .../fixeddev/commandflow/bungee/MessageUtils.java | 0 .../bungee/annotation/ProxiedPlayerOrSource.java | 0 .../commandflow/bungee/annotation/Sender.java | 0 .../commandflow/bungee/factory/BungeeModule.java | 0 .../bungee/factory/CommandSenderPartFactory.java | 0 .../bungee/factory/ProxiedPlayerPartFactory.java | 0 .../factory/ProxiedPlayerSenderPartFactory.java | 0 .../bungee/part/CommandSenderPart.java | 0 .../bungee/part/ProxiedPlayerPart.java | 0 .../bungee/part/ProxiedPlayerSenderPart.java | 0 {Discord => discord}/pom.xml | 4 ++-- .../commandflow/discord/DiscordAuthorizer.java | 0 .../discord/DiscordCommandManager.java | 0 .../DiscordDefaultTranslationProvider.java | 0 .../commandflow/discord/MessageListener.java | 0 .../commandflow/discord/annotation/Sender.java | 0 .../discord/factory/DiscordModule.java | 0 .../discord/factory/MemberPartFactory.java | 0 .../discord/factory/MemberSenderPartFactory.java | 0 .../discord/factory/MessagePartFactory.java | 0 .../discord/factory/TextChannelPartFactory.java | 0 .../discord/factory/UserPartFactory.java | 0 .../discord/factory/UserSenderPartFactory.java | 0 .../commandflow/discord/part/MemberPart.java | 0 .../discord/part/MemberSenderPart.java | 0 .../commandflow/discord/part/MessagePart.java | 0 .../commandflow/discord/part/TextChannelPart.java | 0 .../commandflow/discord/part/UserPart.java | 0 .../commandflow/discord/part/UserSenderPart.java | 0 .../commandflow/discord/utils/ArgumentsUtils.java | 0 .../commandflow/discord/utils/MessageUtils.java | 0 pom.xml | 15 +++++++-------- {Velocity => velocity}/pom.xml | 4 ++-- .../commandflow/velocity/VelocityAuthorizer.java | 0 .../velocity/VelocityCommandManager.java | 0 .../velocity/VelocityCommandWrapper.java | 0 .../VelocityDefaultTranslationProvider.java | 0 .../velocity/annotation/PlayerOrSource.java | 0 .../commandflow/velocity/annotation/Sender.java | 0 .../factory/CommandSourcePartFactory.java | 0 .../velocity/factory/PlayerPartFactory.java | 0 .../velocity/factory/PlayerSenderPartFactory.java | 0 .../velocity/factory/VelocityModule.java | 0 .../velocity/part/CommandSenderPart.java | 0 .../commandflow/velocity/part/PlayerPart.java | 0 .../velocity/part/PlayerSenderPart.java | 0 218 files changed, 19 insertions(+), 20 deletions(-) rename {Universal => api}/pom.xml (95%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/Authorizer.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/CommandContext.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/CommandManager.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/ContextSnapshot.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/ErrorHandler.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/Namespace.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/NamespaceImpl.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/ParseResult.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/SimpleCommandContext.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/SimpleCommandManager.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/SimpleErrorHandler.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/AnnotatedCommandTreeBuilder.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/AnnotatedCommandTreeBuilderImpl.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/CommandClass.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/ReflectionInstanceCreator.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/ReflectionSubCommandHandler.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/SubCommandInstanceCreator.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/action/ReflectiveAction.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/action/ValueGetter.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/annotation/ArgOrSub.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/annotation/Command.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/annotation/ConsumeAll.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/annotation/Flag.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/annotation/Handler.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/annotation/Limit.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/annotation/Named.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/annotation/OptArg.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/annotation/ParentArg.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/annotation/Range.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/annotation/Required.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/annotation/Rewrites.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/annotation/Strict.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/annotation/SubCommandClasses.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/annotation/Suggestions.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/annotation/Switch.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/annotation/Text.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/annotation/Usage.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/builder/AnnotatedCommandBuilder.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/builder/AnnotatedCommandBuilderImpl.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/builder/Buildable.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandActionNode.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandBuilderNodesImpl.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandDataNode.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandModifiersNode.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandPartsNode.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/builder/SubCommandsNode.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/modifier/CommandModifierFactory.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/part/AbstractModule.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/part/DelegatePartModifier.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/part/Key.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/part/Module.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/part/PartFactory.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/part/PartInjector.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/part/PartModifier.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/part/SimplePartInjector.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/DefaultsModule.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/ArgumentStackPartFactory.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/BooleanPartFactory.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/ContextFactory.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/DoublePartFactory.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/EnumPartFactory.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/FloatPartFactory.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/IntegerPartFactory.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/LongPartFactory.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/StringPartFactory.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/StringTextPartFactory.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/SwitchPartFactory.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/LimitModifier.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/OptionalModifier.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/RewritesModifier.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/SuggestionsModifier.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/ValueFlagModifier.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/command/Action.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/command/Command.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/command/SimpleCommand.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/command/modifiers/CommandModifier.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/command/modifiers/CommandModifiers.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/command/modifiers/FallbackCommandModifiers.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/command/modifiers/ModifierPhase.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/command/modifiers/ModifierUtils.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/command/modifiers/SequentialCommandModifier.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/command/modifiers/SimpleCommandModifiers.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/exception/ArgumentException.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/exception/ArgumentParseException.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/exception/CommandException.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/exception/CommandUsage.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/exception/InvalidSubCommandException.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/exception/NoMoreArgumentsException.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/exception/NoPermissionsException.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/exception/StopParseException.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/executor/DefaultExecutor.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/executor/Executor.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/input/InputTokenizer.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/input/QuotedSpaceTokenizer.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/input/StringSpaceTokenizer.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/ArgumentPart.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/CommandPart.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/Parts.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/PartsWrapper.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/SinglePartWrapper.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/defaults/ArgumentRewriterPart.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/defaults/ArgumentStackPart.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/defaults/BooleanPart.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/defaults/ContextPart.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/defaults/DoublePart.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/defaults/EmptyPart.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/defaults/EnumPart.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/defaults/FirstMatchPart.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/defaults/FloatPart.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/defaults/IntegerPart.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/defaults/LimitingPart.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/defaults/LongPart.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/defaults/OptionalPart.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/defaults/PrimitivePart.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/defaults/SequentialCommandPart.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/defaults/StringPart.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/defaults/SubCommandPart.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/defaults/SuggestionsModifierPart.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/defaults/SwitchPart.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/defaults/ValueFlagPart.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/visitor/CommandPartVisitor.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/part/visitor/UnwrappedCommandPartVisitor.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/stack/ArgumentStack.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/stack/SimpleArgumentStack.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/stack/StackSnapshot.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/translator/ComponentRendererTranslator.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/translator/DefaultMapTranslationProvider.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/translator/DefaultTranslator.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/translator/TranslationProvider.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/translator/Translator.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/usage/DefaultUsageBuilder.java (100%) rename {Universal => api}/src/main/java/me/fixeddev/commandflow/usage/UsageBuilder.java (100%) rename {Universal => api}/src/test/java/me/fixeddev/commandflow/InputTokenizerTest.java (100%) rename {Universal => api}/src/test/java/me/fixeddev/commandflow/ParameterizedPartTest.java (100%) rename {Universal => api}/src/test/java/me/fixeddev/commandflow/annotated/CustomComponentParserTest.java (100%) rename {Brigadier => brigadier}/pom.xml (94%) rename {Brigadier => brigadier}/src/main/java/me/fixeddev/commandflow/brigadier/BrigadierCommandManager.java (100%) rename {Brigadier => brigadier}/src/main/java/me/fixeddev/commandflow/brigadier/BrigadierCommandWrapper.java (100%) rename {Brigadier => brigadier}/src/main/java/me/fixeddev/commandflow/brigadier/BrigadierDefaultTranslationProvider.java (100%) rename {Brigadier => brigadier}/src/main/java/me/fixeddev/commandflow/brigadier/CommandBrigadierConverter.java (100%) rename {Brigadier => brigadier}/src/main/java/me/fixeddev/commandflow/brigadier/MultipleHeadNode.java (100%) rename {Brigadier => brigadier}/src/main/java/me/fixeddev/commandflow/brigadier/MultipleHeadNodeBuilder.java (100%) rename {Brigadier => brigadier}/src/main/java/me/fixeddev/commandflow/brigadier/PermissionRequirement.java (100%) rename {Bukkit => bukkit}/pom.xml (91%) rename {Bukkit => bukkit}/src/main/java/me/fixeddev/commandflow/bukkit/BukkitAuthorizer.java (100%) rename {Bukkit => bukkit}/src/main/java/me/fixeddev/commandflow/bukkit/BukkitCommandManager.java (100%) rename {Bukkit => bukkit}/src/main/java/me/fixeddev/commandflow/bukkit/BukkitCommandWrapper.java (100%) rename {Bukkit => bukkit}/src/main/java/me/fixeddev/commandflow/bukkit/BukkitDefaultTranslationProvider.java (100%) rename {Bukkit => bukkit}/src/main/java/me/fixeddev/commandflow/bukkit/MessageUtils.java (100%) rename {Bukkit => bukkit}/src/main/java/me/fixeddev/commandflow/bukkit/annotation/Exact.java (100%) rename {Bukkit => bukkit}/src/main/java/me/fixeddev/commandflow/bukkit/annotation/PlayerOrSource.java (100%) rename {Bukkit => bukkit}/src/main/java/me/fixeddev/commandflow/bukkit/annotation/Sender.java (100%) rename {Bukkit => bukkit}/src/main/java/me/fixeddev/commandflow/bukkit/factory/BukkitModule.java (100%) rename {Bukkit => bukkit}/src/main/java/me/fixeddev/commandflow/bukkit/factory/CommandSenderFactory.java (100%) rename {Bukkit => bukkit}/src/main/java/me/fixeddev/commandflow/bukkit/factory/GameModeFactory.java (100%) rename {Bukkit => bukkit}/src/main/java/me/fixeddev/commandflow/bukkit/factory/OfflinePlayerPartFactory.java (100%) rename {Bukkit => bukkit}/src/main/java/me/fixeddev/commandflow/bukkit/factory/PlayerPartFactory.java (100%) rename {Bukkit => bukkit}/src/main/java/me/fixeddev/commandflow/bukkit/factory/PlayerSenderFactory.java (100%) rename {Bukkit => bukkit}/src/main/java/me/fixeddev/commandflow/bukkit/factory/WorldFactory.java (100%) rename {Bukkit => bukkit}/src/main/java/me/fixeddev/commandflow/bukkit/part/BukkitParts.java (100%) rename {Bukkit => bukkit}/src/main/java/me/fixeddev/commandflow/bukkit/part/CommandSenderPart.java (100%) rename {Bukkit => bukkit}/src/main/java/me/fixeddev/commandflow/bukkit/part/GameModePart.java (100%) rename {Bukkit => bukkit}/src/main/java/me/fixeddev/commandflow/bukkit/part/OfflinePlayerPart.java (100%) rename {Bukkit => bukkit}/src/main/java/me/fixeddev/commandflow/bukkit/part/PlayerPart.java (100%) rename {Bukkit => bukkit}/src/main/java/me/fixeddev/commandflow/bukkit/part/PlayerSenderPart.java (100%) rename {Bukkit => bukkit}/src/main/java/me/fixeddev/commandflow/bukkit/part/WorldPart.java (100%) rename {Bungee => bungee}/pom.xml (90%) rename {Bungee => bungee}/src/main/java/me/fixeddev/commandflow/bungee/BungeeAuthorizer.java (100%) rename {Bungee => bungee}/src/main/java/me/fixeddev/commandflow/bungee/BungeeCommandManager.java (100%) rename {Bungee => bungee}/src/main/java/me/fixeddev/commandflow/bungee/BungeeCommandWrapper.java (100%) rename {Bungee => bungee}/src/main/java/me/fixeddev/commandflow/bungee/BungeeDefaultTranslationProvider.java (100%) rename {Bungee => bungee}/src/main/java/me/fixeddev/commandflow/bungee/MessageUtils.java (100%) rename {Bungee => bungee}/src/main/java/me/fixeddev/commandflow/bungee/annotation/ProxiedPlayerOrSource.java (100%) rename {Bungee => bungee}/src/main/java/me/fixeddev/commandflow/bungee/annotation/Sender.java (100%) rename {Bungee => bungee}/src/main/java/me/fixeddev/commandflow/bungee/factory/BungeeModule.java (100%) rename {Bungee => bungee}/src/main/java/me/fixeddev/commandflow/bungee/factory/CommandSenderPartFactory.java (100%) rename {Bungee => bungee}/src/main/java/me/fixeddev/commandflow/bungee/factory/ProxiedPlayerPartFactory.java (100%) rename {Bungee => bungee}/src/main/java/me/fixeddev/commandflow/bungee/factory/ProxiedPlayerSenderPartFactory.java (100%) rename {Bungee => bungee}/src/main/java/me/fixeddev/commandflow/bungee/part/CommandSenderPart.java (100%) rename {Bungee => bungee}/src/main/java/me/fixeddev/commandflow/bungee/part/ProxiedPlayerPart.java (100%) rename {Bungee => bungee}/src/main/java/me/fixeddev/commandflow/bungee/part/ProxiedPlayerSenderPart.java (100%) rename {Discord => discord}/pom.xml (90%) rename {Discord => discord}/src/main/java/me/fixeddev/commandflow/discord/DiscordAuthorizer.java (100%) rename {Discord => discord}/src/main/java/me/fixeddev/commandflow/discord/DiscordCommandManager.java (100%) rename {Discord => discord}/src/main/java/me/fixeddev/commandflow/discord/DiscordDefaultTranslationProvider.java (100%) rename {Discord => discord}/src/main/java/me/fixeddev/commandflow/discord/MessageListener.java (100%) rename {Discord => discord}/src/main/java/me/fixeddev/commandflow/discord/annotation/Sender.java (100%) rename {Discord => discord}/src/main/java/me/fixeddev/commandflow/discord/factory/DiscordModule.java (100%) rename {Discord => discord}/src/main/java/me/fixeddev/commandflow/discord/factory/MemberPartFactory.java (100%) rename {Discord => discord}/src/main/java/me/fixeddev/commandflow/discord/factory/MemberSenderPartFactory.java (100%) rename {Discord => discord}/src/main/java/me/fixeddev/commandflow/discord/factory/MessagePartFactory.java (100%) rename {Discord => discord}/src/main/java/me/fixeddev/commandflow/discord/factory/TextChannelPartFactory.java (100%) rename {Discord => discord}/src/main/java/me/fixeddev/commandflow/discord/factory/UserPartFactory.java (100%) rename {Discord => discord}/src/main/java/me/fixeddev/commandflow/discord/factory/UserSenderPartFactory.java (100%) rename {Discord => discord}/src/main/java/me/fixeddev/commandflow/discord/part/MemberPart.java (100%) rename {Discord => discord}/src/main/java/me/fixeddev/commandflow/discord/part/MemberSenderPart.java (100%) rename {Discord => discord}/src/main/java/me/fixeddev/commandflow/discord/part/MessagePart.java (100%) rename {Discord => discord}/src/main/java/me/fixeddev/commandflow/discord/part/TextChannelPart.java (100%) rename {Discord => discord}/src/main/java/me/fixeddev/commandflow/discord/part/UserPart.java (100%) rename {Discord => discord}/src/main/java/me/fixeddev/commandflow/discord/part/UserSenderPart.java (100%) rename {Discord => discord}/src/main/java/me/fixeddev/commandflow/discord/utils/ArgumentsUtils.java (100%) rename {Discord => discord}/src/main/java/me/fixeddev/commandflow/discord/utils/MessageUtils.java (100%) rename {Velocity => velocity}/pom.xml (90%) rename {Velocity => velocity}/src/main/java/me/fixeddev/commandflow/velocity/VelocityAuthorizer.java (100%) rename {Velocity => velocity}/src/main/java/me/fixeddev/commandflow/velocity/VelocityCommandManager.java (100%) rename {Velocity => velocity}/src/main/java/me/fixeddev/commandflow/velocity/VelocityCommandWrapper.java (100%) rename {Velocity => velocity}/src/main/java/me/fixeddev/commandflow/velocity/VelocityDefaultTranslationProvider.java (100%) rename {Velocity => velocity}/src/main/java/me/fixeddev/commandflow/velocity/annotation/PlayerOrSource.java (100%) rename {Velocity => velocity}/src/main/java/me/fixeddev/commandflow/velocity/annotation/Sender.java (100%) rename {Velocity => velocity}/src/main/java/me/fixeddev/commandflow/velocity/factory/CommandSourcePartFactory.java (100%) rename {Velocity => velocity}/src/main/java/me/fixeddev/commandflow/velocity/factory/PlayerPartFactory.java (100%) rename {Velocity => velocity}/src/main/java/me/fixeddev/commandflow/velocity/factory/PlayerSenderPartFactory.java (100%) rename {Velocity => velocity}/src/main/java/me/fixeddev/commandflow/velocity/factory/VelocityModule.java (100%) rename {Velocity => velocity}/src/main/java/me/fixeddev/commandflow/velocity/part/CommandSenderPart.java (100%) rename {Velocity => velocity}/src/main/java/me/fixeddev/commandflow/velocity/part/PlayerPart.java (100%) rename {Velocity => velocity}/src/main/java/me/fixeddev/commandflow/velocity/part/PlayerSenderPart.java (100%) diff --git a/Universal/pom.xml b/api/pom.xml similarity index 95% rename from Universal/pom.xml rename to api/pom.xml index 26e3b865..8e71c2c4 100644 --- a/Universal/pom.xml +++ b/api/pom.xml @@ -9,8 +9,8 @@ 4.0.0 - ${version.universal} - commandflow-universal + ${version.api} + commandflow-api jar diff --git a/Universal/src/main/java/me/fixeddev/commandflow/Authorizer.java b/api/src/main/java/me/fixeddev/commandflow/Authorizer.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/Authorizer.java rename to api/src/main/java/me/fixeddev/commandflow/Authorizer.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/CommandContext.java b/api/src/main/java/me/fixeddev/commandflow/CommandContext.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/CommandContext.java rename to api/src/main/java/me/fixeddev/commandflow/CommandContext.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/CommandManager.java b/api/src/main/java/me/fixeddev/commandflow/CommandManager.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/CommandManager.java rename to api/src/main/java/me/fixeddev/commandflow/CommandManager.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/ContextSnapshot.java b/api/src/main/java/me/fixeddev/commandflow/ContextSnapshot.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/ContextSnapshot.java rename to api/src/main/java/me/fixeddev/commandflow/ContextSnapshot.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/ErrorHandler.java b/api/src/main/java/me/fixeddev/commandflow/ErrorHandler.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/ErrorHandler.java rename to api/src/main/java/me/fixeddev/commandflow/ErrorHandler.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/Namespace.java b/api/src/main/java/me/fixeddev/commandflow/Namespace.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/Namespace.java rename to api/src/main/java/me/fixeddev/commandflow/Namespace.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/NamespaceImpl.java b/api/src/main/java/me/fixeddev/commandflow/NamespaceImpl.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/NamespaceImpl.java rename to api/src/main/java/me/fixeddev/commandflow/NamespaceImpl.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/ParseResult.java b/api/src/main/java/me/fixeddev/commandflow/ParseResult.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/ParseResult.java rename to api/src/main/java/me/fixeddev/commandflow/ParseResult.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/SimpleCommandContext.java b/api/src/main/java/me/fixeddev/commandflow/SimpleCommandContext.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/SimpleCommandContext.java rename to api/src/main/java/me/fixeddev/commandflow/SimpleCommandContext.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/SimpleCommandManager.java b/api/src/main/java/me/fixeddev/commandflow/SimpleCommandManager.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/SimpleCommandManager.java rename to api/src/main/java/me/fixeddev/commandflow/SimpleCommandManager.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/SimpleErrorHandler.java b/api/src/main/java/me/fixeddev/commandflow/SimpleErrorHandler.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/SimpleErrorHandler.java rename to api/src/main/java/me/fixeddev/commandflow/SimpleErrorHandler.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/AnnotatedCommandTreeBuilder.java b/api/src/main/java/me/fixeddev/commandflow/annotated/AnnotatedCommandTreeBuilder.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/AnnotatedCommandTreeBuilder.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/AnnotatedCommandTreeBuilder.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/AnnotatedCommandTreeBuilderImpl.java b/api/src/main/java/me/fixeddev/commandflow/annotated/AnnotatedCommandTreeBuilderImpl.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/AnnotatedCommandTreeBuilderImpl.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/AnnotatedCommandTreeBuilderImpl.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/CommandClass.java b/api/src/main/java/me/fixeddev/commandflow/annotated/CommandClass.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/CommandClass.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/CommandClass.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/ReflectionInstanceCreator.java b/api/src/main/java/me/fixeddev/commandflow/annotated/ReflectionInstanceCreator.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/ReflectionInstanceCreator.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/ReflectionInstanceCreator.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/ReflectionSubCommandHandler.java b/api/src/main/java/me/fixeddev/commandflow/annotated/ReflectionSubCommandHandler.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/ReflectionSubCommandHandler.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/ReflectionSubCommandHandler.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/SubCommandInstanceCreator.java b/api/src/main/java/me/fixeddev/commandflow/annotated/SubCommandInstanceCreator.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/SubCommandInstanceCreator.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/SubCommandInstanceCreator.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/action/ReflectiveAction.java b/api/src/main/java/me/fixeddev/commandflow/annotated/action/ReflectiveAction.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/action/ReflectiveAction.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/action/ReflectiveAction.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/action/ValueGetter.java b/api/src/main/java/me/fixeddev/commandflow/annotated/action/ValueGetter.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/action/ValueGetter.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/action/ValueGetter.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/ArgOrSub.java b/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/ArgOrSub.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/ArgOrSub.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/annotation/ArgOrSub.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Command.java b/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Command.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Command.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Command.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/ConsumeAll.java b/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/ConsumeAll.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/ConsumeAll.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/annotation/ConsumeAll.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Flag.java b/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Flag.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Flag.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Flag.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Handler.java b/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Handler.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Handler.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Handler.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Limit.java b/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Limit.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Limit.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Limit.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Named.java b/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Named.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Named.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Named.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/OptArg.java b/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/OptArg.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/OptArg.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/annotation/OptArg.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/ParentArg.java b/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/ParentArg.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/ParentArg.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/annotation/ParentArg.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Range.java b/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Range.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Range.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Range.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Required.java b/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Required.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Required.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Required.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Rewrites.java b/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Rewrites.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Rewrites.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Rewrites.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Strict.java b/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Strict.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Strict.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Strict.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/SubCommandClasses.java b/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/SubCommandClasses.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/SubCommandClasses.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/annotation/SubCommandClasses.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Suggestions.java b/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Suggestions.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Suggestions.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Suggestions.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Switch.java b/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Switch.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Switch.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Switch.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Text.java b/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Text.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Text.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Text.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Usage.java b/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Usage.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/annotation/Usage.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Usage.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/builder/AnnotatedCommandBuilder.java b/api/src/main/java/me/fixeddev/commandflow/annotated/builder/AnnotatedCommandBuilder.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/builder/AnnotatedCommandBuilder.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/builder/AnnotatedCommandBuilder.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/builder/AnnotatedCommandBuilderImpl.java b/api/src/main/java/me/fixeddev/commandflow/annotated/builder/AnnotatedCommandBuilderImpl.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/builder/AnnotatedCommandBuilderImpl.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/builder/AnnotatedCommandBuilderImpl.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/builder/Buildable.java b/api/src/main/java/me/fixeddev/commandflow/annotated/builder/Buildable.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/builder/Buildable.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/builder/Buildable.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandActionNode.java b/api/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandActionNode.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandActionNode.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandActionNode.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandBuilderNodesImpl.java b/api/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandBuilderNodesImpl.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandBuilderNodesImpl.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandBuilderNodesImpl.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandDataNode.java b/api/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandDataNode.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandDataNode.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandDataNode.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandModifiersNode.java b/api/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandModifiersNode.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandModifiersNode.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandModifiersNode.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandPartsNode.java b/api/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandPartsNode.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandPartsNode.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandPartsNode.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/builder/SubCommandsNode.java b/api/src/main/java/me/fixeddev/commandflow/annotated/builder/SubCommandsNode.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/builder/SubCommandsNode.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/builder/SubCommandsNode.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/modifier/CommandModifierFactory.java b/api/src/main/java/me/fixeddev/commandflow/annotated/modifier/CommandModifierFactory.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/modifier/CommandModifierFactory.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/modifier/CommandModifierFactory.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/part/AbstractModule.java b/api/src/main/java/me/fixeddev/commandflow/annotated/part/AbstractModule.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/part/AbstractModule.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/part/AbstractModule.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/part/DelegatePartModifier.java b/api/src/main/java/me/fixeddev/commandflow/annotated/part/DelegatePartModifier.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/part/DelegatePartModifier.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/part/DelegatePartModifier.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/part/Key.java b/api/src/main/java/me/fixeddev/commandflow/annotated/part/Key.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/part/Key.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/part/Key.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/part/Module.java b/api/src/main/java/me/fixeddev/commandflow/annotated/part/Module.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/part/Module.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/part/Module.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/part/PartFactory.java b/api/src/main/java/me/fixeddev/commandflow/annotated/part/PartFactory.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/part/PartFactory.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/part/PartFactory.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/part/PartInjector.java b/api/src/main/java/me/fixeddev/commandflow/annotated/part/PartInjector.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/part/PartInjector.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/part/PartInjector.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/part/PartModifier.java b/api/src/main/java/me/fixeddev/commandflow/annotated/part/PartModifier.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/part/PartModifier.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/part/PartModifier.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/part/SimplePartInjector.java b/api/src/main/java/me/fixeddev/commandflow/annotated/part/SimplePartInjector.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/part/SimplePartInjector.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/part/SimplePartInjector.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/DefaultsModule.java b/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/DefaultsModule.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/DefaultsModule.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/DefaultsModule.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/ArgumentStackPartFactory.java b/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/ArgumentStackPartFactory.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/ArgumentStackPartFactory.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/ArgumentStackPartFactory.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/BooleanPartFactory.java b/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/BooleanPartFactory.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/BooleanPartFactory.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/BooleanPartFactory.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/ContextFactory.java b/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/ContextFactory.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/ContextFactory.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/ContextFactory.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/DoublePartFactory.java b/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/DoublePartFactory.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/DoublePartFactory.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/DoublePartFactory.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/EnumPartFactory.java b/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/EnumPartFactory.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/EnumPartFactory.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/EnumPartFactory.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/FloatPartFactory.java b/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/FloatPartFactory.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/FloatPartFactory.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/FloatPartFactory.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/IntegerPartFactory.java b/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/IntegerPartFactory.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/IntegerPartFactory.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/IntegerPartFactory.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/LongPartFactory.java b/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/LongPartFactory.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/LongPartFactory.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/LongPartFactory.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/StringPartFactory.java b/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/StringPartFactory.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/StringPartFactory.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/StringPartFactory.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/StringTextPartFactory.java b/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/StringTextPartFactory.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/StringTextPartFactory.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/StringTextPartFactory.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/SwitchPartFactory.java b/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/SwitchPartFactory.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/SwitchPartFactory.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/SwitchPartFactory.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/LimitModifier.java b/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/LimitModifier.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/LimitModifier.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/LimitModifier.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/OptionalModifier.java b/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/OptionalModifier.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/OptionalModifier.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/OptionalModifier.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/RewritesModifier.java b/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/RewritesModifier.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/RewritesModifier.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/RewritesModifier.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/SuggestionsModifier.java b/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/SuggestionsModifier.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/SuggestionsModifier.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/SuggestionsModifier.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/ValueFlagModifier.java b/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/ValueFlagModifier.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/ValueFlagModifier.java rename to api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/ValueFlagModifier.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/command/Action.java b/api/src/main/java/me/fixeddev/commandflow/command/Action.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/command/Action.java rename to api/src/main/java/me/fixeddev/commandflow/command/Action.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/command/Command.java b/api/src/main/java/me/fixeddev/commandflow/command/Command.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/command/Command.java rename to api/src/main/java/me/fixeddev/commandflow/command/Command.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/command/SimpleCommand.java b/api/src/main/java/me/fixeddev/commandflow/command/SimpleCommand.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/command/SimpleCommand.java rename to api/src/main/java/me/fixeddev/commandflow/command/SimpleCommand.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/command/modifiers/CommandModifier.java b/api/src/main/java/me/fixeddev/commandflow/command/modifiers/CommandModifier.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/command/modifiers/CommandModifier.java rename to api/src/main/java/me/fixeddev/commandflow/command/modifiers/CommandModifier.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/command/modifiers/CommandModifiers.java b/api/src/main/java/me/fixeddev/commandflow/command/modifiers/CommandModifiers.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/command/modifiers/CommandModifiers.java rename to api/src/main/java/me/fixeddev/commandflow/command/modifiers/CommandModifiers.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/command/modifiers/FallbackCommandModifiers.java b/api/src/main/java/me/fixeddev/commandflow/command/modifiers/FallbackCommandModifiers.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/command/modifiers/FallbackCommandModifiers.java rename to api/src/main/java/me/fixeddev/commandflow/command/modifiers/FallbackCommandModifiers.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/command/modifiers/ModifierPhase.java b/api/src/main/java/me/fixeddev/commandflow/command/modifiers/ModifierPhase.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/command/modifiers/ModifierPhase.java rename to api/src/main/java/me/fixeddev/commandflow/command/modifiers/ModifierPhase.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/command/modifiers/ModifierUtils.java b/api/src/main/java/me/fixeddev/commandflow/command/modifiers/ModifierUtils.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/command/modifiers/ModifierUtils.java rename to api/src/main/java/me/fixeddev/commandflow/command/modifiers/ModifierUtils.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/command/modifiers/SequentialCommandModifier.java b/api/src/main/java/me/fixeddev/commandflow/command/modifiers/SequentialCommandModifier.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/command/modifiers/SequentialCommandModifier.java rename to api/src/main/java/me/fixeddev/commandflow/command/modifiers/SequentialCommandModifier.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/command/modifiers/SimpleCommandModifiers.java b/api/src/main/java/me/fixeddev/commandflow/command/modifiers/SimpleCommandModifiers.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/command/modifiers/SimpleCommandModifiers.java rename to api/src/main/java/me/fixeddev/commandflow/command/modifiers/SimpleCommandModifiers.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/exception/ArgumentException.java b/api/src/main/java/me/fixeddev/commandflow/exception/ArgumentException.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/exception/ArgumentException.java rename to api/src/main/java/me/fixeddev/commandflow/exception/ArgumentException.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/exception/ArgumentParseException.java b/api/src/main/java/me/fixeddev/commandflow/exception/ArgumentParseException.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/exception/ArgumentParseException.java rename to api/src/main/java/me/fixeddev/commandflow/exception/ArgumentParseException.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/exception/CommandException.java b/api/src/main/java/me/fixeddev/commandflow/exception/CommandException.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/exception/CommandException.java rename to api/src/main/java/me/fixeddev/commandflow/exception/CommandException.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/exception/CommandUsage.java b/api/src/main/java/me/fixeddev/commandflow/exception/CommandUsage.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/exception/CommandUsage.java rename to api/src/main/java/me/fixeddev/commandflow/exception/CommandUsage.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/exception/InvalidSubCommandException.java b/api/src/main/java/me/fixeddev/commandflow/exception/InvalidSubCommandException.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/exception/InvalidSubCommandException.java rename to api/src/main/java/me/fixeddev/commandflow/exception/InvalidSubCommandException.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/exception/NoMoreArgumentsException.java b/api/src/main/java/me/fixeddev/commandflow/exception/NoMoreArgumentsException.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/exception/NoMoreArgumentsException.java rename to api/src/main/java/me/fixeddev/commandflow/exception/NoMoreArgumentsException.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/exception/NoPermissionsException.java b/api/src/main/java/me/fixeddev/commandflow/exception/NoPermissionsException.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/exception/NoPermissionsException.java rename to api/src/main/java/me/fixeddev/commandflow/exception/NoPermissionsException.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/exception/StopParseException.java b/api/src/main/java/me/fixeddev/commandflow/exception/StopParseException.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/exception/StopParseException.java rename to api/src/main/java/me/fixeddev/commandflow/exception/StopParseException.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/executor/DefaultExecutor.java b/api/src/main/java/me/fixeddev/commandflow/executor/DefaultExecutor.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/executor/DefaultExecutor.java rename to api/src/main/java/me/fixeddev/commandflow/executor/DefaultExecutor.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/executor/Executor.java b/api/src/main/java/me/fixeddev/commandflow/executor/Executor.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/executor/Executor.java rename to api/src/main/java/me/fixeddev/commandflow/executor/Executor.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/input/InputTokenizer.java b/api/src/main/java/me/fixeddev/commandflow/input/InputTokenizer.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/input/InputTokenizer.java rename to api/src/main/java/me/fixeddev/commandflow/input/InputTokenizer.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/input/QuotedSpaceTokenizer.java b/api/src/main/java/me/fixeddev/commandflow/input/QuotedSpaceTokenizer.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/input/QuotedSpaceTokenizer.java rename to api/src/main/java/me/fixeddev/commandflow/input/QuotedSpaceTokenizer.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/input/StringSpaceTokenizer.java b/api/src/main/java/me/fixeddev/commandflow/input/StringSpaceTokenizer.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/input/StringSpaceTokenizer.java rename to api/src/main/java/me/fixeddev/commandflow/input/StringSpaceTokenizer.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/ArgumentPart.java b/api/src/main/java/me/fixeddev/commandflow/part/ArgumentPart.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/ArgumentPart.java rename to api/src/main/java/me/fixeddev/commandflow/part/ArgumentPart.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/CommandPart.java b/api/src/main/java/me/fixeddev/commandflow/part/CommandPart.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/CommandPart.java rename to api/src/main/java/me/fixeddev/commandflow/part/CommandPart.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/Parts.java b/api/src/main/java/me/fixeddev/commandflow/part/Parts.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/Parts.java rename to api/src/main/java/me/fixeddev/commandflow/part/Parts.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/PartsWrapper.java b/api/src/main/java/me/fixeddev/commandflow/part/PartsWrapper.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/PartsWrapper.java rename to api/src/main/java/me/fixeddev/commandflow/part/PartsWrapper.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/SinglePartWrapper.java b/api/src/main/java/me/fixeddev/commandflow/part/SinglePartWrapper.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/SinglePartWrapper.java rename to api/src/main/java/me/fixeddev/commandflow/part/SinglePartWrapper.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/defaults/ArgumentRewriterPart.java b/api/src/main/java/me/fixeddev/commandflow/part/defaults/ArgumentRewriterPart.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/defaults/ArgumentRewriterPart.java rename to api/src/main/java/me/fixeddev/commandflow/part/defaults/ArgumentRewriterPart.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/defaults/ArgumentStackPart.java b/api/src/main/java/me/fixeddev/commandflow/part/defaults/ArgumentStackPart.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/defaults/ArgumentStackPart.java rename to api/src/main/java/me/fixeddev/commandflow/part/defaults/ArgumentStackPart.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/defaults/BooleanPart.java b/api/src/main/java/me/fixeddev/commandflow/part/defaults/BooleanPart.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/defaults/BooleanPart.java rename to api/src/main/java/me/fixeddev/commandflow/part/defaults/BooleanPart.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/defaults/ContextPart.java b/api/src/main/java/me/fixeddev/commandflow/part/defaults/ContextPart.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/defaults/ContextPart.java rename to api/src/main/java/me/fixeddev/commandflow/part/defaults/ContextPart.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/defaults/DoublePart.java b/api/src/main/java/me/fixeddev/commandflow/part/defaults/DoublePart.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/defaults/DoublePart.java rename to api/src/main/java/me/fixeddev/commandflow/part/defaults/DoublePart.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/defaults/EmptyPart.java b/api/src/main/java/me/fixeddev/commandflow/part/defaults/EmptyPart.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/defaults/EmptyPart.java rename to api/src/main/java/me/fixeddev/commandflow/part/defaults/EmptyPart.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/defaults/EnumPart.java b/api/src/main/java/me/fixeddev/commandflow/part/defaults/EnumPart.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/defaults/EnumPart.java rename to api/src/main/java/me/fixeddev/commandflow/part/defaults/EnumPart.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/defaults/FirstMatchPart.java b/api/src/main/java/me/fixeddev/commandflow/part/defaults/FirstMatchPart.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/defaults/FirstMatchPart.java rename to api/src/main/java/me/fixeddev/commandflow/part/defaults/FirstMatchPart.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/defaults/FloatPart.java b/api/src/main/java/me/fixeddev/commandflow/part/defaults/FloatPart.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/defaults/FloatPart.java rename to api/src/main/java/me/fixeddev/commandflow/part/defaults/FloatPart.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/defaults/IntegerPart.java b/api/src/main/java/me/fixeddev/commandflow/part/defaults/IntegerPart.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/defaults/IntegerPart.java rename to api/src/main/java/me/fixeddev/commandflow/part/defaults/IntegerPart.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/defaults/LimitingPart.java b/api/src/main/java/me/fixeddev/commandflow/part/defaults/LimitingPart.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/defaults/LimitingPart.java rename to api/src/main/java/me/fixeddev/commandflow/part/defaults/LimitingPart.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/defaults/LongPart.java b/api/src/main/java/me/fixeddev/commandflow/part/defaults/LongPart.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/defaults/LongPart.java rename to api/src/main/java/me/fixeddev/commandflow/part/defaults/LongPart.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/defaults/OptionalPart.java b/api/src/main/java/me/fixeddev/commandflow/part/defaults/OptionalPart.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/defaults/OptionalPart.java rename to api/src/main/java/me/fixeddev/commandflow/part/defaults/OptionalPart.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/defaults/PrimitivePart.java b/api/src/main/java/me/fixeddev/commandflow/part/defaults/PrimitivePart.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/defaults/PrimitivePart.java rename to api/src/main/java/me/fixeddev/commandflow/part/defaults/PrimitivePart.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/defaults/SequentialCommandPart.java b/api/src/main/java/me/fixeddev/commandflow/part/defaults/SequentialCommandPart.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/defaults/SequentialCommandPart.java rename to api/src/main/java/me/fixeddev/commandflow/part/defaults/SequentialCommandPart.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/defaults/StringPart.java b/api/src/main/java/me/fixeddev/commandflow/part/defaults/StringPart.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/defaults/StringPart.java rename to api/src/main/java/me/fixeddev/commandflow/part/defaults/StringPart.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/defaults/SubCommandPart.java b/api/src/main/java/me/fixeddev/commandflow/part/defaults/SubCommandPart.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/defaults/SubCommandPart.java rename to api/src/main/java/me/fixeddev/commandflow/part/defaults/SubCommandPart.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/defaults/SuggestionsModifierPart.java b/api/src/main/java/me/fixeddev/commandflow/part/defaults/SuggestionsModifierPart.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/defaults/SuggestionsModifierPart.java rename to api/src/main/java/me/fixeddev/commandflow/part/defaults/SuggestionsModifierPart.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/defaults/SwitchPart.java b/api/src/main/java/me/fixeddev/commandflow/part/defaults/SwitchPart.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/defaults/SwitchPart.java rename to api/src/main/java/me/fixeddev/commandflow/part/defaults/SwitchPart.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/defaults/ValueFlagPart.java b/api/src/main/java/me/fixeddev/commandflow/part/defaults/ValueFlagPart.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/defaults/ValueFlagPart.java rename to api/src/main/java/me/fixeddev/commandflow/part/defaults/ValueFlagPart.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/visitor/CommandPartVisitor.java b/api/src/main/java/me/fixeddev/commandflow/part/visitor/CommandPartVisitor.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/visitor/CommandPartVisitor.java rename to api/src/main/java/me/fixeddev/commandflow/part/visitor/CommandPartVisitor.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/part/visitor/UnwrappedCommandPartVisitor.java b/api/src/main/java/me/fixeddev/commandflow/part/visitor/UnwrappedCommandPartVisitor.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/part/visitor/UnwrappedCommandPartVisitor.java rename to api/src/main/java/me/fixeddev/commandflow/part/visitor/UnwrappedCommandPartVisitor.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/stack/ArgumentStack.java b/api/src/main/java/me/fixeddev/commandflow/stack/ArgumentStack.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/stack/ArgumentStack.java rename to api/src/main/java/me/fixeddev/commandflow/stack/ArgumentStack.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/stack/SimpleArgumentStack.java b/api/src/main/java/me/fixeddev/commandflow/stack/SimpleArgumentStack.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/stack/SimpleArgumentStack.java rename to api/src/main/java/me/fixeddev/commandflow/stack/SimpleArgumentStack.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/stack/StackSnapshot.java b/api/src/main/java/me/fixeddev/commandflow/stack/StackSnapshot.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/stack/StackSnapshot.java rename to api/src/main/java/me/fixeddev/commandflow/stack/StackSnapshot.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/translator/ComponentRendererTranslator.java b/api/src/main/java/me/fixeddev/commandflow/translator/ComponentRendererTranslator.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/translator/ComponentRendererTranslator.java rename to api/src/main/java/me/fixeddev/commandflow/translator/ComponentRendererTranslator.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/translator/DefaultMapTranslationProvider.java b/api/src/main/java/me/fixeddev/commandflow/translator/DefaultMapTranslationProvider.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/translator/DefaultMapTranslationProvider.java rename to api/src/main/java/me/fixeddev/commandflow/translator/DefaultMapTranslationProvider.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/translator/DefaultTranslator.java b/api/src/main/java/me/fixeddev/commandflow/translator/DefaultTranslator.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/translator/DefaultTranslator.java rename to api/src/main/java/me/fixeddev/commandflow/translator/DefaultTranslator.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/translator/TranslationProvider.java b/api/src/main/java/me/fixeddev/commandflow/translator/TranslationProvider.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/translator/TranslationProvider.java rename to api/src/main/java/me/fixeddev/commandflow/translator/TranslationProvider.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/translator/Translator.java b/api/src/main/java/me/fixeddev/commandflow/translator/Translator.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/translator/Translator.java rename to api/src/main/java/me/fixeddev/commandflow/translator/Translator.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/usage/DefaultUsageBuilder.java b/api/src/main/java/me/fixeddev/commandflow/usage/DefaultUsageBuilder.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/usage/DefaultUsageBuilder.java rename to api/src/main/java/me/fixeddev/commandflow/usage/DefaultUsageBuilder.java diff --git a/Universal/src/main/java/me/fixeddev/commandflow/usage/UsageBuilder.java b/api/src/main/java/me/fixeddev/commandflow/usage/UsageBuilder.java similarity index 100% rename from Universal/src/main/java/me/fixeddev/commandflow/usage/UsageBuilder.java rename to api/src/main/java/me/fixeddev/commandflow/usage/UsageBuilder.java diff --git a/Universal/src/test/java/me/fixeddev/commandflow/InputTokenizerTest.java b/api/src/test/java/me/fixeddev/commandflow/InputTokenizerTest.java similarity index 100% rename from Universal/src/test/java/me/fixeddev/commandflow/InputTokenizerTest.java rename to api/src/test/java/me/fixeddev/commandflow/InputTokenizerTest.java diff --git a/Universal/src/test/java/me/fixeddev/commandflow/ParameterizedPartTest.java b/api/src/test/java/me/fixeddev/commandflow/ParameterizedPartTest.java similarity index 100% rename from Universal/src/test/java/me/fixeddev/commandflow/ParameterizedPartTest.java rename to api/src/test/java/me/fixeddev/commandflow/ParameterizedPartTest.java diff --git a/Universal/src/test/java/me/fixeddev/commandflow/annotated/CustomComponentParserTest.java b/api/src/test/java/me/fixeddev/commandflow/annotated/CustomComponentParserTest.java similarity index 100% rename from Universal/src/test/java/me/fixeddev/commandflow/annotated/CustomComponentParserTest.java rename to api/src/test/java/me/fixeddev/commandflow/annotated/CustomComponentParserTest.java diff --git a/Brigadier/pom.xml b/brigadier/pom.xml similarity index 94% rename from Brigadier/pom.xml rename to brigadier/pom.xml index e7e82608..429d7f3e 100644 --- a/Brigadier/pom.xml +++ b/brigadier/pom.xml @@ -27,8 +27,8 @@ me.fixeddev - commandflow-universal - ${version.universal} + commandflow-api + ${version.api} compile diff --git a/Brigadier/src/main/java/me/fixeddev/commandflow/brigadier/BrigadierCommandManager.java b/brigadier/src/main/java/me/fixeddev/commandflow/brigadier/BrigadierCommandManager.java similarity index 100% rename from Brigadier/src/main/java/me/fixeddev/commandflow/brigadier/BrigadierCommandManager.java rename to brigadier/src/main/java/me/fixeddev/commandflow/brigadier/BrigadierCommandManager.java diff --git a/Brigadier/src/main/java/me/fixeddev/commandflow/brigadier/BrigadierCommandWrapper.java b/brigadier/src/main/java/me/fixeddev/commandflow/brigadier/BrigadierCommandWrapper.java similarity index 100% rename from Brigadier/src/main/java/me/fixeddev/commandflow/brigadier/BrigadierCommandWrapper.java rename to brigadier/src/main/java/me/fixeddev/commandflow/brigadier/BrigadierCommandWrapper.java diff --git a/Brigadier/src/main/java/me/fixeddev/commandflow/brigadier/BrigadierDefaultTranslationProvider.java b/brigadier/src/main/java/me/fixeddev/commandflow/brigadier/BrigadierDefaultTranslationProvider.java similarity index 100% rename from Brigadier/src/main/java/me/fixeddev/commandflow/brigadier/BrigadierDefaultTranslationProvider.java rename to brigadier/src/main/java/me/fixeddev/commandflow/brigadier/BrigadierDefaultTranslationProvider.java diff --git a/Brigadier/src/main/java/me/fixeddev/commandflow/brigadier/CommandBrigadierConverter.java b/brigadier/src/main/java/me/fixeddev/commandflow/brigadier/CommandBrigadierConverter.java similarity index 100% rename from Brigadier/src/main/java/me/fixeddev/commandflow/brigadier/CommandBrigadierConverter.java rename to brigadier/src/main/java/me/fixeddev/commandflow/brigadier/CommandBrigadierConverter.java diff --git a/Brigadier/src/main/java/me/fixeddev/commandflow/brigadier/MultipleHeadNode.java b/brigadier/src/main/java/me/fixeddev/commandflow/brigadier/MultipleHeadNode.java similarity index 100% rename from Brigadier/src/main/java/me/fixeddev/commandflow/brigadier/MultipleHeadNode.java rename to brigadier/src/main/java/me/fixeddev/commandflow/brigadier/MultipleHeadNode.java diff --git a/Brigadier/src/main/java/me/fixeddev/commandflow/brigadier/MultipleHeadNodeBuilder.java b/brigadier/src/main/java/me/fixeddev/commandflow/brigadier/MultipleHeadNodeBuilder.java similarity index 100% rename from Brigadier/src/main/java/me/fixeddev/commandflow/brigadier/MultipleHeadNodeBuilder.java rename to brigadier/src/main/java/me/fixeddev/commandflow/brigadier/MultipleHeadNodeBuilder.java diff --git a/Brigadier/src/main/java/me/fixeddev/commandflow/brigadier/PermissionRequirement.java b/brigadier/src/main/java/me/fixeddev/commandflow/brigadier/PermissionRequirement.java similarity index 100% rename from Brigadier/src/main/java/me/fixeddev/commandflow/brigadier/PermissionRequirement.java rename to brigadier/src/main/java/me/fixeddev/commandflow/brigadier/PermissionRequirement.java diff --git a/Bukkit/pom.xml b/bukkit/pom.xml similarity index 91% rename from Bukkit/pom.xml rename to bukkit/pom.xml index 1f416ed3..e50ee13a 100644 --- a/Bukkit/pom.xml +++ b/bukkit/pom.xml @@ -30,8 +30,8 @@ me.fixeddev - commandflow-universal - ${version.universal} + commandflow-api + ${version.api} compile diff --git a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitAuthorizer.java b/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitAuthorizer.java similarity index 100% rename from Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitAuthorizer.java rename to bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitAuthorizer.java diff --git a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitCommandManager.java b/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitCommandManager.java similarity index 100% rename from Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitCommandManager.java rename to bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitCommandManager.java diff --git a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitCommandWrapper.java b/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitCommandWrapper.java similarity index 100% rename from Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitCommandWrapper.java rename to bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitCommandWrapper.java diff --git a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitDefaultTranslationProvider.java b/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitDefaultTranslationProvider.java similarity index 100% rename from Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitDefaultTranslationProvider.java rename to bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitDefaultTranslationProvider.java diff --git a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/MessageUtils.java b/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/MessageUtils.java similarity index 100% rename from Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/MessageUtils.java rename to bukkit/src/main/java/me/fixeddev/commandflow/bukkit/MessageUtils.java diff --git a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/annotation/Exact.java b/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/annotation/Exact.java similarity index 100% rename from Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/annotation/Exact.java rename to bukkit/src/main/java/me/fixeddev/commandflow/bukkit/annotation/Exact.java diff --git a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/annotation/PlayerOrSource.java b/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/annotation/PlayerOrSource.java similarity index 100% rename from Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/annotation/PlayerOrSource.java rename to bukkit/src/main/java/me/fixeddev/commandflow/bukkit/annotation/PlayerOrSource.java diff --git a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/annotation/Sender.java b/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/annotation/Sender.java similarity index 100% rename from Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/annotation/Sender.java rename to bukkit/src/main/java/me/fixeddev/commandflow/bukkit/annotation/Sender.java diff --git a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/BukkitModule.java b/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/BukkitModule.java similarity index 100% rename from Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/BukkitModule.java rename to bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/BukkitModule.java diff --git a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/CommandSenderFactory.java b/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/CommandSenderFactory.java similarity index 100% rename from Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/CommandSenderFactory.java rename to bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/CommandSenderFactory.java diff --git a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/GameModeFactory.java b/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/GameModeFactory.java similarity index 100% rename from Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/GameModeFactory.java rename to bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/GameModeFactory.java diff --git a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/OfflinePlayerPartFactory.java b/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/OfflinePlayerPartFactory.java similarity index 100% rename from Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/OfflinePlayerPartFactory.java rename to bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/OfflinePlayerPartFactory.java diff --git a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/PlayerPartFactory.java b/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/PlayerPartFactory.java similarity index 100% rename from Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/PlayerPartFactory.java rename to bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/PlayerPartFactory.java diff --git a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/PlayerSenderFactory.java b/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/PlayerSenderFactory.java similarity index 100% rename from Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/PlayerSenderFactory.java rename to bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/PlayerSenderFactory.java diff --git a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/WorldFactory.java b/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/WorldFactory.java similarity index 100% rename from Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/WorldFactory.java rename to bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/WorldFactory.java diff --git a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/BukkitParts.java b/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/BukkitParts.java similarity index 100% rename from Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/BukkitParts.java rename to bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/BukkitParts.java diff --git a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/CommandSenderPart.java b/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/CommandSenderPart.java similarity index 100% rename from Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/CommandSenderPart.java rename to bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/CommandSenderPart.java diff --git a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/GameModePart.java b/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/GameModePart.java similarity index 100% rename from Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/GameModePart.java rename to bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/GameModePart.java diff --git a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/OfflinePlayerPart.java b/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/OfflinePlayerPart.java similarity index 100% rename from Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/OfflinePlayerPart.java rename to bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/OfflinePlayerPart.java diff --git a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/PlayerPart.java b/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/PlayerPart.java similarity index 100% rename from Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/PlayerPart.java rename to bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/PlayerPart.java diff --git a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/PlayerSenderPart.java b/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/PlayerSenderPart.java similarity index 100% rename from Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/PlayerSenderPart.java rename to bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/PlayerSenderPart.java diff --git a/Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/WorldPart.java b/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/WorldPart.java similarity index 100% rename from Bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/WorldPart.java rename to bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/WorldPart.java diff --git a/Bungee/pom.xml b/bungee/pom.xml similarity index 90% rename from Bungee/pom.xml rename to bungee/pom.xml index f73e62f6..dc6551ef 100644 --- a/Bungee/pom.xml +++ b/bungee/pom.xml @@ -22,8 +22,8 @@ me.fixeddev - commandflow-universal - ${version.universal} + commandflow-api + ${version.api} compile diff --git a/Bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeAuthorizer.java b/bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeAuthorizer.java similarity index 100% rename from Bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeAuthorizer.java rename to bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeAuthorizer.java diff --git a/Bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeCommandManager.java b/bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeCommandManager.java similarity index 100% rename from Bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeCommandManager.java rename to bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeCommandManager.java diff --git a/Bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeCommandWrapper.java b/bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeCommandWrapper.java similarity index 100% rename from Bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeCommandWrapper.java rename to bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeCommandWrapper.java diff --git a/Bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeDefaultTranslationProvider.java b/bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeDefaultTranslationProvider.java similarity index 100% rename from Bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeDefaultTranslationProvider.java rename to bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeDefaultTranslationProvider.java diff --git a/Bungee/src/main/java/me/fixeddev/commandflow/bungee/MessageUtils.java b/bungee/src/main/java/me/fixeddev/commandflow/bungee/MessageUtils.java similarity index 100% rename from Bungee/src/main/java/me/fixeddev/commandflow/bungee/MessageUtils.java rename to bungee/src/main/java/me/fixeddev/commandflow/bungee/MessageUtils.java diff --git a/Bungee/src/main/java/me/fixeddev/commandflow/bungee/annotation/ProxiedPlayerOrSource.java b/bungee/src/main/java/me/fixeddev/commandflow/bungee/annotation/ProxiedPlayerOrSource.java similarity index 100% rename from Bungee/src/main/java/me/fixeddev/commandflow/bungee/annotation/ProxiedPlayerOrSource.java rename to bungee/src/main/java/me/fixeddev/commandflow/bungee/annotation/ProxiedPlayerOrSource.java diff --git a/Bungee/src/main/java/me/fixeddev/commandflow/bungee/annotation/Sender.java b/bungee/src/main/java/me/fixeddev/commandflow/bungee/annotation/Sender.java similarity index 100% rename from Bungee/src/main/java/me/fixeddev/commandflow/bungee/annotation/Sender.java rename to bungee/src/main/java/me/fixeddev/commandflow/bungee/annotation/Sender.java diff --git a/Bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/BungeeModule.java b/bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/BungeeModule.java similarity index 100% rename from Bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/BungeeModule.java rename to bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/BungeeModule.java diff --git a/Bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/CommandSenderPartFactory.java b/bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/CommandSenderPartFactory.java similarity index 100% rename from Bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/CommandSenderPartFactory.java rename to bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/CommandSenderPartFactory.java diff --git a/Bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/ProxiedPlayerPartFactory.java b/bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/ProxiedPlayerPartFactory.java similarity index 100% rename from Bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/ProxiedPlayerPartFactory.java rename to bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/ProxiedPlayerPartFactory.java diff --git a/Bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/ProxiedPlayerSenderPartFactory.java b/bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/ProxiedPlayerSenderPartFactory.java similarity index 100% rename from Bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/ProxiedPlayerSenderPartFactory.java rename to bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/ProxiedPlayerSenderPartFactory.java diff --git a/Bungee/src/main/java/me/fixeddev/commandflow/bungee/part/CommandSenderPart.java b/bungee/src/main/java/me/fixeddev/commandflow/bungee/part/CommandSenderPart.java similarity index 100% rename from Bungee/src/main/java/me/fixeddev/commandflow/bungee/part/CommandSenderPart.java rename to bungee/src/main/java/me/fixeddev/commandflow/bungee/part/CommandSenderPart.java diff --git a/Bungee/src/main/java/me/fixeddev/commandflow/bungee/part/ProxiedPlayerPart.java b/bungee/src/main/java/me/fixeddev/commandflow/bungee/part/ProxiedPlayerPart.java similarity index 100% rename from Bungee/src/main/java/me/fixeddev/commandflow/bungee/part/ProxiedPlayerPart.java rename to bungee/src/main/java/me/fixeddev/commandflow/bungee/part/ProxiedPlayerPart.java diff --git a/Bungee/src/main/java/me/fixeddev/commandflow/bungee/part/ProxiedPlayerSenderPart.java b/bungee/src/main/java/me/fixeddev/commandflow/bungee/part/ProxiedPlayerSenderPart.java similarity index 100% rename from Bungee/src/main/java/me/fixeddev/commandflow/bungee/part/ProxiedPlayerSenderPart.java rename to bungee/src/main/java/me/fixeddev/commandflow/bungee/part/ProxiedPlayerSenderPart.java diff --git a/Discord/pom.xml b/discord/pom.xml similarity index 90% rename from Discord/pom.xml rename to discord/pom.xml index 59e048be..e72cb1ed 100644 --- a/Discord/pom.xml +++ b/discord/pom.xml @@ -29,8 +29,8 @@ me.fixeddev - commandflow-universal - ${version.universal} + commandflow-api + ${version.api} compile diff --git a/Discord/src/main/java/me/fixeddev/commandflow/discord/DiscordAuthorizer.java b/discord/src/main/java/me/fixeddev/commandflow/discord/DiscordAuthorizer.java similarity index 100% rename from Discord/src/main/java/me/fixeddev/commandflow/discord/DiscordAuthorizer.java rename to discord/src/main/java/me/fixeddev/commandflow/discord/DiscordAuthorizer.java diff --git a/Discord/src/main/java/me/fixeddev/commandflow/discord/DiscordCommandManager.java b/discord/src/main/java/me/fixeddev/commandflow/discord/DiscordCommandManager.java similarity index 100% rename from Discord/src/main/java/me/fixeddev/commandflow/discord/DiscordCommandManager.java rename to discord/src/main/java/me/fixeddev/commandflow/discord/DiscordCommandManager.java diff --git a/Discord/src/main/java/me/fixeddev/commandflow/discord/DiscordDefaultTranslationProvider.java b/discord/src/main/java/me/fixeddev/commandflow/discord/DiscordDefaultTranslationProvider.java similarity index 100% rename from Discord/src/main/java/me/fixeddev/commandflow/discord/DiscordDefaultTranslationProvider.java rename to discord/src/main/java/me/fixeddev/commandflow/discord/DiscordDefaultTranslationProvider.java diff --git a/Discord/src/main/java/me/fixeddev/commandflow/discord/MessageListener.java b/discord/src/main/java/me/fixeddev/commandflow/discord/MessageListener.java similarity index 100% rename from Discord/src/main/java/me/fixeddev/commandflow/discord/MessageListener.java rename to discord/src/main/java/me/fixeddev/commandflow/discord/MessageListener.java diff --git a/Discord/src/main/java/me/fixeddev/commandflow/discord/annotation/Sender.java b/discord/src/main/java/me/fixeddev/commandflow/discord/annotation/Sender.java similarity index 100% rename from Discord/src/main/java/me/fixeddev/commandflow/discord/annotation/Sender.java rename to discord/src/main/java/me/fixeddev/commandflow/discord/annotation/Sender.java diff --git a/Discord/src/main/java/me/fixeddev/commandflow/discord/factory/DiscordModule.java b/discord/src/main/java/me/fixeddev/commandflow/discord/factory/DiscordModule.java similarity index 100% rename from Discord/src/main/java/me/fixeddev/commandflow/discord/factory/DiscordModule.java rename to discord/src/main/java/me/fixeddev/commandflow/discord/factory/DiscordModule.java diff --git a/Discord/src/main/java/me/fixeddev/commandflow/discord/factory/MemberPartFactory.java b/discord/src/main/java/me/fixeddev/commandflow/discord/factory/MemberPartFactory.java similarity index 100% rename from Discord/src/main/java/me/fixeddev/commandflow/discord/factory/MemberPartFactory.java rename to discord/src/main/java/me/fixeddev/commandflow/discord/factory/MemberPartFactory.java diff --git a/Discord/src/main/java/me/fixeddev/commandflow/discord/factory/MemberSenderPartFactory.java b/discord/src/main/java/me/fixeddev/commandflow/discord/factory/MemberSenderPartFactory.java similarity index 100% rename from Discord/src/main/java/me/fixeddev/commandflow/discord/factory/MemberSenderPartFactory.java rename to discord/src/main/java/me/fixeddev/commandflow/discord/factory/MemberSenderPartFactory.java diff --git a/Discord/src/main/java/me/fixeddev/commandflow/discord/factory/MessagePartFactory.java b/discord/src/main/java/me/fixeddev/commandflow/discord/factory/MessagePartFactory.java similarity index 100% rename from Discord/src/main/java/me/fixeddev/commandflow/discord/factory/MessagePartFactory.java rename to discord/src/main/java/me/fixeddev/commandflow/discord/factory/MessagePartFactory.java diff --git a/Discord/src/main/java/me/fixeddev/commandflow/discord/factory/TextChannelPartFactory.java b/discord/src/main/java/me/fixeddev/commandflow/discord/factory/TextChannelPartFactory.java similarity index 100% rename from Discord/src/main/java/me/fixeddev/commandflow/discord/factory/TextChannelPartFactory.java rename to discord/src/main/java/me/fixeddev/commandflow/discord/factory/TextChannelPartFactory.java diff --git a/Discord/src/main/java/me/fixeddev/commandflow/discord/factory/UserPartFactory.java b/discord/src/main/java/me/fixeddev/commandflow/discord/factory/UserPartFactory.java similarity index 100% rename from Discord/src/main/java/me/fixeddev/commandflow/discord/factory/UserPartFactory.java rename to discord/src/main/java/me/fixeddev/commandflow/discord/factory/UserPartFactory.java diff --git a/Discord/src/main/java/me/fixeddev/commandflow/discord/factory/UserSenderPartFactory.java b/discord/src/main/java/me/fixeddev/commandflow/discord/factory/UserSenderPartFactory.java similarity index 100% rename from Discord/src/main/java/me/fixeddev/commandflow/discord/factory/UserSenderPartFactory.java rename to discord/src/main/java/me/fixeddev/commandflow/discord/factory/UserSenderPartFactory.java diff --git a/Discord/src/main/java/me/fixeddev/commandflow/discord/part/MemberPart.java b/discord/src/main/java/me/fixeddev/commandflow/discord/part/MemberPart.java similarity index 100% rename from Discord/src/main/java/me/fixeddev/commandflow/discord/part/MemberPart.java rename to discord/src/main/java/me/fixeddev/commandflow/discord/part/MemberPart.java diff --git a/Discord/src/main/java/me/fixeddev/commandflow/discord/part/MemberSenderPart.java b/discord/src/main/java/me/fixeddev/commandflow/discord/part/MemberSenderPart.java similarity index 100% rename from Discord/src/main/java/me/fixeddev/commandflow/discord/part/MemberSenderPart.java rename to discord/src/main/java/me/fixeddev/commandflow/discord/part/MemberSenderPart.java diff --git a/Discord/src/main/java/me/fixeddev/commandflow/discord/part/MessagePart.java b/discord/src/main/java/me/fixeddev/commandflow/discord/part/MessagePart.java similarity index 100% rename from Discord/src/main/java/me/fixeddev/commandflow/discord/part/MessagePart.java rename to discord/src/main/java/me/fixeddev/commandflow/discord/part/MessagePart.java diff --git a/Discord/src/main/java/me/fixeddev/commandflow/discord/part/TextChannelPart.java b/discord/src/main/java/me/fixeddev/commandflow/discord/part/TextChannelPart.java similarity index 100% rename from Discord/src/main/java/me/fixeddev/commandflow/discord/part/TextChannelPart.java rename to discord/src/main/java/me/fixeddev/commandflow/discord/part/TextChannelPart.java diff --git a/Discord/src/main/java/me/fixeddev/commandflow/discord/part/UserPart.java b/discord/src/main/java/me/fixeddev/commandflow/discord/part/UserPart.java similarity index 100% rename from Discord/src/main/java/me/fixeddev/commandflow/discord/part/UserPart.java rename to discord/src/main/java/me/fixeddev/commandflow/discord/part/UserPart.java diff --git a/Discord/src/main/java/me/fixeddev/commandflow/discord/part/UserSenderPart.java b/discord/src/main/java/me/fixeddev/commandflow/discord/part/UserSenderPart.java similarity index 100% rename from Discord/src/main/java/me/fixeddev/commandflow/discord/part/UserSenderPart.java rename to discord/src/main/java/me/fixeddev/commandflow/discord/part/UserSenderPart.java diff --git a/Discord/src/main/java/me/fixeddev/commandflow/discord/utils/ArgumentsUtils.java b/discord/src/main/java/me/fixeddev/commandflow/discord/utils/ArgumentsUtils.java similarity index 100% rename from Discord/src/main/java/me/fixeddev/commandflow/discord/utils/ArgumentsUtils.java rename to discord/src/main/java/me/fixeddev/commandflow/discord/utils/ArgumentsUtils.java diff --git a/Discord/src/main/java/me/fixeddev/commandflow/discord/utils/MessageUtils.java b/discord/src/main/java/me/fixeddev/commandflow/discord/utils/MessageUtils.java similarity index 100% rename from Discord/src/main/java/me/fixeddev/commandflow/discord/utils/MessageUtils.java rename to discord/src/main/java/me/fixeddev/commandflow/discord/utils/MessageUtils.java diff --git a/pom.xml b/pom.xml index b94cef60..b1624ed4 100644 --- a/pom.xml +++ b/pom.xml @@ -8,12 +8,12 @@ commandflow 0.6.0 - Universal - Bukkit - Discord - Bungee - Velocity - Brigadier + api + bukkit + discord + bungee + velocity + brigadier pom @@ -43,8 +43,7 @@ UTF-8 - 0.6.0 - 0.6.0 + 0.6.0 0.6.0 0.6.0 0.6.0 diff --git a/Velocity/pom.xml b/velocity/pom.xml similarity index 90% rename from Velocity/pom.xml rename to velocity/pom.xml index 8a2d24d1..c9161bd5 100644 --- a/Velocity/pom.xml +++ b/velocity/pom.xml @@ -22,8 +22,8 @@ me.fixeddev - commandflow-universal - ${version.universal} + commandflow-api + ${version.api} compile diff --git a/Velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityAuthorizer.java b/velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityAuthorizer.java similarity index 100% rename from Velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityAuthorizer.java rename to velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityAuthorizer.java diff --git a/Velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityCommandManager.java b/velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityCommandManager.java similarity index 100% rename from Velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityCommandManager.java rename to velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityCommandManager.java diff --git a/Velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityCommandWrapper.java b/velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityCommandWrapper.java similarity index 100% rename from Velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityCommandWrapper.java rename to velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityCommandWrapper.java diff --git a/Velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityDefaultTranslationProvider.java b/velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityDefaultTranslationProvider.java similarity index 100% rename from Velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityDefaultTranslationProvider.java rename to velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityDefaultTranslationProvider.java diff --git a/Velocity/src/main/java/me/fixeddev/commandflow/velocity/annotation/PlayerOrSource.java b/velocity/src/main/java/me/fixeddev/commandflow/velocity/annotation/PlayerOrSource.java similarity index 100% rename from Velocity/src/main/java/me/fixeddev/commandflow/velocity/annotation/PlayerOrSource.java rename to velocity/src/main/java/me/fixeddev/commandflow/velocity/annotation/PlayerOrSource.java diff --git a/Velocity/src/main/java/me/fixeddev/commandflow/velocity/annotation/Sender.java b/velocity/src/main/java/me/fixeddev/commandflow/velocity/annotation/Sender.java similarity index 100% rename from Velocity/src/main/java/me/fixeddev/commandflow/velocity/annotation/Sender.java rename to velocity/src/main/java/me/fixeddev/commandflow/velocity/annotation/Sender.java diff --git a/Velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/CommandSourcePartFactory.java b/velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/CommandSourcePartFactory.java similarity index 100% rename from Velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/CommandSourcePartFactory.java rename to velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/CommandSourcePartFactory.java diff --git a/Velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/PlayerPartFactory.java b/velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/PlayerPartFactory.java similarity index 100% rename from Velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/PlayerPartFactory.java rename to velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/PlayerPartFactory.java diff --git a/Velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/PlayerSenderPartFactory.java b/velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/PlayerSenderPartFactory.java similarity index 100% rename from Velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/PlayerSenderPartFactory.java rename to velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/PlayerSenderPartFactory.java diff --git a/Velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/VelocityModule.java b/velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/VelocityModule.java similarity index 100% rename from Velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/VelocityModule.java rename to velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/VelocityModule.java diff --git a/Velocity/src/main/java/me/fixeddev/commandflow/velocity/part/CommandSenderPart.java b/velocity/src/main/java/me/fixeddev/commandflow/velocity/part/CommandSenderPart.java similarity index 100% rename from Velocity/src/main/java/me/fixeddev/commandflow/velocity/part/CommandSenderPart.java rename to velocity/src/main/java/me/fixeddev/commandflow/velocity/part/CommandSenderPart.java diff --git a/Velocity/src/main/java/me/fixeddev/commandflow/velocity/part/PlayerPart.java b/velocity/src/main/java/me/fixeddev/commandflow/velocity/part/PlayerPart.java similarity index 100% rename from Velocity/src/main/java/me/fixeddev/commandflow/velocity/part/PlayerPart.java rename to velocity/src/main/java/me/fixeddev/commandflow/velocity/part/PlayerPart.java diff --git a/Velocity/src/main/java/me/fixeddev/commandflow/velocity/part/PlayerSenderPart.java b/velocity/src/main/java/me/fixeddev/commandflow/velocity/part/PlayerSenderPart.java similarity index 100% rename from Velocity/src/main/java/me/fixeddev/commandflow/velocity/part/PlayerSenderPart.java rename to velocity/src/main/java/me/fixeddev/commandflow/velocity/part/PlayerSenderPart.java From d79ae44ba49605affcb1c7acca5816aae179f96f Mon Sep 17 00:00:00 2001 From: yusshu Date: Sun, 29 Oct 2023 19:11:56 -0500 Subject: [PATCH 03/31] =?UTF-8?q?build:=20make=20all=20modules=20use=20the?= =?UTF-8?q?=20same=20version=20as=20parent,=20defined=20by=20the=20=C3=82'?= =?UTF-8?q?revision'=20property?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://maven.apache.org/maven-ci-friendly.html --- api/pom.xml | 6 ++---- brigadier/pom.xml | 10 ++++------ bukkit/pom.xml | 7 ++----- bungee/pom.xml | 9 ++++----- discord/pom.xml | 10 ++++------ pom.xml | 10 ++-------- velocity/pom.xml | 9 ++++----- 7 files changed, 22 insertions(+), 39 deletions(-) diff --git a/api/pom.xml b/api/pom.xml index 8e71c2c4..15d3142e 100644 --- a/api/pom.xml +++ b/api/pom.xml @@ -2,14 +2,12 @@ + 4.0.0 commandflow me.fixeddev - 0.6.0 + ${revision} - 4.0.0 - - ${version.api} commandflow-api jar diff --git a/brigadier/pom.xml b/brigadier/pom.xml index 429d7f3e..e4184aeb 100644 --- a/brigadier/pom.xml +++ b/brigadier/pom.xml @@ -2,14 +2,12 @@ + 4.0.0 commandflow me.fixeddev - 0.6.0 + ${revision} - 4.0.0 - - ${version.brigadier} commandflow-brigadier jar @@ -28,13 +26,13 @@ me.fixeddev commandflow-api - ${version.api} + ${revision} compile me.fixeddev commandflow-bukkit - ${version.bukkit} + ${project.version} compile diff --git a/bukkit/pom.xml b/bukkit/pom.xml index e50ee13a..4dedb035 100644 --- a/bukkit/pom.xml +++ b/bukkit/pom.xml @@ -3,14 +3,11 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - commandflow me.fixeddev - 0.6.0 + ${revision} - - ${version.bukkit} commandflow-bukkit jar @@ -31,7 +28,7 @@ me.fixeddev commandflow-api - ${version.api} + ${project.version} compile diff --git a/bungee/pom.xml b/bungee/pom.xml index dc6551ef..f02d773d 100644 --- a/bungee/pom.xml +++ b/bungee/pom.xml @@ -2,15 +2,14 @@ + 4.0.0 me.fixeddev commandflow - 0.6.0 + ${revision} - 4.0.0 - - ${version.bungee} commandflow-bungee + jar @@ -23,7 +22,7 @@ me.fixeddev commandflow-api - ${version.api} + ${project.version} compile diff --git a/discord/pom.xml b/discord/pom.xml index e72cb1ed..d7524c81 100644 --- a/discord/pom.xml +++ b/discord/pom.xml @@ -2,14 +2,12 @@ + 4.0.0 - commandflow me.fixeddev - 0.6.0 + commandflow + ${revision} - 4.0.0 - - ${version.discord} commandflow-discord jar @@ -30,7 +28,7 @@ me.fixeddev commandflow-api - ${version.api} + ${project.version} compile diff --git a/pom.xml b/pom.xml index b1624ed4..0f0fd525 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ me.fixeddev commandflow - 0.6.0 + ${revision} api bukkit @@ -42,13 +42,7 @@ UTF-8 - - 0.6.0 - 0.6.0 - 0.6.0 - 0.6.0 - 0.6.0 - 0.6.0 + 0.6.0 diff --git a/velocity/pom.xml b/velocity/pom.xml index c9161bd5..25558dfd 100644 --- a/velocity/pom.xml +++ b/velocity/pom.xml @@ -2,15 +2,14 @@ + 4.0.0 me.fixeddev commandflow - 0.6.0 + ${revision} - 4.0.0 - - ${version.velocity} commandflow-velocity + jar @@ -23,7 +22,7 @@ me.fixeddev commandflow-api - ${version.api} + ${project.version} compile From 2e283fd8ab001590695190d93f94c524c2d76118 Mon Sep 17 00:00:00 2001 From: yusshu Date: Sun, 29 Oct 2023 19:16:30 -0500 Subject: [PATCH 04/31] *: change groupId from me.fixeddev to team.unnamed --- api/pom.xml | 2 +- brigadier/pom.xml | 6 +++--- bukkit/pom.xml | 4 ++-- bungee/pom.xml | 4 ++-- discord/pom.xml | 4 ++-- docs/installation.md | 8 ++++---- docs/platforms/bukkit.md | 6 +++--- pom.xml | 2 +- velocity/pom.xml | 4 ++-- 9 files changed, 20 insertions(+), 20 deletions(-) diff --git a/api/pom.xml b/api/pom.xml index 15d3142e..6c73bb59 100644 --- a/api/pom.xml +++ b/api/pom.xml @@ -4,8 +4,8 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 + team.unnamed commandflow - me.fixeddev ${revision} commandflow-api diff --git a/brigadier/pom.xml b/brigadier/pom.xml index e4184aeb..023df43b 100644 --- a/brigadier/pom.xml +++ b/brigadier/pom.xml @@ -4,8 +4,8 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 + team.unnamed commandflow - me.fixeddev ${revision} commandflow-brigadier @@ -24,13 +24,13 @@ - me.fixeddev + team.unnamed commandflow-api ${revision} compile - me.fixeddev + team.unnamed commandflow-bukkit ${project.version} compile diff --git a/bukkit/pom.xml b/bukkit/pom.xml index 4dedb035..4a038003 100644 --- a/bukkit/pom.xml +++ b/bukkit/pom.xml @@ -4,8 +4,8 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 + team.unnamed commandflow - me.fixeddev ${revision} commandflow-bukkit @@ -26,7 +26,7 @@ provided - me.fixeddev + team.unnamed commandflow-api ${project.version} compile diff --git a/bungee/pom.xml b/bungee/pom.xml index f02d773d..fb30eea1 100644 --- a/bungee/pom.xml +++ b/bungee/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - me.fixeddev + team.unnamed commandflow ${revision} @@ -20,7 +20,7 @@ - me.fixeddev + team.unnamed commandflow-api ${project.version} compile diff --git a/discord/pom.xml b/discord/pom.xml index d7524c81..63d3c50c 100644 --- a/discord/pom.xml +++ b/discord/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - me.fixeddev + team.unnamed commandflow ${revision} @@ -26,7 +26,7 @@ 4.2.0_208 - me.fixeddev + team.unnamed commandflow-api ${project.version} compile diff --git a/docs/installation.md b/docs/installation.md index 1c21ea84..8b4fc1bd 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -11,7 +11,7 @@ repositories { ``` ```kotlin dependencies { - implementation("me.fixeddev:commandflow-universal:%%REPLACE_latestReleaseOrSnapshot{me.fixeddev:commandflow-universal}%%") + implementation("team.unnamed:commandflow-api:%%REPLACE_latestReleaseOrSnapshot{team.unnamed:commandflow-api}%%") } ``` @@ -24,8 +24,8 @@ dependencies { ``` ```xml - me.fixeddev - commandflow-universal - %%REPLACE_latestReleaseOrSnapshot{me.fixeddev:commandflow-universal}%% + team.unnamed + commandflow-api + %%REPLACE_latestReleaseOrSnapshot{team.unnamed:commandflow-api}%% ``` diff --git a/docs/platforms/bukkit.md b/docs/platforms/bukkit.md index fb5a46b2..1c5e9138 100644 --- a/docs/platforms/bukkit.md +++ b/docs/platforms/bukkit.md @@ -8,7 +8,7 @@ subproject that can be included in your project by doing the following: ```kotlin dependencies { // ... - implementation("me.fixeddev:commandflow-bukkit:%%REPLACE_latestReleaseOrSnapshot{me.fixeddev:commandflow-bukkit}%%") + implementation("team.unnamed:commandflow-bukkit:%%REPLACE_latestReleaseOrSnapshot{team.unnamed:commandflow-bukkit}%%") } ``` @@ -17,9 +17,9 @@ dependencies { - me.fixeddev + team.unnamed commandflow-bukkit - %%REPLACE_latestReleaseOrSnapshot{me.fixeddev:commandflow-bukkit}%% + %%REPLACE_latestReleaseOrSnapshot{team.unnamed:commandflow-bukkit}%% ``` diff --git a/pom.xml b/pom.xml index 0f0fd525..056b67f2 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - me.fixeddev + team.unnamed commandflow ${revision} diff --git a/velocity/pom.xml b/velocity/pom.xml index 25558dfd..4638be13 100644 --- a/velocity/pom.xml +++ b/velocity/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - me.fixeddev + team.unnamed commandflow ${revision} @@ -20,7 +20,7 @@ - me.fixeddev + team.unnamed commandflow-api ${project.version} compile From b7857c89d581c34ad691cd0d48793c2dae759c45 Mon Sep 17 00:00:00 2001 From: yusshu Date: Mon, 30 Oct 2023 12:18:36 -0500 Subject: [PATCH 05/31] refactor!: move packages from me.fixeddev to team.unnamed --- .../builder/AnnotatedCommandBuilder.java | 23 -------- .../part/visitor/CommandPartVisitor.java | 21 ------- .../unnamed}/commandflow/Authorizer.java | 2 +- .../unnamed}/commandflow/CommandContext.java | 6 +- .../unnamed}/commandflow/CommandManager.java | 21 +++---- .../unnamed}/commandflow/ContextSnapshot.java | 6 +- .../unnamed}/commandflow/ErrorHandler.java | 2 +- .../unnamed}/commandflow/Namespace.java | 2 +- .../unnamed}/commandflow/NamespaceImpl.java | 2 +- .../unnamed}/commandflow/ParseResult.java | 4 +- .../commandflow/SimpleCommandContext.java | 6 +- .../commandflow/SimpleCommandManager.java | 48 ++++++++-------- .../commandflow/SimpleErrorHandler.java | 2 +- .../AnnotatedCommandTreeBuilder.java | 19 ++++--- .../AnnotatedCommandTreeBuilderImpl.java | 33 +++++------ .../commandflow/annotated/CommandClass.java | 2 +- .../annotated/ReflectionInstanceCreator.java | 2 +- .../ReflectionSubCommandHandler.java | 10 ++-- .../annotated/SubCommandInstanceCreator.java | 2 +- .../annotated/action/ReflectiveAction.java | 10 ++-- .../annotated/action/ValueGetter.java | 8 +-- .../annotated/annotation/ArgOrSub.java | 2 +- .../annotated/annotation/Command.java | 2 +- .../annotated/annotation/ConsumeAll.java | 2 +- .../annotated/annotation/Flag.java | 2 +- .../annotated/annotation/Handler.java | 2 +- .../annotated/annotation/Limit.java | 2 +- .../annotated/annotation/Named.java | 2 +- .../annotated/annotation/OptArg.java | 6 +- .../annotated/annotation/ParentArg.java | 2 +- .../annotated/annotation/Range.java | 2 +- .../annotated/annotation/Required.java | 2 +- .../annotated/annotation/Rewrites.java | 2 +- .../annotated/annotation/Strict.java | 2 +- .../annotation/SubCommandClasses.java | 4 +- .../annotated/annotation/Suggestions.java | 2 +- .../annotated/annotation/Switch.java | 2 +- .../annotated/annotation/Text.java | 2 +- .../annotated/annotation/Usage.java | 2 +- .../builder/AnnotatedCommandBuilder.java | 26 +++++++++ .../builder/AnnotatedCommandBuilderImpl.java | 4 +- .../annotated/builder/Buildable.java | 4 +- .../annotated/builder/CommandActionNode.java | 6 +- .../builder/CommandBuilderNodesImpl.java | 40 ++++++------- .../annotated/builder/CommandDataNode.java | 19 ++++--- .../builder/CommandModifiersNode.java | 16 +++--- .../annotated/builder/CommandPartsNode.java | 22 +++++--- .../annotated/builder/SubCommandsNode.java | 6 +- .../modifier/CommandModifierFactory.java | 6 +- .../annotated/part/AbstractModule.java | 4 +- .../annotated/part/DelegatePartModifier.java | 4 +- .../commandflow/annotated/part/Key.java | 2 +- .../commandflow/annotated/part/Module.java | 2 +- .../annotated/part/PartFactory.java | 4 +- .../annotated/part/PartInjector.java | 14 ++--- .../annotated/part/PartModifier.java | 4 +- .../annotated/part/SimplePartInjector.java | 4 +- .../part/defaults/DefaultsModule.java | 37 ++++++------ .../factory/ArgumentStackPartFactory.java | 8 +-- .../defaults/factory/BooleanPartFactory.java | 8 +-- .../part/defaults/factory/ContextFactory.java | 8 +-- .../defaults/factory/DoublePartFactory.java | 10 ++-- .../defaults/factory/EnumPartFactory.java | 8 +-- .../defaults/factory/FloatPartFactory.java | 10 ++-- .../defaults/factory/IntegerPartFactory.java | 10 ++-- .../defaults/factory/LongPartFactory.java | 12 ++-- .../defaults/factory/StringPartFactory.java | 10 ++-- .../factory/StringTextPartFactory.java | 8 +-- .../defaults/factory/SwitchPartFactory.java | 10 ++-- .../part/defaults/modifier/LimitModifier.java | 10 ++-- .../defaults/modifier/OptionalModifier.java | 13 ++--- .../defaults/modifier/RewritesModifier.java | 10 ++-- .../modifier/SuggestionsModifier.java | 10 ++-- .../defaults/modifier/ValueFlagModifier.java | 10 ++-- .../unnamed}/commandflow/command/Action.java | 9 +-- .../unnamed}/commandflow/command/Command.java | 14 ++--- .../commandflow/command/SimpleCommand.java | 10 ++-- .../command/modifiers/CommandModifier.java | 6 +- .../command/modifiers/CommandModifiers.java | 10 +--- .../modifiers/FallbackCommandModifiers.java | 2 +- .../command/modifiers/ModifierPhase.java | 2 +- .../command/modifiers/ModifierUtils.java | 2 +- .../modifiers/SequentialCommandModifier.java | 6 +- .../modifiers/SimpleCommandModifiers.java | 6 +- .../exception/ArgumentException.java | 6 +- .../exception/ArgumentParseException.java | 2 +- .../exception/CommandException.java | 4 +- .../commandflow/exception/CommandUsage.java | 2 +- .../exception/InvalidSubCommandException.java | 2 +- .../exception/NoMoreArgumentsException.java | 2 +- .../exception/NoPermissionsException.java | 2 +- .../exception/StopParseException.java | 2 +- .../commandflow/executor/DefaultExecutor.java | 10 ++-- .../commandflow/executor/Executor.java | 13 +++-- .../commandflow/input/InputTokenizer.java | 2 +- .../input/QuotedSpaceTokenizer.java | 2 +- .../input/StringSpaceTokenizer.java | 2 +- .../commandflow/part/ArgumentPart.java | 12 ++-- .../commandflow/part/CommandPart.java | 10 ++-- .../unnamed}/commandflow/part/Parts.java | 56 +++++++++---------- .../commandflow/part/PartsWrapper.java | 4 +- .../commandflow/part/SinglePartWrapper.java | 4 +- .../part/defaults/ArgumentRewriterPart.java | 12 ++-- .../part/defaults/ArgumentStackPart.java | 18 +++--- .../part/defaults/BooleanPart.java | 12 ++-- .../part/defaults/ContextPart.java | 10 ++-- .../commandflow/part/defaults/DoublePart.java | 14 ++--- .../commandflow/part/defaults/EmptyPart.java | 10 ++-- .../commandflow/part/defaults/EnumPart.java | 12 ++-- .../part/defaults/FirstMatchPart.java | 20 +++---- .../commandflow/part/defaults/FloatPart.java | 10 ++-- .../part/defaults/IntegerPart.java | 10 ++-- .../part/defaults/LimitingPart.java | 12 ++-- .../commandflow/part/defaults/LongPart.java | 10 ++-- .../part/defaults/OptionalPart.java | 26 ++++----- .../part/defaults/PrimitivePart.java | 8 +-- .../part/defaults/SequentialCommandPart.java | 12 ++-- .../commandflow/part/defaults/StringPart.java | 10 ++-- .../part/defaults/SubCommandPart.java | 41 +++++++------- .../defaults/SuggestionsModifierPart.java | 10 ++-- .../commandflow/part/defaults/SwitchPart.java | 12 ++-- .../part/defaults/ValueFlagPart.java | 18 +++--- .../part/visitor/CommandPartVisitor.java | 21 +++++++ .../visitor/UnwrappedCommandPartVisitor.java | 8 +-- .../commandflow/stack/ArgumentStack.java | 6 +- .../stack/SimpleArgumentStack.java | 6 +- .../commandflow/stack/StackSnapshot.java | 2 +- .../ComponentRendererTranslator.java | 5 +- .../DefaultMapTranslationProvider.java | 4 +- .../translator/DefaultTranslator.java | 4 +- .../translator/TranslationProvider.java | 4 +- .../commandflow/translator/Translator.java | 4 +- .../usage/DefaultUsageBuilder.java | 6 +- .../commandflow/usage/UsageBuilder.java | 7 ++- .../commandflow/InputTokenizerTest.java | 6 +- .../commandflow/ParameterizedPartTest.java | 23 ++++---- .../annotated/CustomComponentParserTest.java | 12 ++-- .../brigadier/BrigadierCommandManager.java | 21 ++++--- .../brigadier/BrigadierCommandWrapper.java | 10 ++-- .../BrigadierDefaultTranslationProvider.java | 4 +- .../brigadier/CommandBrigadierConverter.java | 50 ++++++++--------- .../brigadier/MultipleHeadNode.java | 2 +- .../brigadier/MultipleHeadNodeBuilder.java | 2 +- .../brigadier/PermissionRequirement.java | 8 +-- .../commandflow/bukkit/BukkitAuthorizer.java | 6 +- .../bukkit/BukkitCommandManager.java | 44 +++++++-------- .../bukkit/BukkitCommandWrapper.java | 18 +++--- .../BukkitDefaultTranslationProvider.java | 4 +- .../commandflow/bukkit/MessageUtils.java | 2 +- .../commandflow/bukkit/annotation/Exact.java | 2 +- .../bukkit/annotation/PlayerOrSource.java | 2 +- .../bukkit}/annotation/Sender.java | 2 +- .../bukkit/factory/BukkitModule.java | 8 +-- .../bukkit/factory/CommandSenderFactory.java | 8 +-- .../bukkit/factory/GameModeFactory.java | 8 +-- .../factory/OfflinePlayerPartFactory.java | 10 ++-- .../bukkit/factory/PlayerPartFactory.java | 12 ++-- .../bukkit/factory/PlayerSenderFactory.java | 8 +-- .../bukkit/factory/WorldFactory.java | 8 +-- .../commandflow/bukkit/part/BukkitParts.java | 32 ++++++----- .../bukkit/part/CommandSenderPart.java | 16 +++--- .../commandflow/bukkit/part/GameModePart.java | 12 ++-- .../bukkit/part/OfflinePlayerPart.java | 16 +++--- .../commandflow/bukkit/part/PlayerPart.java | 18 +++--- .../bukkit/part/PlayerSenderPart.java | 16 +++--- .../commandflow/bukkit/part/WorldPart.java | 12 ++-- .../commandflow/bungee/BungeeAuthorizer.java | 6 +- .../bungee/BungeeCommandManager.java | 42 +++++++------- .../bungee/BungeeCommandWrapper.java | 12 ++-- .../BungeeDefaultTranslationProvider.java | 4 +- .../commandflow/bungee/MessageUtils.java | 2 +- .../annotation/ProxiedPlayerOrSource.java | 2 +- .../bungee}/annotation/Sender.java | 2 +- .../bungee/factory/BungeeModule.java | 8 +-- .../factory/CommandSenderPartFactory.java | 8 +-- .../factory/ProxiedPlayerPartFactory.java | 10 ++-- .../ProxiedPlayerSenderPartFactory.java | 8 +-- .../bungee/part/CommandSenderPart.java | 16 +++--- .../bungee/part/ProxiedPlayerPart.java | 16 +++--- .../bungee/part/ProxiedPlayerSenderPart.java | 16 +++--- .../discord/DiscordAuthorizer.java | 6 +- .../discord/DiscordCommandManager.java | 43 +++++++------- .../DiscordDefaultTranslationProvider.java | 4 +- .../commandflow/discord/MessageListener.java | 17 ++---- .../discord}/annotation/Sender.java | 2 +- .../discord/factory/DiscordModule.java | 8 +-- .../discord/factory/MemberPartFactory.java | 8 +-- .../factory/MemberSenderPartFactory.java | 8 +-- .../discord/factory/MessagePartFactory.java | 8 +-- .../factory/TextChannelPartFactory.java | 8 +-- .../discord/factory/UserPartFactory.java | 8 +-- .../factory/UserSenderPartFactory.java | 8 +-- .../commandflow/discord/part/MemberPart.java | 18 +++--- .../discord/part/MemberSenderPart.java | 16 +++--- .../commandflow/discord/part/MessagePart.java | 12 ++-- .../discord/part/TextChannelPart.java | 18 +++--- .../commandflow/discord/part/UserPart.java | 18 +++--- .../discord/part/UserSenderPart.java | 16 +++--- .../discord/utils/ArgumentsUtils.java | 2 +- .../discord/utils/MessageUtils.java | 2 +- docs/imperatively/argument.md | 2 +- .../velocity/VelocityAuthorizer.java | 6 +- .../velocity/VelocityCommandManager.java | 40 ++++++------- .../velocity/VelocityCommandWrapper.java | 12 ++-- .../VelocityDefaultTranslationProvider.java | 4 +- .../velocity/annotation/PlayerOrSource.java | 2 +- .../velocity}/annotation/Sender.java | 2 +- .../factory/CommandSourcePartFactory.java | 8 +-- .../velocity/factory/PlayerPartFactory.java | 10 ++-- .../factory/PlayerSenderPartFactory.java | 8 +-- .../velocity/factory/VelocityModule.java | 8 +-- .../velocity/part/CommandSenderPart.java | 14 ++--- .../commandflow/velocity/part/PlayerPart.java | 14 ++--- .../velocity/part/PlayerSenderPart.java | 14 ++--- 214 files changed, 1077 insertions(+), 1071 deletions(-) delete mode 100644 api/src/main/java/me/fixeddev/commandflow/annotated/builder/AnnotatedCommandBuilder.java delete mode 100644 api/src/main/java/me/fixeddev/commandflow/part/visitor/CommandPartVisitor.java rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/Authorizer.java (92%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/CommandContext.java (98%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/CommandManager.java (93%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/ContextSnapshot.java (95%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/ErrorHandler.java (98%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/Namespace.java (96%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/NamespaceImpl.java (96%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/ParseResult.java (71%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/SimpleCommandContext.java (97%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/SimpleCommandManager.java (91%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/SimpleErrorHandler.java (97%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/AnnotatedCommandTreeBuilder.java (72%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/AnnotatedCommandTreeBuilderImpl.java (86%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/CommandClass.java (69%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/ReflectionInstanceCreator.java (96%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/ReflectionSubCommandHandler.java (82%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/SubCommandInstanceCreator.java (93%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/action/ReflectiveAction.java (86%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/action/ValueGetter.java (89%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/annotation/ArgOrSub.java (90%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/annotation/Command.java (89%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/annotation/ConsumeAll.java (82%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/annotation/Flag.java (89%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/annotation/Handler.java (83%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/annotation/Limit.java (83%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/annotation/Named.java (83%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/annotation/OptArg.java (74%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/annotation/ParentArg.java (90%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/annotation/Range.java (52%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/annotation/Required.java (86%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/annotation/Rewrites.java (89%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/annotation/Strict.java (88%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/annotation/SubCommandClasses.java (82%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/annotation/Suggestions.java (84%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/annotation/Switch.java (89%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/annotation/Text.java (82%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/annotation/Usage.java (90%) create mode 100644 api/src/main/java/team/unnamed/commandflow/annotated/builder/AnnotatedCommandBuilder.java rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/builder/AnnotatedCommandBuilderImpl.java (75%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/builder/Buildable.java (66%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/builder/CommandActionNode.java (87%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/builder/CommandBuilderNodesImpl.java (90%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/builder/CommandDataNode.java (74%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/builder/CommandModifiersNode.java (72%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/builder/CommandPartsNode.java (65%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/builder/SubCommandsNode.java (81%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/modifier/CommandModifierFactory.java (74%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/part/AbstractModule.java (94%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/part/DelegatePartModifier.java (85%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/part/Key.java (95%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/part/Module.java (89%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/part/PartFactory.java (89%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/part/PartInjector.java (91%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/part/PartModifier.java (89%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/part/SimplePartInjector.java (94%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/part/defaults/DefaultsModule.java (61%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/part/defaults/factory/ArgumentStackPartFactory.java (54%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/part/defaults/factory/BooleanPartFactory.java (53%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/part/defaults/factory/ContextFactory.java (53%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/part/defaults/factory/DoublePartFactory.java (59%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/part/defaults/factory/EnumPartFactory.java (71%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/part/defaults/factory/FloatPartFactory.java (59%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/part/defaults/factory/IntegerPartFactory.java (59%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/part/defaults/factory/LongPartFactory.java (52%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/part/defaults/factory/StringPartFactory.java (52%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/part/defaults/factory/StringTextPartFactory.java (55%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/part/defaults/factory/SwitchPartFactory.java (60%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/part/defaults/modifier/LimitModifier.java (59%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/part/defaults/modifier/OptionalModifier.java (61%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/part/defaults/modifier/RewritesModifier.java (64%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/part/defaults/modifier/SuggestionsModifier.java (58%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/annotated/part/defaults/modifier/ValueFlagModifier.java (61%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/command/Action.java (72%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/command/Command.java (88%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/command/SimpleCommand.java (95%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/command/modifiers/CommandModifier.java (82%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/command/modifiers/CommandModifiers.java (94%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/command/modifiers/FallbackCommandModifiers.java (98%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/command/modifiers/ModifierPhase.java (94%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/command/modifiers/ModifierUtils.java (96%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/command/modifiers/SequentialCommandModifier.java (92%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/command/modifiers/SimpleCommandModifiers.java (95%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/exception/ArgumentException.java (86%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/exception/ArgumentParseException.java (92%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/exception/CommandException.java (94%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/exception/CommandUsage.java (92%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/exception/InvalidSubCommandException.java (92%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/exception/NoMoreArgumentsException.java (92%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/exception/NoPermissionsException.java (90%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/exception/StopParseException.java (87%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/executor/DefaultExecutor.java (67%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/executor/Executor.java (71%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/input/InputTokenizer.java (88%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/input/QuotedSpaceTokenizer.java (98%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/input/StringSpaceTokenizer.java (88%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/ArgumentPart.java (82%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/CommandPart.java (76%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/Parts.java (93%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/PartsWrapper.java (85%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/SinglePartWrapper.java (84%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/defaults/ArgumentRewriterPart.java (84%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/defaults/ArgumentStackPart.java (62%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/defaults/BooleanPart.java (74%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/defaults/ContextPart.java (65%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/defaults/DoublePart.java (77%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/defaults/EmptyPart.java (62%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/defaults/EnumPart.java (89%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/defaults/FirstMatchPart.java (91%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/defaults/FloatPart.java (80%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/defaults/IntegerPart.java (80%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/defaults/LimitingPart.java (82%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/defaults/LongPart.java (80%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/defaults/OptionalPart.java (82%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/defaults/PrimitivePart.java (80%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/defaults/SequentialCommandPart.java (89%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/defaults/StringPart.java (92%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/defaults/SubCommandPart.java (88%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/defaults/SuggestionsModifierPart.java (85%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/defaults/SwitchPart.java (89%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/defaults/ValueFlagPart.java (88%) create mode 100644 api/src/main/java/team/unnamed/commandflow/part/visitor/CommandPartVisitor.java rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/part/visitor/UnwrappedCommandPartVisitor.java (73%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/stack/ArgumentStack.java (88%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/stack/SimpleArgumentStack.java (97%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/stack/StackSnapshot.java (96%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/translator/ComponentRendererTranslator.java (92%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/translator/DefaultMapTranslationProvider.java (94%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/translator/DefaultTranslator.java (97%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/translator/TranslationProvider.java (54%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/translator/Translator.java (94%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/usage/DefaultUsageBuilder.java (85%) rename api/src/main/java/{me/fixeddev => team/unnamed}/commandflow/usage/UsageBuilder.java (73%) rename api/src/test/java/{me/fixeddev => team/unnamed}/commandflow/InputTokenizerTest.java (86%) rename api/src/test/java/{me/fixeddev => team/unnamed}/commandflow/ParameterizedPartTest.java (78%) rename api/src/test/java/{me/fixeddev => team/unnamed}/commandflow/annotated/CustomComponentParserTest.java (76%) rename brigadier/src/main/java/{me/fixeddev => team/unnamed}/commandflow/brigadier/BrigadierCommandManager.java (93%) rename brigadier/src/main/java/{me/fixeddev => team/unnamed}/commandflow/brigadier/BrigadierCommandWrapper.java (67%) rename brigadier/src/main/java/{me/fixeddev => team/unnamed}/commandflow/brigadier/BrigadierDefaultTranslationProvider.java (76%) rename brigadier/src/main/java/{me/fixeddev => team/unnamed}/commandflow/brigadier/CommandBrigadierConverter.java (93%) rename brigadier/src/main/java/{me/fixeddev => team/unnamed}/commandflow/brigadier/MultipleHeadNode.java (99%) rename brigadier/src/main/java/{me/fixeddev => team/unnamed}/commandflow/brigadier/MultipleHeadNodeBuilder.java (99%) rename brigadier/src/main/java/{me/fixeddev => team/unnamed}/commandflow/brigadier/PermissionRequirement.java (81%) rename bukkit/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bukkit/BukkitAuthorizer.java (77%) rename bukkit/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bukkit/BukkitCommandManager.java (87%) rename bukkit/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bukkit/BukkitCommandWrapper.java (91%) rename bukkit/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bukkit/BukkitDefaultTranslationProvider.java (80%) rename bukkit/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bukkit/MessageUtils.java (96%) rename bukkit/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bukkit/annotation/Exact.java (83%) rename bukkit/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bukkit/annotation/PlayerOrSource.java (83%) rename {discord/src/main/java/me/fixeddev/commandflow/discord => bukkit/src/main/java/team/unnamed/commandflow/bukkit}/annotation/Sender.java (83%) rename bukkit/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bukkit/factory/BukkitModule.java (75%) rename bukkit/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bukkit/factory/CommandSenderFactory.java (55%) rename bukkit/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bukkit/factory/GameModeFactory.java (55%) rename bukkit/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bukkit/factory/OfflinePlayerPartFactory.java (56%) rename bukkit/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bukkit/factory/PlayerPartFactory.java (56%) rename bukkit/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bukkit/factory/PlayerSenderFactory.java (55%) rename bukkit/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bukkit/factory/WorldFactory.java (55%) rename bukkit/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bukkit/part/BukkitParts.java (67%) rename bukkit/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bukkit/part/CommandSenderPart.java (74%) rename bukkit/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bukkit/part/GameModePart.java (87%) rename bukkit/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bukkit/part/OfflinePlayerPart.java (88%) rename bukkit/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bukkit/part/PlayerPart.java (86%) rename bukkit/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bukkit/part/PlayerSenderPart.java (77%) rename bukkit/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bukkit/part/WorldPart.java (82%) rename bungee/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bungee/BungeeAuthorizer.java (77%) rename bungee/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bungee/BungeeCommandManager.java (87%) rename bungee/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bungee/BungeeCommandWrapper.java (89%) rename bungee/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bungee/BungeeDefaultTranslationProvider.java (77%) rename bungee/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bungee/MessageUtils.java (93%) rename bungee/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bungee/annotation/ProxiedPlayerOrSource.java (84%) rename {bukkit/src/main/java/me/fixeddev/commandflow/bukkit => bungee/src/main/java/team/unnamed/commandflow/bungee}/annotation/Sender.java (83%) rename bungee/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bungee/factory/BungeeModule.java (67%) rename bungee/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bungee/factory/CommandSenderPartFactory.java (56%) rename bungee/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bungee/factory/ProxiedPlayerPartFactory.java (56%) rename bungee/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bungee/factory/ProxiedPlayerSenderPartFactory.java (56%) rename bungee/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bungee/part/CommandSenderPart.java (74%) rename bungee/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bungee/part/ProxiedPlayerPart.java (88%) rename bungee/src/main/java/{me/fixeddev => team/unnamed}/commandflow/bungee/part/ProxiedPlayerSenderPart.java (78%) rename discord/src/main/java/{me/fixeddev => team/unnamed}/commandflow/discord/DiscordAuthorizer.java (89%) rename discord/src/main/java/{me/fixeddev => team/unnamed}/commandflow/discord/DiscordCommandManager.java (85%) rename discord/src/main/java/{me/fixeddev => team/unnamed}/commandflow/discord/DiscordDefaultTranslationProvider.java (75%) rename discord/src/main/java/{me/fixeddev => team/unnamed}/commandflow/discord/MessageListener.java (83%) rename {velocity/src/main/java/me/fixeddev/commandflow/velocity => discord/src/main/java/team/unnamed/commandflow/discord}/annotation/Sender.java (83%) rename discord/src/main/java/{me/fixeddev => team/unnamed}/commandflow/discord/factory/DiscordModule.java (75%) rename discord/src/main/java/{me/fixeddev => team/unnamed}/commandflow/discord/factory/MemberPartFactory.java (55%) rename discord/src/main/java/{me/fixeddev => team/unnamed}/commandflow/discord/factory/MemberSenderPartFactory.java (55%) rename discord/src/main/java/{me/fixeddev => team/unnamed}/commandflow/discord/factory/MessagePartFactory.java (55%) rename discord/src/main/java/{me/fixeddev => team/unnamed}/commandflow/discord/factory/TextChannelPartFactory.java (55%) rename discord/src/main/java/{me/fixeddev => team/unnamed}/commandflow/discord/factory/UserPartFactory.java (55%) rename discord/src/main/java/{me/fixeddev => team/unnamed}/commandflow/discord/factory/UserSenderPartFactory.java (55%) rename discord/src/main/java/{me/fixeddev => team/unnamed}/commandflow/discord/part/MemberPart.java (80%) rename discord/src/main/java/{me/fixeddev => team/unnamed}/commandflow/discord/part/MemberSenderPart.java (74%) rename discord/src/main/java/{me/fixeddev => team/unnamed}/commandflow/discord/part/MessagePart.java (73%) rename discord/src/main/java/{me/fixeddev => team/unnamed}/commandflow/discord/part/TextChannelPart.java (79%) rename discord/src/main/java/{me/fixeddev => team/unnamed}/commandflow/discord/part/UserPart.java (77%) rename discord/src/main/java/{me/fixeddev => team/unnamed}/commandflow/discord/part/UserSenderPart.java (65%) rename discord/src/main/java/{me/fixeddev => team/unnamed}/commandflow/discord/utils/ArgumentsUtils.java (96%) rename discord/src/main/java/{me/fixeddev => team/unnamed}/commandflow/discord/utils/MessageUtils.java (88%) rename velocity/src/main/java/{me/fixeddev => team/unnamed}/commandflow/velocity/VelocityAuthorizer.java (77%) rename velocity/src/main/java/{me/fixeddev => team/unnamed}/commandflow/velocity/VelocityCommandManager.java (87%) rename velocity/src/main/java/{me/fixeddev => team/unnamed}/commandflow/velocity/VelocityCommandWrapper.java (91%) rename velocity/src/main/java/{me/fixeddev => team/unnamed}/commandflow/velocity/VelocityDefaultTranslationProvider.java (77%) rename velocity/src/main/java/{me/fixeddev => team/unnamed}/commandflow/velocity/annotation/PlayerOrSource.java (83%) rename {bungee/src/main/java/me/fixeddev/commandflow/bungee => velocity/src/main/java/team/unnamed/commandflow/velocity}/annotation/Sender.java (82%) rename velocity/src/main/java/{me/fixeddev => team/unnamed}/commandflow/velocity/factory/CommandSourcePartFactory.java (55%) rename velocity/src/main/java/{me/fixeddev => team/unnamed}/commandflow/velocity/factory/PlayerPartFactory.java (66%) rename velocity/src/main/java/{me/fixeddev => team/unnamed}/commandflow/velocity/factory/PlayerSenderPartFactory.java (55%) rename velocity/src/main/java/{me/fixeddev => team/unnamed}/commandflow/velocity/factory/VelocityModule.java (73%) rename velocity/src/main/java/{me/fixeddev => team/unnamed}/commandflow/velocity/part/CommandSenderPart.java (74%) rename velocity/src/main/java/{me/fixeddev => team/unnamed}/commandflow/velocity/part/PlayerPart.java (84%) rename velocity/src/main/java/{me/fixeddev => team/unnamed}/commandflow/velocity/part/PlayerSenderPart.java (77%) diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/builder/AnnotatedCommandBuilder.java b/api/src/main/java/me/fixeddev/commandflow/annotated/builder/AnnotatedCommandBuilder.java deleted file mode 100644 index 0853aaae..00000000 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/builder/AnnotatedCommandBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -package me.fixeddev.commandflow.annotated.builder; - -import me.fixeddev.commandflow.annotated.part.PartInjector; - -public interface AnnotatedCommandBuilder { - - /** - * Creates a new builder to create a {@link me.fixeddev.commandflow.command.Command} instance. - *

- * While being similar to {@link me.fixeddev.commandflow.command.Command.Builder} it allows to create commands based on annotations, - * that means that the {@link me.fixeddev.commandflow.command.Action} or {@link me.fixeddev.commandflow.part.CommandPart} instances - * for the build command will be created based on a given method. - * - * @param name The name of {@link me.fixeddev.commandflow.command.Command} to build. - * @return A {@link CommandDataNode} which will allow building a complete {@link me.fixeddev.commandflow.command.Command} tree. - */ - CommandDataNode newCommand(String name); - - static AnnotatedCommandBuilder create(PartInjector injector) { - return new AnnotatedCommandBuilderImpl(injector); - } - -} diff --git a/api/src/main/java/me/fixeddev/commandflow/part/visitor/CommandPartVisitor.java b/api/src/main/java/me/fixeddev/commandflow/part/visitor/CommandPartVisitor.java deleted file mode 100644 index 29d4f026..00000000 --- a/api/src/main/java/me/fixeddev/commandflow/part/visitor/CommandPartVisitor.java +++ /dev/null @@ -1,21 +0,0 @@ -package me.fixeddev.commandflow.part.visitor; - -import me.fixeddev.commandflow.part.ArgumentPart; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.PartsWrapper; -import me.fixeddev.commandflow.part.SinglePartWrapper; -import me.fixeddev.commandflow.part.defaults.SubCommandPart; - -public interface CommandPartVisitor { - - R visit(CommandPart part); - - R visit(ArgumentPart argumentPart); - - R visit(PartsWrapper partsWrapper); - - R visit(SinglePartWrapper singlePartWrapper); - - R visit(SubCommandPart subCommandPart); - -} diff --git a/api/src/main/java/me/fixeddev/commandflow/Authorizer.java b/api/src/main/java/team/unnamed/commandflow/Authorizer.java similarity index 92% rename from api/src/main/java/me/fixeddev/commandflow/Authorizer.java rename to api/src/main/java/team/unnamed/commandflow/Authorizer.java index d4624849..a87ee1ad 100644 --- a/api/src/main/java/me/fixeddev/commandflow/Authorizer.java +++ b/api/src/main/java/team/unnamed/commandflow/Authorizer.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow; +package team.unnamed.commandflow; public interface Authorizer { diff --git a/api/src/main/java/me/fixeddev/commandflow/CommandContext.java b/api/src/main/java/team/unnamed/commandflow/CommandContext.java similarity index 98% rename from api/src/main/java/me/fixeddev/commandflow/CommandContext.java rename to api/src/main/java/team/unnamed/commandflow/CommandContext.java index 9b73d0f9..fecece2f 100644 --- a/api/src/main/java/me/fixeddev/commandflow/CommandContext.java +++ b/api/src/main/java/team/unnamed/commandflow/CommandContext.java @@ -1,7 +1,7 @@ -package me.fixeddev.commandflow; +package team.unnamed.commandflow; -import me.fixeddev.commandflow.command.Command; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.command.Command; +import team.unnamed.commandflow.part.CommandPart; import java.util.Collections; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/CommandManager.java b/api/src/main/java/team/unnamed/commandflow/CommandManager.java similarity index 93% rename from api/src/main/java/me/fixeddev/commandflow/CommandManager.java rename to api/src/main/java/team/unnamed/commandflow/CommandManager.java index dcfa257a..fa78772a 100644 --- a/api/src/main/java/me/fixeddev/commandflow/CommandManager.java +++ b/api/src/main/java/team/unnamed/commandflow/CommandManager.java @@ -1,12 +1,13 @@ -package me.fixeddev.commandflow; +package team.unnamed.commandflow; -import me.fixeddev.commandflow.command.Command; -import me.fixeddev.commandflow.command.modifiers.FallbackCommandModifiers; -import me.fixeddev.commandflow.executor.Executor; -import me.fixeddev.commandflow.exception.CommandException; -import me.fixeddev.commandflow.input.InputTokenizer; -import me.fixeddev.commandflow.translator.Translator; -import me.fixeddev.commandflow.usage.UsageBuilder; +import team.unnamed.commandflow.command.Command; +import team.unnamed.commandflow.command.modifiers.FallbackCommandModifiers; +import team.unnamed.commandflow.executor.Executor; +import team.unnamed.commandflow.exception.CommandException; +import team.unnamed.commandflow.input.InputTokenizer; +import team.unnamed.commandflow.translator.Translator; +import team.unnamed.commandflow.usage.UsageBuilder; +import team.unnamed.commandflow.command.Action; import java.util.List; import java.util.Optional; @@ -149,7 +150,7 @@ public interface CommandManager { /** * Executes a command based on the provided {@link CommandContext}. *

- * If the executed {@link Command}'s {@link me.fixeddev.commandflow.command.Action} returns a false value then this method gets the usage for the executed Command + * If the executed {@link Command}'s {@link Action} returns a false value then this method gets the usage for the executed Command * * @param commandContext The {@link CommandContext} used to execute the command. * @return A boolean indicating if a command was executed or not @@ -160,7 +161,7 @@ public interface CommandManager { /** * Calls {@link CommandManager#parse(Namespace, List)} and executes the command with the {@link CommandContext} returned by the method. *

- * If the executed {@link Command}'s {@link me.fixeddev.commandflow.command.Action} returns a false value then this method gets the usage for the executed Command + * If the executed {@link Command}'s {@link Action} returns a false value then this method gets the usage for the executed Command * * @param accessor The {@link Namespace} used to inject things into the Command parsing/execution phase * @param arguments A {@link List} of arguments including the command used to parse the actual command used and the parameters of that command diff --git a/api/src/main/java/me/fixeddev/commandflow/ContextSnapshot.java b/api/src/main/java/team/unnamed/commandflow/ContextSnapshot.java similarity index 95% rename from api/src/main/java/me/fixeddev/commandflow/ContextSnapshot.java rename to api/src/main/java/team/unnamed/commandflow/ContextSnapshot.java index 1166c96e..9f2b8f9f 100644 --- a/api/src/main/java/me/fixeddev/commandflow/ContextSnapshot.java +++ b/api/src/main/java/team/unnamed/commandflow/ContextSnapshot.java @@ -1,7 +1,7 @@ -package me.fixeddev.commandflow; +package team.unnamed.commandflow; -import me.fixeddev.commandflow.command.Command; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.command.Command; +import team.unnamed.commandflow.part.CommandPart; import java.util.List; import java.util.Map; diff --git a/api/src/main/java/me/fixeddev/commandflow/ErrorHandler.java b/api/src/main/java/team/unnamed/commandflow/ErrorHandler.java similarity index 98% rename from api/src/main/java/me/fixeddev/commandflow/ErrorHandler.java rename to api/src/main/java/team/unnamed/commandflow/ErrorHandler.java index e147effd..92c91670 100644 --- a/api/src/main/java/me/fixeddev/commandflow/ErrorHandler.java +++ b/api/src/main/java/team/unnamed/commandflow/ErrorHandler.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow; +package team.unnamed.commandflow; /** * This interface is used to handle errors that occur during the execution of a command, by the usage of error handlers diff --git a/api/src/main/java/me/fixeddev/commandflow/Namespace.java b/api/src/main/java/team/unnamed/commandflow/Namespace.java similarity index 96% rename from api/src/main/java/me/fixeddev/commandflow/Namespace.java rename to api/src/main/java/team/unnamed/commandflow/Namespace.java index d8b96b24..cc0221c9 100644 --- a/api/src/main/java/me/fixeddev/commandflow/Namespace.java +++ b/api/src/main/java/team/unnamed/commandflow/Namespace.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow; +package team.unnamed.commandflow; public interface Namespace { diff --git a/api/src/main/java/me/fixeddev/commandflow/NamespaceImpl.java b/api/src/main/java/team/unnamed/commandflow/NamespaceImpl.java similarity index 96% rename from api/src/main/java/me/fixeddev/commandflow/NamespaceImpl.java rename to api/src/main/java/team/unnamed/commandflow/NamespaceImpl.java index 0f6e1dad..cb507165 100644 --- a/api/src/main/java/me/fixeddev/commandflow/NamespaceImpl.java +++ b/api/src/main/java/team/unnamed/commandflow/NamespaceImpl.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow; +package team.unnamed.commandflow; import java.util.Map; import java.util.Objects; diff --git a/api/src/main/java/me/fixeddev/commandflow/ParseResult.java b/api/src/main/java/team/unnamed/commandflow/ParseResult.java similarity index 71% rename from api/src/main/java/me/fixeddev/commandflow/ParseResult.java rename to api/src/main/java/team/unnamed/commandflow/ParseResult.java index 0f8f7a6f..671d2d18 100644 --- a/api/src/main/java/me/fixeddev/commandflow/ParseResult.java +++ b/api/src/main/java/team/unnamed/commandflow/ParseResult.java @@ -1,6 +1,6 @@ -package me.fixeddev.commandflow; +package team.unnamed.commandflow; -import me.fixeddev.commandflow.exception.CommandException; +import team.unnamed.commandflow.exception.CommandException; import java.util.Optional; diff --git a/api/src/main/java/me/fixeddev/commandflow/SimpleCommandContext.java b/api/src/main/java/team/unnamed/commandflow/SimpleCommandContext.java similarity index 97% rename from api/src/main/java/me/fixeddev/commandflow/SimpleCommandContext.java rename to api/src/main/java/team/unnamed/commandflow/SimpleCommandContext.java index 8a049c31..24054906 100644 --- a/api/src/main/java/me/fixeddev/commandflow/SimpleCommandContext.java +++ b/api/src/main/java/team/unnamed/commandflow/SimpleCommandContext.java @@ -1,7 +1,7 @@ -package me.fixeddev.commandflow; +package team.unnamed.commandflow; -import me.fixeddev.commandflow.command.Command; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.command.Command; +import team.unnamed.commandflow.part.CommandPart; import java.util.ArrayList; import java.util.HashMap; diff --git a/api/src/main/java/me/fixeddev/commandflow/SimpleCommandManager.java b/api/src/main/java/team/unnamed/commandflow/SimpleCommandManager.java similarity index 91% rename from api/src/main/java/me/fixeddev/commandflow/SimpleCommandManager.java rename to api/src/main/java/team/unnamed/commandflow/SimpleCommandManager.java index 9feaf521..5fbcdaf3 100644 --- a/api/src/main/java/me/fixeddev/commandflow/SimpleCommandManager.java +++ b/api/src/main/java/team/unnamed/commandflow/SimpleCommandManager.java @@ -1,27 +1,27 @@ -package me.fixeddev.commandflow; - -import me.fixeddev.commandflow.command.Command; -import me.fixeddev.commandflow.command.modifiers.CommandModifiers; -import me.fixeddev.commandflow.command.modifiers.FallbackCommandModifiers; -import me.fixeddev.commandflow.command.modifiers.ModifierPhase; -import me.fixeddev.commandflow.exception.ArgumentException; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.exception.CommandException; -import me.fixeddev.commandflow.exception.CommandUsage; -import me.fixeddev.commandflow.exception.NoPermissionsException; -import me.fixeddev.commandflow.exception.StopParseException; -import me.fixeddev.commandflow.executor.DefaultExecutor; -import me.fixeddev.commandflow.executor.Executor; -import me.fixeddev.commandflow.input.InputTokenizer; -import me.fixeddev.commandflow.input.StringSpaceTokenizer; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; -import me.fixeddev.commandflow.stack.SimpleArgumentStack; -import me.fixeddev.commandflow.translator.DefaultMapTranslationProvider; -import me.fixeddev.commandflow.translator.DefaultTranslator; -import me.fixeddev.commandflow.translator.Translator; -import me.fixeddev.commandflow.usage.DefaultUsageBuilder; -import me.fixeddev.commandflow.usage.UsageBuilder; +package team.unnamed.commandflow; + +import team.unnamed.commandflow.command.Command; +import team.unnamed.commandflow.command.modifiers.CommandModifiers; +import team.unnamed.commandflow.command.modifiers.FallbackCommandModifiers; +import team.unnamed.commandflow.command.modifiers.ModifierPhase; +import team.unnamed.commandflow.exception.ArgumentException; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.exception.CommandException; +import team.unnamed.commandflow.exception.CommandUsage; +import team.unnamed.commandflow.exception.NoPermissionsException; +import team.unnamed.commandflow.exception.StopParseException; +import team.unnamed.commandflow.executor.DefaultExecutor; +import team.unnamed.commandflow.executor.Executor; +import team.unnamed.commandflow.input.InputTokenizer; +import team.unnamed.commandflow.input.StringSpaceTokenizer; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.stack.SimpleArgumentStack; +import team.unnamed.commandflow.translator.DefaultMapTranslationProvider; +import team.unnamed.commandflow.translator.DefaultTranslator; +import team.unnamed.commandflow.translator.Translator; +import team.unnamed.commandflow.usage.DefaultUsageBuilder; +import team.unnamed.commandflow.usage.UsageBuilder; import java.util.Collections; import java.util.HashMap; diff --git a/api/src/main/java/me/fixeddev/commandflow/SimpleErrorHandler.java b/api/src/main/java/team/unnamed/commandflow/SimpleErrorHandler.java similarity index 97% rename from api/src/main/java/me/fixeddev/commandflow/SimpleErrorHandler.java rename to api/src/main/java/team/unnamed/commandflow/SimpleErrorHandler.java index 0c2928f7..da288fc0 100644 --- a/api/src/main/java/me/fixeddev/commandflow/SimpleErrorHandler.java +++ b/api/src/main/java/team/unnamed/commandflow/SimpleErrorHandler.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow; +package team.unnamed.commandflow; import java.util.HashMap; import java.util.Map; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/AnnotatedCommandTreeBuilder.java b/api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilder.java similarity index 72% rename from api/src/main/java/me/fixeddev/commandflow/annotated/AnnotatedCommandTreeBuilder.java rename to api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilder.java index 30568124..0858dd6b 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/AnnotatedCommandTreeBuilder.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilder.java @@ -1,9 +1,12 @@ -package me.fixeddev.commandflow.annotated; +package team.unnamed.commandflow.annotated; -import me.fixeddev.commandflow.annotated.builder.AnnotatedCommandBuilder; -import me.fixeddev.commandflow.annotated.part.PartInjector; -import me.fixeddev.commandflow.command.Command; +import team.unnamed.commandflow.annotated.builder.AnnotatedCommandBuilder; +import team.unnamed.commandflow.annotated.part.PartInjector; +import team.unnamed.commandflow.command.Command; import net.kyori.adventure.text.Component; +import team.unnamed.commandflow.annotated.annotation.Handler; +import team.unnamed.commandflow.annotated.annotation.SubCommandClasses; +import team.unnamed.commandflow.part.defaults.SubCommandPart; import java.util.List; import java.util.function.Function; @@ -19,15 +22,15 @@ public interface AnnotatedCommandTreeBuilder { * The {@link Command} instances created from annotated methods should be public instance methods(not static ones) that return boolean or void, * not being inherited from other classes. *

- * The {@link me.fixeddev.commandflow.annotated.annotation.Command} annotation is used to indicate whether a method or a class is a Command, + * The {@link team.unnamed.commandflow.annotated.annotation.Command} annotation is used to indicate whether a method or a class is a Command, * if a class has this annotation, that means that every command in that class is his subcommand, with the main command being * a command with empty name. *

- * The {@link me.fixeddev.commandflow.annotated.annotation.Handler} annotation is used to indicate that a method of a class with subcommands is the one that - * handles the sub commands, actualy being a {@link me.fixeddev.commandflow.part.defaults.SubCommandPart.SubCommandHandler} but created with + * The {@link Handler} annotation is used to indicate that a method of a class with subcommands is the one that + * handles the sub commands, actualy being a {@link SubCommandPart.SubCommandHandler} but created with * an annotated method. *

- * The {@link me.fixeddev.commandflow.annotated.annotation.SubCommandClasses} annotation is used to indicate that the given classes are actually subcommands + * The {@link SubCommandClasses} annotation is used to indicate that the given classes are actually subcommands * of the given {@link CommandClass}, these sub command classes will be instantiated using a {@link SubCommandInstanceCreator} and * parsed with this same method, the returned commands will be added as subcommands for the provided {@link CommandClass}. * This allows multiple levels of subcommands without a lot of hassle. diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/AnnotatedCommandTreeBuilderImpl.java b/api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilderImpl.java similarity index 86% rename from api/src/main/java/me/fixeddev/commandflow/annotated/AnnotatedCommandTreeBuilderImpl.java rename to api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilderImpl.java index 84dc4921..e612c3d2 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/AnnotatedCommandTreeBuilderImpl.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilderImpl.java @@ -1,17 +1,18 @@ -package me.fixeddev.commandflow.annotated; +package team.unnamed.commandflow.annotated; import me.fixeddev.commandflow.annotated.annotation.*; -import me.fixeddev.commandflow.annotated.builder.AnnotatedCommandBuilder; -import me.fixeddev.commandflow.annotated.builder.CommandDataNode; -import me.fixeddev.commandflow.annotated.builder.CommandModifiersNode; -import me.fixeddev.commandflow.annotated.builder.CommandPartsNode; -import me.fixeddev.commandflow.annotated.builder.SubCommandsNode; -import me.fixeddev.commandflow.annotated.part.PartInjector; -import me.fixeddev.commandflow.command.Action; -import me.fixeddev.commandflow.command.Command; -import me.fixeddev.commandflow.part.defaults.SubCommandPart; +import team.unnamed.commandflow.annotated.builder.AnnotatedCommandBuilder; +import team.unnamed.commandflow.annotated.builder.CommandDataNode; +import team.unnamed.commandflow.annotated.builder.CommandModifiersNode; +import team.unnamed.commandflow.annotated.builder.CommandPartsNode; +import team.unnamed.commandflow.annotated.builder.SubCommandsNode; +import team.unnamed.commandflow.annotated.part.PartInjector; +import team.unnamed.commandflow.command.Action; +import team.unnamed.commandflow.command.Command; +import team.unnamed.commandflow.part.defaults.SubCommandPart; import net.kyori.adventure.text.Component; import org.jetbrains.annotations.NotNull; +import team.unnamed.commandflow.annotated.annotation.*; import java.lang.reflect.Method; import java.lang.reflect.Modifier; @@ -55,16 +56,16 @@ public void setComponentParser(Function componentParser) { public List fromClass(CommandClass commandClass) { Class clazz = commandClass.getClass(); - me.fixeddev.commandflow.annotated.annotation.Command rootCommandAnnotation = - clazz.getAnnotation(me.fixeddev.commandflow.annotated.annotation.Command.class); + team.unnamed.commandflow.annotated.annotation.Command rootCommandAnnotation = + clazz.getAnnotation(team.unnamed.commandflow.annotated.annotation.Command.class); List commandList = new ArrayList<>(); Method rootCommandMethod = null; for (Method method : clazz.getDeclaredMethods()) { - me.fixeddev.commandflow.annotated.annotation.Command commandAnnotation = - method.getAnnotation(me.fixeddev.commandflow.annotated.annotation.Command.class); + team.unnamed.commandflow.annotated.annotation.Command commandAnnotation = + method.getAnnotation(team.unnamed.commandflow.annotated.annotation.Command.class); if (commandAnnotation == null) { continue; @@ -91,7 +92,7 @@ public List fromClass(CommandClass commandClass) { } private Command fromMethod(CommandClass commandClass, - me.fixeddev.commandflow.annotated.annotation.Command commandAnnotation, + team.unnamed.commandflow.annotated.annotation.Command commandAnnotation, Method method) { if (Modifier.isStatic(method.getModifiers()) || !Modifier.isPublic(method.getModifiers())) { return null; @@ -128,7 +129,7 @@ private Command fromMethod(CommandClass commandClass, @NotNull private List createRootCommand(CommandClass commandClass, Class clazz, - me.fixeddev.commandflow.annotated.annotation.Command rootCommandAnnotation, + team.unnamed.commandflow.annotated.annotation.Command rootCommandAnnotation, List commandList, Method rootCommandMethod) { String[] names = rootCommandAnnotation.names(); diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/CommandClass.java b/api/src/main/java/team/unnamed/commandflow/annotated/CommandClass.java similarity index 69% rename from api/src/main/java/me/fixeddev/commandflow/annotated/CommandClass.java rename to api/src/main/java/team/unnamed/commandflow/annotated/CommandClass.java index 0551f2ba..d249e2b5 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/CommandClass.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/CommandClass.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.annotated; +package team.unnamed.commandflow.annotated; /** * A marker interface for Commands based on annotations. diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/ReflectionInstanceCreator.java b/api/src/main/java/team/unnamed/commandflow/annotated/ReflectionInstanceCreator.java similarity index 96% rename from api/src/main/java/me/fixeddev/commandflow/annotated/ReflectionInstanceCreator.java rename to api/src/main/java/team/unnamed/commandflow/annotated/ReflectionInstanceCreator.java index 99d813f5..20b0a67b 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/ReflectionInstanceCreator.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/ReflectionInstanceCreator.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.annotated; +package team.unnamed.commandflow.annotated; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/ReflectionSubCommandHandler.java b/api/src/main/java/team/unnamed/commandflow/annotated/ReflectionSubCommandHandler.java similarity index 82% rename from api/src/main/java/me/fixeddev/commandflow/annotated/ReflectionSubCommandHandler.java rename to api/src/main/java/team/unnamed/commandflow/annotated/ReflectionSubCommandHandler.java index 4297a292..ee147e03 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/ReflectionSubCommandHandler.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/ReflectionSubCommandHandler.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.annotated; +package team.unnamed.commandflow.annotated; -import me.fixeddev.commandflow.command.Command; -import me.fixeddev.commandflow.exception.ArgumentException; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.defaults.SubCommandPart; +import team.unnamed.commandflow.command.Command; +import team.unnamed.commandflow.exception.ArgumentException; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.defaults.SubCommandPart; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/SubCommandInstanceCreator.java b/api/src/main/java/team/unnamed/commandflow/annotated/SubCommandInstanceCreator.java similarity index 93% rename from api/src/main/java/me/fixeddev/commandflow/annotated/SubCommandInstanceCreator.java rename to api/src/main/java/team/unnamed/commandflow/annotated/SubCommandInstanceCreator.java index 294cf639..4066d6f4 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/SubCommandInstanceCreator.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/SubCommandInstanceCreator.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.annotated; +package team.unnamed.commandflow.annotated; /** * An interface with the purpose of creating a {@link CommandClass} instance that is a sub commands class of another diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/action/ReflectiveAction.java b/api/src/main/java/team/unnamed/commandflow/annotated/action/ReflectiveAction.java similarity index 86% rename from api/src/main/java/me/fixeddev/commandflow/annotated/action/ReflectiveAction.java rename to api/src/main/java/team/unnamed/commandflow/annotated/action/ReflectiveAction.java index e4771e4b..5ec81eb5 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/action/ReflectiveAction.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/action/ReflectiveAction.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.annotated.action; +package team.unnamed.commandflow.annotated.action; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.annotated.CommandClass; -import me.fixeddev.commandflow.command.Action; -import me.fixeddev.commandflow.exception.CommandException; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.annotated.CommandClass; +import team.unnamed.commandflow.command.Action; +import team.unnamed.commandflow.exception.CommandException; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/action/ValueGetter.java b/api/src/main/java/team/unnamed/commandflow/annotated/action/ValueGetter.java similarity index 89% rename from api/src/main/java/me/fixeddev/commandflow/annotated/action/ValueGetter.java rename to api/src/main/java/team/unnamed/commandflow/annotated/action/ValueGetter.java index 9beba130..4ff3862e 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/action/ValueGetter.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/action/ValueGetter.java @@ -1,9 +1,7 @@ -package me.fixeddev.commandflow.annotated.action; +package team.unnamed.commandflow.annotated.action; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.part.CommandPart; - -import java.util.Collections; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.part.CommandPart; public interface ValueGetter { Object getValue(CommandContext commandContext); diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/ArgOrSub.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ArgOrSub.java similarity index 90% rename from api/src/main/java/me/fixeddev/commandflow/annotated/annotation/ArgOrSub.java rename to api/src/main/java/team/unnamed/commandflow/annotated/annotation/ArgOrSub.java index 29a06ccf..8627c3dc 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/ArgOrSub.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ArgOrSub.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Command.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Command.java similarity index 89% rename from api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Command.java rename to api/src/main/java/team/unnamed/commandflow/annotated/annotation/Command.java index f3a8cd0f..10bb302f 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Command.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Command.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/ConsumeAll.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ConsumeAll.java similarity index 82% rename from api/src/main/java/me/fixeddev/commandflow/annotated/annotation/ConsumeAll.java rename to api/src/main/java/team/unnamed/commandflow/annotated/annotation/ConsumeAll.java index ac6f58b7..54d695ba 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/ConsumeAll.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ConsumeAll.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Flag.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Flag.java similarity index 89% rename from api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Flag.java rename to api/src/main/java/team/unnamed/commandflow/annotated/annotation/Flag.java index b57f7a9c..9768b733 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Flag.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Flag.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Handler.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Handler.java similarity index 83% rename from api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Handler.java rename to api/src/main/java/team/unnamed/commandflow/annotated/annotation/Handler.java index 0dd5d59f..a45bf841 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Handler.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Handler.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Limit.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Limit.java similarity index 83% rename from api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Limit.java rename to api/src/main/java/team/unnamed/commandflow/annotated/annotation/Limit.java index 7344134a..f273669c 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Limit.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Limit.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Named.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Named.java similarity index 83% rename from api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Named.java rename to api/src/main/java/team/unnamed/commandflow/annotated/annotation/Named.java index fa6f85b1..6a7b3722 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Named.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Named.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/OptArg.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/OptArg.java similarity index 74% rename from api/src/main/java/me/fixeddev/commandflow/annotated/annotation/OptArg.java rename to api/src/main/java/team/unnamed/commandflow/annotated/annotation/OptArg.java index f9422de8..06303ca6 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/OptArg.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/OptArg.java @@ -1,4 +1,6 @@ -package me.fixeddev.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; + +import team.unnamed.commandflow.command.Command; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; @@ -7,7 +9,7 @@ /** * The purpose of this annotation is to define the default value of a parameter - * in an {@link me.fixeddev.commandflow.command.Command}. + * in an {@link Command}. */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.PARAMETER) diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/ParentArg.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ParentArg.java similarity index 90% rename from api/src/main/java/me/fixeddev/commandflow/annotated/annotation/ParentArg.java rename to api/src/main/java/team/unnamed/commandflow/annotated/annotation/ParentArg.java index ee9ceaaa..b23b44e3 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/ParentArg.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ParentArg.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Range.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Range.java similarity index 52% rename from api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Range.java rename to api/src/main/java/team/unnamed/commandflow/annotated/annotation/Range.java index 9da1139f..2a6fa028 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Range.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Range.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; public @interface Range { diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Required.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Required.java similarity index 86% rename from api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Required.java rename to api/src/main/java/team/unnamed/commandflow/annotated/annotation/Required.java index 0c097469..aa18ba1d 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Required.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Required.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Rewrites.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Rewrites.java similarity index 89% rename from api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Rewrites.java rename to api/src/main/java/team/unnamed/commandflow/annotated/annotation/Rewrites.java index 8ddad349..9d8983fd 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Rewrites.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Rewrites.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Strict.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Strict.java similarity index 88% rename from api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Strict.java rename to api/src/main/java/team/unnamed/commandflow/annotated/annotation/Strict.java index f2a86058..3f482b55 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Strict.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Strict.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/SubCommandClasses.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/SubCommandClasses.java similarity index 82% rename from api/src/main/java/me/fixeddev/commandflow/annotated/annotation/SubCommandClasses.java rename to api/src/main/java/team/unnamed/commandflow/annotated/annotation/SubCommandClasses.java index 9c4d45ad..2397cd38 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/SubCommandClasses.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/SubCommandClasses.java @@ -1,6 +1,6 @@ -package me.fixeddev.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; -import me.fixeddev.commandflow.annotated.CommandClass; +import team.unnamed.commandflow.annotated.CommandClass; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Suggestions.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Suggestions.java similarity index 84% rename from api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Suggestions.java rename to api/src/main/java/team/unnamed/commandflow/annotated/annotation/Suggestions.java index 4b50655b..27855f98 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Suggestions.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Suggestions.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Switch.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Switch.java similarity index 89% rename from api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Switch.java rename to api/src/main/java/team/unnamed/commandflow/annotated/annotation/Switch.java index 247284a1..b5159b56 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Switch.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Switch.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Text.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Text.java similarity index 82% rename from api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Text.java rename to api/src/main/java/team/unnamed/commandflow/annotated/annotation/Text.java index 6ba6de96..c3ade0b3 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Text.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Text.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Usage.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Usage.java similarity index 90% rename from api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Usage.java rename to api/src/main/java/team/unnamed/commandflow/annotated/annotation/Usage.java index 0c87377d..632bd16e 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/annotation/Usage.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Usage.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/builder/AnnotatedCommandBuilder.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/AnnotatedCommandBuilder.java new file mode 100644 index 00000000..46ef0774 --- /dev/null +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/AnnotatedCommandBuilder.java @@ -0,0 +1,26 @@ +package team.unnamed.commandflow.annotated.builder; + +import team.unnamed.commandflow.annotated.part.PartInjector; +import team.unnamed.commandflow.command.Action; +import team.unnamed.commandflow.command.Command; +import team.unnamed.commandflow.part.CommandPart; + +public interface AnnotatedCommandBuilder { + + /** + * Creates a new builder to create a {@link Command} instance. + *

+ * While being similar to {@link Command.Builder} it allows to create commands based on annotations, + * that means that the {@link Action} or {@link CommandPart} instances + * for the build command will be created based on a given method. + * + * @param name The name of {@link Command} to build. + * @return A {@link CommandDataNode} which will allow building a complete {@link Command} tree. + */ + CommandDataNode newCommand(String name); + + static AnnotatedCommandBuilder create(PartInjector injector) { + return new AnnotatedCommandBuilderImpl(injector); + } + +} diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/builder/AnnotatedCommandBuilderImpl.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/AnnotatedCommandBuilderImpl.java similarity index 75% rename from api/src/main/java/me/fixeddev/commandflow/annotated/builder/AnnotatedCommandBuilderImpl.java rename to api/src/main/java/team/unnamed/commandflow/annotated/builder/AnnotatedCommandBuilderImpl.java index 3524215c..d96d49d3 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/builder/AnnotatedCommandBuilderImpl.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/AnnotatedCommandBuilderImpl.java @@ -1,6 +1,6 @@ -package me.fixeddev.commandflow.annotated.builder; +package team.unnamed.commandflow.annotated.builder; -import me.fixeddev.commandflow.annotated.part.PartInjector; +import team.unnamed.commandflow.annotated.part.PartInjector; final class AnnotatedCommandBuilderImpl implements AnnotatedCommandBuilder { diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/builder/Buildable.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/Buildable.java similarity index 66% rename from api/src/main/java/me/fixeddev/commandflow/annotated/builder/Buildable.java rename to api/src/main/java/team/unnamed/commandflow/annotated/builder/Buildable.java index b7bd3cf1..cc183796 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/builder/Buildable.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/Buildable.java @@ -1,6 +1,6 @@ -package me.fixeddev.commandflow.annotated.builder; +package team.unnamed.commandflow.annotated.builder; -import me.fixeddev.commandflow.command.Command; +import team.unnamed.commandflow.command.Command; public interface Buildable { diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandActionNode.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandActionNode.java similarity index 87% rename from api/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandActionNode.java rename to api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandActionNode.java index 2c0fd4bb..97174617 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandActionNode.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandActionNode.java @@ -1,7 +1,7 @@ -package me.fixeddev.commandflow.annotated.builder; +package team.unnamed.commandflow.annotated.builder; -import me.fixeddev.commandflow.annotated.CommandClass; -import me.fixeddev.commandflow.command.Action; +import team.unnamed.commandflow.annotated.CommandClass; +import team.unnamed.commandflow.command.Action; import org.jetbrains.annotations.NotNull; import java.lang.reflect.Method; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandBuilderNodesImpl.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandBuilderNodesImpl.java similarity index 90% rename from api/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandBuilderNodesImpl.java rename to api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandBuilderNodesImpl.java index 3bffad4f..f6b2edce 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandBuilderNodesImpl.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandBuilderNodesImpl.java @@ -1,23 +1,23 @@ -package me.fixeddev.commandflow.annotated.builder; - -import me.fixeddev.commandflow.annotated.CommandClass; -import me.fixeddev.commandflow.annotated.action.ReflectiveAction; -import me.fixeddev.commandflow.annotated.action.ValueGetter; -import me.fixeddev.commandflow.annotated.annotation.Named; -import me.fixeddev.commandflow.annotated.annotation.ParentArg; -import me.fixeddev.commandflow.annotated.modifier.CommandModifierFactory; -import me.fixeddev.commandflow.annotated.part.Key; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.annotated.part.PartInjector; -import me.fixeddev.commandflow.annotated.part.PartModifier; -import me.fixeddev.commandflow.command.Action; -import me.fixeddev.commandflow.command.Command; -import me.fixeddev.commandflow.command.modifiers.CommandModifier; -import me.fixeddev.commandflow.command.modifiers.CommandModifiers; -import me.fixeddev.commandflow.command.modifiers.ModifierPhase; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.Parts; -import me.fixeddev.commandflow.part.defaults.SubCommandPart; +package team.unnamed.commandflow.annotated.builder; + +import team.unnamed.commandflow.annotated.CommandClass; +import team.unnamed.commandflow.annotated.action.ReflectiveAction; +import team.unnamed.commandflow.annotated.action.ValueGetter; +import team.unnamed.commandflow.annotated.annotation.Named; +import team.unnamed.commandflow.annotated.annotation.ParentArg; +import team.unnamed.commandflow.annotated.modifier.CommandModifierFactory; +import team.unnamed.commandflow.annotated.part.Key; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.annotated.part.PartInjector; +import team.unnamed.commandflow.annotated.part.PartModifier; +import team.unnamed.commandflow.command.Action; +import team.unnamed.commandflow.command.Command; +import team.unnamed.commandflow.command.modifiers.CommandModifier; +import team.unnamed.commandflow.command.modifiers.CommandModifiers; +import team.unnamed.commandflow.command.modifiers.ModifierPhase; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.Parts; +import team.unnamed.commandflow.part.defaults.SubCommandPart; import net.kyori.adventure.text.Component; import org.jetbrains.annotations.NotNull; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandDataNode.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandDataNode.java similarity index 74% rename from api/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandDataNode.java rename to api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandDataNode.java index f9dbaad7..3adc2722 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandDataNode.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandDataNode.java @@ -1,7 +1,8 @@ -package me.fixeddev.commandflow.annotated.builder; +package team.unnamed.commandflow.annotated.builder; import net.kyori.adventure.text.Component; import org.jetbrains.annotations.NotNull; +import team.unnamed.commandflow.command.Command; import java.util.Arrays; import java.util.List; @@ -11,14 +12,14 @@ public interface CommandDataNode extends Buildable { /** * @param aliases The command aliases * @return The same {@link CommandDataNode} instance. - * @see me.fixeddev.commandflow.command.Command.Builder#aliases(List) + * @see Command.Builder#aliases(List) */ @NotNull CommandDataNode aliases(@NotNull List aliases); /** * @param aliases The command aliases * @return The same {@link CommandDataNode} instance. - * @see me.fixeddev.commandflow.command.Command.Builder#aliases(String...) + * @see Command.Builder#aliases(String...) */ @NotNull default CommandDataNode aliases(@NotNull String... aliases) { @@ -28,40 +29,40 @@ default CommandDataNode aliases(@NotNull String... aliases) { /** * @param alias The alias to add * @return The same {@link CommandDataNode} instance. - * @see me.fixeddev.commandflow.command.Command.Builder#addAlias(String) + * @see Command.Builder#addAlias(String) */ @NotNull CommandDataNode addAlias(@NotNull String alias); /** * @param component The description component * @return The same {@link CommandDataNode} instance. - * @see me.fixeddev.commandflow.command.Command.Builder#description(Component) + * @see Command.Builder#description(Component) */ @NotNull CommandDataNode description(@NotNull Component component); /** * @param component The usage component * @return The same {@link CommandDataNode} instance. - * @see me.fixeddev.commandflow.command.Command.Builder#usage(Component) + * @see Command.Builder#usage(Component) */ @NotNull CommandDataNode usage(@NotNull Component component); /** * @param permission The permission string for the command. * @return The same {@link CommandDataNode} instance. - * @see me.fixeddev.commandflow.command.Command.Builder#permission(String) + * @see Command.Builder#permission(String) */ @NotNull CommandDataNode permission(@NotNull String permission); /** * @param permissionMessage The component to be sent when the user doesn't have permissions4. * @return The same {@link CommandDataNode} instance. - * @see me.fixeddev.commandflow.command.Command.Builder#permissionMessage(Component) + * @see Command.Builder#permissionMessage(Component) */ @NotNull CommandDataNode permissionMessage(@NotNull Component permissionMessage); /** - * This method gives you the next step of the process of building a {@link me.fixeddev.commandflow.command.Command}. + * This method gives you the next step of the process of building a {@link Command}. * * @return A {@link CommandModifiersNode} instance, which will allow continuing the building process of this command. */ diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandModifiersNode.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandModifiersNode.java similarity index 72% rename from api/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandModifiersNode.java rename to api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandModifiersNode.java index 776d1bdc..c6932dfe 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandModifiersNode.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandModifiersNode.java @@ -1,10 +1,12 @@ -package me.fixeddev.commandflow.annotated.builder; +package team.unnamed.commandflow.annotated.builder; -import me.fixeddev.commandflow.annotated.CommandClass; -import me.fixeddev.commandflow.command.modifiers.CommandModifier; -import me.fixeddev.commandflow.command.modifiers.ModifierPhase; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.annotated.CommandClass; +import team.unnamed.commandflow.command.modifiers.CommandModifier; +import team.unnamed.commandflow.command.modifiers.ModifierPhase; +import team.unnamed.commandflow.part.CommandPart; import org.jetbrains.annotations.NotNull; +import team.unnamed.commandflow.annotated.modifier.CommandModifierFactory; +import team.unnamed.commandflow.command.Command; import java.lang.annotation.Annotation; import java.lang.reflect.Method; @@ -15,7 +17,7 @@ public interface CommandModifiersNode extends Buildable { /** * Sets the {@link CommandModifier} list of this command to a one created based on a {@link Method} with annotations. * The actual {@link CommandModifier} instances will be created based on the annotations that the method has, those - * are created using a {@link me.fixeddev.commandflow.annotated.modifier.CommandModifierFactory} provided by the PartInjector. + * are created using a {@link CommandModifierFactory} provided by the PartInjector. * * @param method The method which parameters will be converted to the list of {@link CommandPart} instances of the comand. * @param handler The {@link CommandClass} instance in which this method is present. @@ -30,7 +32,7 @@ public interface CommandModifiersNode extends Buildable { @NotNull CommandModifiersNode addModifier(@NotNull ModifierPhase phase, @NotNull CommandModifier modifier); /** - * This method gives you the next step of the process of building a {@link me.fixeddev.commandflow.command.Command}. + * This method gives you the next step of the process of building a {@link Command}. * * @return A {@link CommandPartsNode} instance, which will allow continuing the building process of this command. */ diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandPartsNode.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandPartsNode.java similarity index 65% rename from api/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandPartsNode.java rename to api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandPartsNode.java index dc2e2230..23a501bb 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/builder/CommandPartsNode.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandPartsNode.java @@ -1,8 +1,12 @@ -package me.fixeddev.commandflow.annotated.builder; +package team.unnamed.commandflow.annotated.builder; -import me.fixeddev.commandflow.annotated.CommandClass; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.annotated.CommandClass; +import team.unnamed.commandflow.part.CommandPart; import org.jetbrains.annotations.NotNull; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.annotated.part.PartInjector; +import team.unnamed.commandflow.annotated.part.PartModifier; +import team.unnamed.commandflow.command.Command; import java.lang.reflect.Method; @@ -11,8 +15,8 @@ public interface CommandPartsNode extends Buildable { /** * Sets the {@link CommandPart} list of this command to a one created based on a {@link Method} with annotations. * The actual {@link CommandPart} instances will be created based on the type and annotations that the parameter has, - * those are created with a {@link me.fixeddev.commandflow.annotated.part.PartFactory} and after that modified by a {@link me.fixeddev.commandflow.annotated.part.PartModifier} - * which are returned by the {@link me.fixeddev.commandflow.annotated.part.PartInjector} used on the builder. + * those are created with a {@link PartFactory} and after that modified by a {@link PartModifier} + * which are returned by the {@link PartInjector} used on the builder. * * @param method The method which parameters will be converted to the list of {@link CommandPart} instances of the comand. * @param handler The {@link CommandClass} instance in which this method is present. @@ -22,16 +26,16 @@ public interface CommandPartsNode extends Buildable { @NotNull CommandClass handler); /** - * Adds a {@link CommandPart} into the {@link me.fixeddev.commandflow.command.Command} being built. + * Adds a {@link CommandPart} into the {@link Command} being built. * - * @param part The {@link CommandPart} to add into the {@link me.fixeddev.commandflow.command.Command} parts. + * @param part The {@link CommandPart} to add into the {@link Command} parts. * @return A {@link CommandActionNode} instance, which will allow continuing the building process of this command. - * @see me.fixeddev.commandflow.command.Command.Builder#addPart(CommandPart) + * @see Command.Builder#addPart(CommandPart) */ @NotNull CommandPartsNode addPart(@NotNull CommandPart part); /** - * This method gives you the next step of the process of building a {@link me.fixeddev.commandflow.command.Command}. + * This method gives you the next step of the process of building a {@link Command}. * * @return A {@link CommandActionNode} instance, which will allow continuing the building process of this command. */ diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/builder/SubCommandsNode.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/SubCommandsNode.java similarity index 81% rename from api/src/main/java/me/fixeddev/commandflow/annotated/builder/SubCommandsNode.java rename to api/src/main/java/team/unnamed/commandflow/annotated/builder/SubCommandsNode.java index 1ae440c8..7e7dee63 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/builder/SubCommandsNode.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/SubCommandsNode.java @@ -1,7 +1,7 @@ -package me.fixeddev.commandflow.annotated.builder; +package team.unnamed.commandflow.annotated.builder; -import me.fixeddev.commandflow.command.Command; -import me.fixeddev.commandflow.part.defaults.SubCommandPart; +import team.unnamed.commandflow.command.Command; +import team.unnamed.commandflow.part.defaults.SubCommandPart; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/modifier/CommandModifierFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/modifier/CommandModifierFactory.java similarity index 74% rename from api/src/main/java/me/fixeddev/commandflow/annotated/modifier/CommandModifierFactory.java rename to api/src/main/java/team/unnamed/commandflow/annotated/modifier/CommandModifierFactory.java index efe439b6..6b0be280 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/modifier/CommandModifierFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/modifier/CommandModifierFactory.java @@ -1,7 +1,7 @@ -package me.fixeddev.commandflow.annotated.modifier; +package team.unnamed.commandflow.annotated.modifier; -import me.fixeddev.commandflow.command.modifiers.CommandModifier; -import me.fixeddev.commandflow.command.modifiers.CommandModifiers; +import team.unnamed.commandflow.command.modifiers.CommandModifier; +import team.unnamed.commandflow.command.modifiers.CommandModifiers; import java.lang.annotation.Annotation; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/part/AbstractModule.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/AbstractModule.java similarity index 94% rename from api/src/main/java/me/fixeddev/commandflow/annotated/part/AbstractModule.java rename to api/src/main/java/team/unnamed/commandflow/annotated/part/AbstractModule.java index 28dd50bb..8adb17cf 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/part/AbstractModule.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/AbstractModule.java @@ -1,6 +1,6 @@ -package me.fixeddev.commandflow.annotated.part; +package team.unnamed.commandflow.annotated.part; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.CommandPart; import java.lang.annotation.Annotation; import java.lang.reflect.Type; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/part/DelegatePartModifier.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/DelegatePartModifier.java similarity index 85% rename from api/src/main/java/me/fixeddev/commandflow/annotated/part/DelegatePartModifier.java rename to api/src/main/java/team/unnamed/commandflow/annotated/part/DelegatePartModifier.java index 721890f4..b684cf90 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/part/DelegatePartModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/DelegatePartModifier.java @@ -1,6 +1,6 @@ -package me.fixeddev.commandflow.annotated.part; +package team.unnamed.commandflow.annotated.part; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.CommandPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/part/Key.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/Key.java similarity index 95% rename from api/src/main/java/me/fixeddev/commandflow/annotated/part/Key.java rename to api/src/main/java/team/unnamed/commandflow/annotated/part/Key.java index 36a0b31d..06a24b8a 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/part/Key.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/Key.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.annotated.part; +package team.unnamed.commandflow.annotated.part; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/part/Module.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/Module.java similarity index 89% rename from api/src/main/java/me/fixeddev/commandflow/annotated/part/Module.java rename to api/src/main/java/team/unnamed/commandflow/annotated/part/Module.java index 3841e68c..6f61244c 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/part/Module.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/Module.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.annotated.part; +package team.unnamed.commandflow.annotated.part; /** * An aggregation of multiple bindings of {@linkplain PartModifier} or {@linkplain PartFactory}, allowing to automatically register diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/part/PartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/PartFactory.java similarity index 89% rename from api/src/main/java/me/fixeddev/commandflow/annotated/part/PartFactory.java rename to api/src/main/java/team/unnamed/commandflow/annotated/part/PartFactory.java index b53501ea..d516e382 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/part/PartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/PartFactory.java @@ -1,6 +1,6 @@ -package me.fixeddev.commandflow.annotated.part; +package team.unnamed.commandflow.annotated.part; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.CommandPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/part/PartInjector.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/PartInjector.java similarity index 91% rename from api/src/main/java/me/fixeddev/commandflow/annotated/part/PartInjector.java rename to api/src/main/java/team/unnamed/commandflow/annotated/part/PartInjector.java index 7bd4e8d2..f3af3b12 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/part/PartInjector.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/PartInjector.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.annotated.part; +package team.unnamed.commandflow.annotated.part; -import me.fixeddev.commandflow.annotated.modifier.CommandModifierFactory; -import me.fixeddev.commandflow.command.modifiers.CommandModifier; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.annotated.modifier.CommandModifierFactory; +import team.unnamed.commandflow.command.modifiers.CommandModifier; +import team.unnamed.commandflow.part.CommandPart; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -17,7 +17,7 @@ public interface PartInjector { /** * Gets a {@link PartFactory} for a given {@link Type}. * - * @param type The type of {@link me.fixeddev.commandflow.part.CommandPart} to generate. + * @param type The type of {@link CommandPart} to generate. * @return An {@link PartFactory} for a specific {@link Type} of CommandPart. */ @Nullable @@ -28,7 +28,7 @@ default PartFactory getFactory(Type type) { /** * Gets a {@link PartFactory} for a given {@link Key}. * - * @param key The type of {@link me.fixeddev.commandflow.part.CommandPart} to generate. + * @param key The type of {@link CommandPart} to generate. * @return An {@link PartFactory} for a specific {@link Type} of CommandPart. */ @Nullable PartFactory getFactory(Key key); @@ -36,7 +36,7 @@ default PartFactory getFactory(Type type) { /** * Gets a {@link PartFactory} for a given {@link Key}. * - * @param annotation The type of {@link me.fixeddev.commandflow.part.CommandPart} to generate. + * @param annotation The type of {@link CommandPart} to generate. * @return An {@link PartFactory} for a specific {@link Type} of CommandPart. */ @Nullable PartModifier getModifier(Class annotation); diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/part/PartModifier.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/PartModifier.java similarity index 89% rename from api/src/main/java/me/fixeddev/commandflow/annotated/part/PartModifier.java rename to api/src/main/java/team/unnamed/commandflow/annotated/part/PartModifier.java index f210844c..cb21c946 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/part/PartModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/PartModifier.java @@ -1,6 +1,6 @@ -package me.fixeddev.commandflow.annotated.part; +package team.unnamed.commandflow.annotated.part; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.CommandPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/part/SimplePartInjector.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/SimplePartInjector.java similarity index 94% rename from api/src/main/java/me/fixeddev/commandflow/annotated/part/SimplePartInjector.java rename to api/src/main/java/team/unnamed/commandflow/annotated/part/SimplePartInjector.java index 0efc053b..f44050f1 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/part/SimplePartInjector.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/SimplePartInjector.java @@ -1,6 +1,6 @@ -package me.fixeddev.commandflow.annotated.part; +package team.unnamed.commandflow.annotated.part; -import me.fixeddev.commandflow.annotated.modifier.CommandModifierFactory; +import team.unnamed.commandflow.annotated.modifier.CommandModifierFactory; import org.jetbrains.annotations.Nullable; import java.lang.annotation.Annotation; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/DefaultsModule.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/DefaultsModule.java similarity index 61% rename from api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/DefaultsModule.java rename to api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/DefaultsModule.java index 5c778cd5..0ec1835f 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/DefaultsModule.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/DefaultsModule.java @@ -1,22 +1,23 @@ -package me.fixeddev.commandflow.annotated.part.defaults; - -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.annotated.annotation.Flag; -import me.fixeddev.commandflow.annotated.annotation.Limit; -import me.fixeddev.commandflow.annotated.annotation.OptArg; -import me.fixeddev.commandflow.annotated.annotation.Rewrites; -import me.fixeddev.commandflow.annotated.annotation.Suggestions; -import me.fixeddev.commandflow.annotated.annotation.Switch; -import me.fixeddev.commandflow.annotated.annotation.Text; -import me.fixeddev.commandflow.annotated.part.AbstractModule; -import me.fixeddev.commandflow.annotated.part.Key; +package team.unnamed.commandflow.annotated.part.defaults; + +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.annotated.annotation.Flag; +import team.unnamed.commandflow.annotated.annotation.Limit; +import team.unnamed.commandflow.annotated.annotation.OptArg; +import team.unnamed.commandflow.annotated.annotation.Rewrites; +import team.unnamed.commandflow.annotated.annotation.Suggestions; +import team.unnamed.commandflow.annotated.annotation.Switch; +import team.unnamed.commandflow.annotated.annotation.Text; +import team.unnamed.commandflow.annotated.part.AbstractModule; +import team.unnamed.commandflow.annotated.part.Key; import me.fixeddev.commandflow.annotated.part.defaults.factory.*; -import me.fixeddev.commandflow.annotated.part.defaults.modifier.LimitModifier; -import me.fixeddev.commandflow.annotated.part.defaults.modifier.OptionalModifier; -import me.fixeddev.commandflow.annotated.part.defaults.modifier.RewritesModifier; -import me.fixeddev.commandflow.annotated.part.defaults.modifier.SuggestionsModifier; -import me.fixeddev.commandflow.annotated.part.defaults.modifier.ValueFlagModifier; -import me.fixeddev.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.annotated.part.defaults.modifier.LimitModifier; +import team.unnamed.commandflow.annotated.part.defaults.modifier.OptionalModifier; +import team.unnamed.commandflow.annotated.part.defaults.modifier.RewritesModifier; +import team.unnamed.commandflow.annotated.part.defaults.modifier.SuggestionsModifier; +import team.unnamed.commandflow.annotated.part.defaults.modifier.ValueFlagModifier; +import team.unnamed.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.annotated.part.defaults.factory.*; public class DefaultsModule extends AbstractModule { diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/ArgumentStackPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/ArgumentStackPartFactory.java similarity index 54% rename from api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/ArgumentStackPartFactory.java rename to api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/ArgumentStackPartFactory.java index 64a3e9db..3d3acb65 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/ArgumentStackPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/ArgumentStackPartFactory.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.annotated.part.defaults.factory; +package team.unnamed.commandflow.annotated.part.defaults.factory; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.defaults.ArgumentStackPart; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.defaults.ArgumentStackPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/BooleanPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/BooleanPartFactory.java similarity index 53% rename from api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/BooleanPartFactory.java rename to api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/BooleanPartFactory.java index 724219ae..df8c581f 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/BooleanPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/BooleanPartFactory.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.annotated.part.defaults.factory; +package team.unnamed.commandflow.annotated.part.defaults.factory; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.defaults.BooleanPart; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.defaults.BooleanPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/ContextFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/ContextFactory.java similarity index 53% rename from api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/ContextFactory.java rename to api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/ContextFactory.java index 1c7d3608..a5fad38a 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/ContextFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/ContextFactory.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.annotated.part.defaults.factory; +package team.unnamed.commandflow.annotated.part.defaults.factory; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.defaults.ContextPart; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.defaults.ContextPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/DoublePartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/DoublePartFactory.java similarity index 59% rename from api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/DoublePartFactory.java rename to api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/DoublePartFactory.java index 613457a0..5ed772b4 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/DoublePartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/DoublePartFactory.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.annotated.part.defaults.factory; +package team.unnamed.commandflow.annotated.part.defaults.factory; -import me.fixeddev.commandflow.annotated.annotation.Range; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.defaults.DoublePart; +import team.unnamed.commandflow.annotated.annotation.Range; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.defaults.DoublePart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/EnumPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/EnumPartFactory.java similarity index 71% rename from api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/EnumPartFactory.java rename to api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/EnumPartFactory.java index 75421bb0..3ecbba49 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/EnumPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/EnumPartFactory.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.annotated.part.defaults.factory; +package team.unnamed.commandflow.annotated.part.defaults.factory; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.Parts; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.Parts; import java.lang.annotation.Annotation; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/FloatPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/FloatPartFactory.java similarity index 59% rename from api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/FloatPartFactory.java rename to api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/FloatPartFactory.java index 5217afcf..516c634f 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/FloatPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/FloatPartFactory.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.annotated.part.defaults.factory; +package team.unnamed.commandflow.annotated.part.defaults.factory; -import me.fixeddev.commandflow.annotated.annotation.Range; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.defaults.FloatPart; +import team.unnamed.commandflow.annotated.annotation.Range; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.defaults.FloatPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/IntegerPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/IntegerPartFactory.java similarity index 59% rename from api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/IntegerPartFactory.java rename to api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/IntegerPartFactory.java index de8cc70d..c440b080 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/IntegerPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/IntegerPartFactory.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.annotated.part.defaults.factory; +package team.unnamed.commandflow.annotated.part.defaults.factory; -import me.fixeddev.commandflow.annotated.annotation.Range; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.defaults.IntegerPart; +import team.unnamed.commandflow.annotated.annotation.Range; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.defaults.IntegerPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/LongPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/LongPartFactory.java similarity index 52% rename from api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/LongPartFactory.java rename to api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/LongPartFactory.java index cafcfffe..d8e0cc8a 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/LongPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/LongPartFactory.java @@ -1,10 +1,10 @@ -package me.fixeddev.commandflow.annotated.part.defaults.factory; +package team.unnamed.commandflow.annotated.part.defaults.factory; -import me.fixeddev.commandflow.annotated.annotation.Range; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.defaults.FloatPart; -import me.fixeddev.commandflow.part.defaults.LongPart; +import team.unnamed.commandflow.annotated.annotation.Range; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.defaults.FloatPart; +import team.unnamed.commandflow.part.defaults.LongPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/StringPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/StringPartFactory.java similarity index 52% rename from api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/StringPartFactory.java rename to api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/StringPartFactory.java index 3b2c26ac..5299b40b 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/StringPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/StringPartFactory.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.annotated.part.defaults.factory; +package team.unnamed.commandflow.annotated.part.defaults.factory; -import me.fixeddev.commandflow.annotated.annotation.ConsumeAll; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.defaults.StringPart; +import team.unnamed.commandflow.annotated.annotation.ConsumeAll; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.defaults.StringPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/StringTextPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/StringTextPartFactory.java similarity index 55% rename from api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/StringTextPartFactory.java rename to api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/StringTextPartFactory.java index 1b3e34dd..93d665a2 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/StringTextPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/StringTextPartFactory.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.annotated.part.defaults.factory; +package team.unnamed.commandflow.annotated.part.defaults.factory; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.defaults.StringPart; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.defaults.StringPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/SwitchPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/SwitchPartFactory.java similarity index 60% rename from api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/SwitchPartFactory.java rename to api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/SwitchPartFactory.java index 6b7db1c3..8c955b2b 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/factory/SwitchPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/SwitchPartFactory.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.annotated.part.defaults.factory; +package team.unnamed.commandflow.annotated.part.defaults.factory; -import me.fixeddev.commandflow.annotated.annotation.Switch; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.defaults.SwitchPart; +import team.unnamed.commandflow.annotated.annotation.Switch; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.defaults.SwitchPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/LimitModifier.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/LimitModifier.java similarity index 59% rename from api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/LimitModifier.java rename to api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/LimitModifier.java index aff82921..f7da159d 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/LimitModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/LimitModifier.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.annotated.part.defaults.modifier; +package team.unnamed.commandflow.annotated.part.defaults.modifier; -import me.fixeddev.commandflow.annotated.annotation.Limit; -import me.fixeddev.commandflow.annotated.part.PartModifier; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.Parts; +import team.unnamed.commandflow.annotated.annotation.Limit; +import team.unnamed.commandflow.annotated.part.PartModifier; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.Parts; import java.lang.annotation.Annotation; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/OptionalModifier.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/OptionalModifier.java similarity index 61% rename from api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/OptionalModifier.java rename to api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/OptionalModifier.java index a15bdaec..cf0e239e 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/OptionalModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/OptionalModifier.java @@ -1,11 +1,10 @@ -package me.fixeddev.commandflow.annotated.part.defaults.modifier; +package team.unnamed.commandflow.annotated.part.defaults.modifier; -import me.fixeddev.commandflow.annotated.annotation.OptArg; -import me.fixeddev.commandflow.annotated.annotation.Strict; -import me.fixeddev.commandflow.annotated.part.PartModifier; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.Parts; -import me.fixeddev.commandflow.part.defaults.OptionalPart; +import team.unnamed.commandflow.annotated.annotation.OptArg; +import team.unnamed.commandflow.annotated.annotation.Strict; +import team.unnamed.commandflow.annotated.part.PartModifier; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.Parts; import java.lang.annotation.Annotation; import java.util.Arrays; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/RewritesModifier.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/RewritesModifier.java similarity index 64% rename from api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/RewritesModifier.java rename to api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/RewritesModifier.java index 0f997211..4f2d12c9 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/RewritesModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/RewritesModifier.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.annotated.part.defaults.modifier; +package team.unnamed.commandflow.annotated.part.defaults.modifier; -import me.fixeddev.commandflow.annotated.annotation.Rewrites; -import me.fixeddev.commandflow.annotated.part.PartModifier; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.defaults.ArgumentRewriterPart; +import team.unnamed.commandflow.annotated.annotation.Rewrites; +import team.unnamed.commandflow.annotated.part.PartModifier; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.defaults.ArgumentRewriterPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/SuggestionsModifier.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/SuggestionsModifier.java similarity index 58% rename from api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/SuggestionsModifier.java rename to api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/SuggestionsModifier.java index 8a9f30d4..731dedc7 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/SuggestionsModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/SuggestionsModifier.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.annotated.part.defaults.modifier; +package team.unnamed.commandflow.annotated.part.defaults.modifier; -import me.fixeddev.commandflow.annotated.annotation.Suggestions; -import me.fixeddev.commandflow.annotated.part.PartModifier; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.defaults.SuggestionsModifierPart; +import team.unnamed.commandflow.annotated.annotation.Suggestions; +import team.unnamed.commandflow.annotated.part.PartModifier; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.defaults.SuggestionsModifierPart; import java.lang.annotation.Annotation; import java.util.Arrays; diff --git a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/ValueFlagModifier.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/ValueFlagModifier.java similarity index 61% rename from api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/ValueFlagModifier.java rename to api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/ValueFlagModifier.java index b6729735..d98c2d49 100644 --- a/api/src/main/java/me/fixeddev/commandflow/annotated/part/defaults/modifier/ValueFlagModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/ValueFlagModifier.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.annotated.part.defaults.modifier; +package team.unnamed.commandflow.annotated.part.defaults.modifier; -import me.fixeddev.commandflow.annotated.annotation.Flag; -import me.fixeddev.commandflow.annotated.part.PartModifier; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.defaults.ValueFlagPart; +import team.unnamed.commandflow.annotated.annotation.Flag; +import team.unnamed.commandflow.annotated.part.PartModifier; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.defaults.ValueFlagPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/command/Action.java b/api/src/main/java/team/unnamed/commandflow/command/Action.java similarity index 72% rename from api/src/main/java/me/fixeddev/commandflow/command/Action.java rename to api/src/main/java/team/unnamed/commandflow/command/Action.java index 5b835f39..9123b67e 100644 --- a/api/src/main/java/me/fixeddev/commandflow/command/Action.java +++ b/api/src/main/java/team/unnamed/commandflow/command/Action.java @@ -1,7 +1,8 @@ -package me.fixeddev.commandflow.command; +package team.unnamed.commandflow.command; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.exception.CommandException; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.CommandManager; +import team.unnamed.commandflow.exception.CommandException; public interface Action { @@ -11,7 +12,7 @@ public interface Action { Action NULL_ACTION = context -> false; /** - * The action to execute when the {@link Command} is being called/run by the {@link me.fixeddev.commandflow.CommandManager}. + * The action to execute when the {@link Command} is being called/run by the {@link CommandManager}. * * @param context The {@link CommandContext} for this executed command. * @return If the action was executed sucessfully or not, if the value is false, the usage will be send to the source. diff --git a/api/src/main/java/me/fixeddev/commandflow/command/Command.java b/api/src/main/java/team/unnamed/commandflow/command/Command.java similarity index 88% rename from api/src/main/java/me/fixeddev/commandflow/command/Command.java rename to api/src/main/java/team/unnamed/commandflow/command/Command.java index 067d25da..33dd66fe 100644 --- a/api/src/main/java/me/fixeddev/commandflow/command/Command.java +++ b/api/src/main/java/team/unnamed/commandflow/command/Command.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.command; +package team.unnamed.commandflow.command; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.command.modifiers.CommandModifiers; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.defaults.SequentialCommandPart; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.command.modifiers.CommandModifiers; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.defaults.SequentialCommandPart; import net.kyori.adventure.text.Component; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -73,7 +73,7 @@ public interface Command { CommandPart getPart(); /** - * A utility object, that has all the {@linkplain me.fixeddev.commandflow.command.modifiers.CommandModifiers} for this command, + * A utility object, that has all the {@linkplain CommandModifiers} for this command, * and allows to easily call them at any phase of the execution of the command * * @return The {@link CommandModifiers} for this command. @@ -82,7 +82,7 @@ public interface Command { CommandModifiers getModifiers(); /** - * The {@link Action} executed after the parsing has been finished. The {@link me.fixeddev.commandflow.CommandContext} passed to the action + * The {@link Action} executed after the parsing has been finished. The {@link CommandContext} passed to the action * is the resulting one after the parsing by the {@link CommandPart} returned by {@link Command#getPart()} is done. * * @return The {@link Action} for this command. diff --git a/api/src/main/java/me/fixeddev/commandflow/command/SimpleCommand.java b/api/src/main/java/team/unnamed/commandflow/command/SimpleCommand.java similarity index 95% rename from api/src/main/java/me/fixeddev/commandflow/command/SimpleCommand.java rename to api/src/main/java/team/unnamed/commandflow/command/SimpleCommand.java index 3ee6f34b..3f1c3cb2 100644 --- a/api/src/main/java/me/fixeddev/commandflow/command/SimpleCommand.java +++ b/api/src/main/java/team/unnamed/commandflow/command/SimpleCommand.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.command; +package team.unnamed.commandflow.command; -import me.fixeddev.commandflow.command.modifiers.CommandModifiers; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.defaults.EmptyPart; -import me.fixeddev.commandflow.part.Parts; +import team.unnamed.commandflow.command.modifiers.CommandModifiers; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.defaults.EmptyPart; +import team.unnamed.commandflow.part.Parts; import net.kyori.adventure.text.Component; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/api/src/main/java/me/fixeddev/commandflow/command/modifiers/CommandModifier.java b/api/src/main/java/team/unnamed/commandflow/command/modifiers/CommandModifier.java similarity index 82% rename from api/src/main/java/me/fixeddev/commandflow/command/modifiers/CommandModifier.java rename to api/src/main/java/team/unnamed/commandflow/command/modifiers/CommandModifier.java index d1fc8aba..a171bee9 100644 --- a/api/src/main/java/me/fixeddev/commandflow/command/modifiers/CommandModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/command/modifiers/CommandModifier.java @@ -1,7 +1,7 @@ -package me.fixeddev.commandflow.command.modifiers; +package team.unnamed.commandflow.command.modifiers; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.stack.ArgumentStack; public interface CommandModifier { diff --git a/api/src/main/java/me/fixeddev/commandflow/command/modifiers/CommandModifiers.java b/api/src/main/java/team/unnamed/commandflow/command/modifiers/CommandModifiers.java similarity index 94% rename from api/src/main/java/me/fixeddev/commandflow/command/modifiers/CommandModifiers.java rename to api/src/main/java/team/unnamed/commandflow/command/modifiers/CommandModifiers.java index 30dcb3a3..2c4a4802 100644 --- a/api/src/main/java/me/fixeddev/commandflow/command/modifiers/CommandModifiers.java +++ b/api/src/main/java/team/unnamed/commandflow/command/modifiers/CommandModifiers.java @@ -1,11 +1,7 @@ -package me.fixeddev.commandflow.command.modifiers; +package team.unnamed.commandflow.command.modifiers; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.stack.ArgumentStack; - -import java.util.HashMap; -import java.util.LinkedList; -import java.util.Map; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.stack.ArgumentStack; /** * This class is used to store all the modifiers of a command, and aid in the process of calling them in the right order at diff --git a/api/src/main/java/me/fixeddev/commandflow/command/modifiers/FallbackCommandModifiers.java b/api/src/main/java/team/unnamed/commandflow/command/modifiers/FallbackCommandModifiers.java similarity index 98% rename from api/src/main/java/me/fixeddev/commandflow/command/modifiers/FallbackCommandModifiers.java rename to api/src/main/java/team/unnamed/commandflow/command/modifiers/FallbackCommandModifiers.java index ccd2d6a4..297ef20e 100644 --- a/api/src/main/java/me/fixeddev/commandflow/command/modifiers/FallbackCommandModifiers.java +++ b/api/src/main/java/team/unnamed/commandflow/command/modifiers/FallbackCommandModifiers.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.command.modifiers; +package team.unnamed.commandflow.command.modifiers; import java.util.HashMap; import java.util.LinkedList; diff --git a/api/src/main/java/me/fixeddev/commandflow/command/modifiers/ModifierPhase.java b/api/src/main/java/team/unnamed/commandflow/command/modifiers/ModifierPhase.java similarity index 94% rename from api/src/main/java/me/fixeddev/commandflow/command/modifiers/ModifierPhase.java rename to api/src/main/java/team/unnamed/commandflow/command/modifiers/ModifierPhase.java index 7f6fa5a8..2cb503d7 100644 --- a/api/src/main/java/me/fixeddev/commandflow/command/modifiers/ModifierPhase.java +++ b/api/src/main/java/team/unnamed/commandflow/command/modifiers/ModifierPhase.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.command.modifiers; +package team.unnamed.commandflow.command.modifiers; /** * This enum represents the different phases in which a modifier may be applied. diff --git a/api/src/main/java/me/fixeddev/commandflow/command/modifiers/ModifierUtils.java b/api/src/main/java/team/unnamed/commandflow/command/modifiers/ModifierUtils.java similarity index 96% rename from api/src/main/java/me/fixeddev/commandflow/command/modifiers/ModifierUtils.java rename to api/src/main/java/team/unnamed/commandflow/command/modifiers/ModifierUtils.java index aebe9c3f..fc287a42 100644 --- a/api/src/main/java/me/fixeddev/commandflow/command/modifiers/ModifierUtils.java +++ b/api/src/main/java/team/unnamed/commandflow/command/modifiers/ModifierUtils.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.command.modifiers; +package team.unnamed.commandflow.command.modifiers; import java.util.LinkedList; import java.util.Map; diff --git a/api/src/main/java/me/fixeddev/commandflow/command/modifiers/SequentialCommandModifier.java b/api/src/main/java/team/unnamed/commandflow/command/modifiers/SequentialCommandModifier.java similarity index 92% rename from api/src/main/java/me/fixeddev/commandflow/command/modifiers/SequentialCommandModifier.java rename to api/src/main/java/team/unnamed/commandflow/command/modifiers/SequentialCommandModifier.java index c230aa27..98ddd0e1 100644 --- a/api/src/main/java/me/fixeddev/commandflow/command/modifiers/SequentialCommandModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/command/modifiers/SequentialCommandModifier.java @@ -1,7 +1,7 @@ -package me.fixeddev.commandflow.command.modifiers; +package team.unnamed.commandflow.command.modifiers; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.stack.ArgumentStack; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/command/modifiers/SimpleCommandModifiers.java b/api/src/main/java/team/unnamed/commandflow/command/modifiers/SimpleCommandModifiers.java similarity index 95% rename from api/src/main/java/me/fixeddev/commandflow/command/modifiers/SimpleCommandModifiers.java rename to api/src/main/java/team/unnamed/commandflow/command/modifiers/SimpleCommandModifiers.java index d8b7df92..92f8b4eb 100644 --- a/api/src/main/java/me/fixeddev/commandflow/command/modifiers/SimpleCommandModifiers.java +++ b/api/src/main/java/team/unnamed/commandflow/command/modifiers/SimpleCommandModifiers.java @@ -1,7 +1,7 @@ -package me.fixeddev.commandflow.command.modifiers; +package team.unnamed.commandflow.command.modifiers; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.stack.ArgumentStack; import java.util.HashMap; import java.util.Iterator; diff --git a/api/src/main/java/me/fixeddev/commandflow/exception/ArgumentException.java b/api/src/main/java/team/unnamed/commandflow/exception/ArgumentException.java similarity index 86% rename from api/src/main/java/me/fixeddev/commandflow/exception/ArgumentException.java rename to api/src/main/java/team/unnamed/commandflow/exception/ArgumentException.java index 037de0aa..a2e6c812 100644 --- a/api/src/main/java/me/fixeddev/commandflow/exception/ArgumentException.java +++ b/api/src/main/java/team/unnamed/commandflow/exception/ArgumentException.java @@ -1,7 +1,7 @@ -package me.fixeddev.commandflow.exception; +package team.unnamed.commandflow.exception; -import me.fixeddev.commandflow.command.Command; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.command.Command; +import team.unnamed.commandflow.part.CommandPart; import net.kyori.adventure.text.Component; public class ArgumentException extends CommandException { diff --git a/api/src/main/java/me/fixeddev/commandflow/exception/ArgumentParseException.java b/api/src/main/java/team/unnamed/commandflow/exception/ArgumentParseException.java similarity index 92% rename from api/src/main/java/me/fixeddev/commandflow/exception/ArgumentParseException.java rename to api/src/main/java/team/unnamed/commandflow/exception/ArgumentParseException.java index 7576893c..645421c7 100644 --- a/api/src/main/java/me/fixeddev/commandflow/exception/ArgumentParseException.java +++ b/api/src/main/java/team/unnamed/commandflow/exception/ArgumentParseException.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.exception; +package team.unnamed.commandflow.exception; import net.kyori.adventure.text.Component; diff --git a/api/src/main/java/me/fixeddev/commandflow/exception/CommandException.java b/api/src/main/java/team/unnamed/commandflow/exception/CommandException.java similarity index 94% rename from api/src/main/java/me/fixeddev/commandflow/exception/CommandException.java rename to api/src/main/java/team/unnamed/commandflow/exception/CommandException.java index 5ceaa30c..af8c1bbc 100644 --- a/api/src/main/java/me/fixeddev/commandflow/exception/CommandException.java +++ b/api/src/main/java/team/unnamed/commandflow/exception/CommandException.java @@ -1,6 +1,6 @@ -package me.fixeddev.commandflow.exception; +package team.unnamed.commandflow.exception; -import me.fixeddev.commandflow.command.Command; +import team.unnamed.commandflow.command.Command; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.TextComponent; import net.kyori.adventure.text.TranslatableComponent; diff --git a/api/src/main/java/me/fixeddev/commandflow/exception/CommandUsage.java b/api/src/main/java/team/unnamed/commandflow/exception/CommandUsage.java similarity index 92% rename from api/src/main/java/me/fixeddev/commandflow/exception/CommandUsage.java rename to api/src/main/java/team/unnamed/commandflow/exception/CommandUsage.java index f54af75d..c263eaab 100644 --- a/api/src/main/java/me/fixeddev/commandflow/exception/CommandUsage.java +++ b/api/src/main/java/team/unnamed/commandflow/exception/CommandUsage.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.exception; +package team.unnamed.commandflow.exception; import net.kyori.adventure.text.Component; diff --git a/api/src/main/java/me/fixeddev/commandflow/exception/InvalidSubCommandException.java b/api/src/main/java/team/unnamed/commandflow/exception/InvalidSubCommandException.java similarity index 92% rename from api/src/main/java/me/fixeddev/commandflow/exception/InvalidSubCommandException.java rename to api/src/main/java/team/unnamed/commandflow/exception/InvalidSubCommandException.java index bc1e6f6b..d70cc639 100644 --- a/api/src/main/java/me/fixeddev/commandflow/exception/InvalidSubCommandException.java +++ b/api/src/main/java/team/unnamed/commandflow/exception/InvalidSubCommandException.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.exception; +package team.unnamed.commandflow.exception; import net.kyori.adventure.text.Component; diff --git a/api/src/main/java/me/fixeddev/commandflow/exception/NoMoreArgumentsException.java b/api/src/main/java/team/unnamed/commandflow/exception/NoMoreArgumentsException.java similarity index 92% rename from api/src/main/java/me/fixeddev/commandflow/exception/NoMoreArgumentsException.java rename to api/src/main/java/team/unnamed/commandflow/exception/NoMoreArgumentsException.java index 1192d87b..69c79978 100644 --- a/api/src/main/java/me/fixeddev/commandflow/exception/NoMoreArgumentsException.java +++ b/api/src/main/java/team/unnamed/commandflow/exception/NoMoreArgumentsException.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.exception; +package team.unnamed.commandflow.exception; import net.kyori.adventure.text.Component; diff --git a/api/src/main/java/me/fixeddev/commandflow/exception/NoPermissionsException.java b/api/src/main/java/team/unnamed/commandflow/exception/NoPermissionsException.java similarity index 90% rename from api/src/main/java/me/fixeddev/commandflow/exception/NoPermissionsException.java rename to api/src/main/java/team/unnamed/commandflow/exception/NoPermissionsException.java index 422f7898..8aa9cecd 100644 --- a/api/src/main/java/me/fixeddev/commandflow/exception/NoPermissionsException.java +++ b/api/src/main/java/team/unnamed/commandflow/exception/NoPermissionsException.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.exception; +package team.unnamed.commandflow.exception; import net.kyori.adventure.text.Component; diff --git a/api/src/main/java/me/fixeddev/commandflow/exception/StopParseException.java b/api/src/main/java/team/unnamed/commandflow/exception/StopParseException.java similarity index 87% rename from api/src/main/java/me/fixeddev/commandflow/exception/StopParseException.java rename to api/src/main/java/team/unnamed/commandflow/exception/StopParseException.java index 69b10341..14a333a0 100644 --- a/api/src/main/java/me/fixeddev/commandflow/exception/StopParseException.java +++ b/api/src/main/java/team/unnamed/commandflow/exception/StopParseException.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.exception; +package team.unnamed.commandflow.exception; /** * Thrown when we should stop parsing the command, without doing any further processing. diff --git a/api/src/main/java/me/fixeddev/commandflow/executor/DefaultExecutor.java b/api/src/main/java/team/unnamed/commandflow/executor/DefaultExecutor.java similarity index 67% rename from api/src/main/java/me/fixeddev/commandflow/executor/DefaultExecutor.java rename to api/src/main/java/team/unnamed/commandflow/executor/DefaultExecutor.java index 19870c8c..b7ba7b65 100644 --- a/api/src/main/java/me/fixeddev/commandflow/executor/DefaultExecutor.java +++ b/api/src/main/java/team/unnamed/commandflow/executor/DefaultExecutor.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.executor; +package team.unnamed.commandflow.executor; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.command.Command; -import me.fixeddev.commandflow.exception.CommandUsage; -import me.fixeddev.commandflow.usage.UsageBuilder; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.command.Command; +import team.unnamed.commandflow.exception.CommandUsage; +import team.unnamed.commandflow.usage.UsageBuilder; public class DefaultExecutor implements Executor { diff --git a/api/src/main/java/me/fixeddev/commandflow/executor/Executor.java b/api/src/main/java/team/unnamed/commandflow/executor/Executor.java similarity index 71% rename from api/src/main/java/me/fixeddev/commandflow/executor/Executor.java rename to api/src/main/java/team/unnamed/commandflow/executor/Executor.java index cce08bf6..cf427ccb 100644 --- a/api/src/main/java/me/fixeddev/commandflow/executor/Executor.java +++ b/api/src/main/java/team/unnamed/commandflow/executor/Executor.java @@ -1,9 +1,10 @@ -package me.fixeddev.commandflow.executor; +package team.unnamed.commandflow.executor; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.command.Action; -import me.fixeddev.commandflow.exception.CommandException; -import me.fixeddev.commandflow.usage.UsageBuilder; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.command.Action; +import team.unnamed.commandflow.command.Command; +import team.unnamed.commandflow.exception.CommandException; +import team.unnamed.commandflow.usage.UsageBuilder; /** * This class has the functionality of actually calling the {@link Action} of the command @@ -14,7 +15,7 @@ public interface Executor { /** * Executes the right {@link Action} based on the given {@link CommandContext}. * - * @param commandContext The {@link CommandContext} of the {@link me.fixeddev.commandflow.command.Command} to execute. + * @param commandContext The {@link CommandContext} of the {@link Command} to execute. * @param builder The {@link UsageBuilder} used to generate an usage text if the {@link Action} returns false or if * the command execution fails for a valid reason. * @return If the {@link Action} for the given {@link CommandContext} could be executed. diff --git a/api/src/main/java/me/fixeddev/commandflow/input/InputTokenizer.java b/api/src/main/java/team/unnamed/commandflow/input/InputTokenizer.java similarity index 88% rename from api/src/main/java/me/fixeddev/commandflow/input/InputTokenizer.java rename to api/src/main/java/team/unnamed/commandflow/input/InputTokenizer.java index cf622677..c4fddc30 100644 --- a/api/src/main/java/me/fixeddev/commandflow/input/InputTokenizer.java +++ b/api/src/main/java/team/unnamed/commandflow/input/InputTokenizer.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.input; +package team.unnamed.commandflow.input; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/input/QuotedSpaceTokenizer.java b/api/src/main/java/team/unnamed/commandflow/input/QuotedSpaceTokenizer.java similarity index 98% rename from api/src/main/java/me/fixeddev/commandflow/input/QuotedSpaceTokenizer.java rename to api/src/main/java/team/unnamed/commandflow/input/QuotedSpaceTokenizer.java index 0379b943..ede9b6cf 100644 --- a/api/src/main/java/me/fixeddev/commandflow/input/QuotedSpaceTokenizer.java +++ b/api/src/main/java/team/unnamed/commandflow/input/QuotedSpaceTokenizer.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.input; +package team.unnamed.commandflow.input; import java.util.ArrayList; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/input/StringSpaceTokenizer.java b/api/src/main/java/team/unnamed/commandflow/input/StringSpaceTokenizer.java similarity index 88% rename from api/src/main/java/me/fixeddev/commandflow/input/StringSpaceTokenizer.java rename to api/src/main/java/team/unnamed/commandflow/input/StringSpaceTokenizer.java index e848b359..1a0a0dbd 100644 --- a/api/src/main/java/me/fixeddev/commandflow/input/StringSpaceTokenizer.java +++ b/api/src/main/java/team/unnamed/commandflow/input/StringSpaceTokenizer.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.input; +package team.unnamed.commandflow.input; import java.util.ArrayList; import java.util.Arrays; diff --git a/api/src/main/java/me/fixeddev/commandflow/part/ArgumentPart.java b/api/src/main/java/team/unnamed/commandflow/part/ArgumentPart.java similarity index 82% rename from api/src/main/java/me/fixeddev/commandflow/part/ArgumentPart.java rename to api/src/main/java/team/unnamed/commandflow/part/ArgumentPart.java index 5c261149..f9f22305 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/ArgumentPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/ArgumentPart.java @@ -1,10 +1,10 @@ -package me.fixeddev.commandflow.part; +package team.unnamed.commandflow.part; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.visitor.CommandPartVisitor; -import me.fixeddev.commandflow.stack.ArgumentStack; -import me.fixeddev.commandflow.stack.StackSnapshot; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.visitor.CommandPartVisitor; +import team.unnamed.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.stack.StackSnapshot; import net.kyori.adventure.text.Component; import org.jetbrains.annotations.Nullable; diff --git a/api/src/main/java/me/fixeddev/commandflow/part/CommandPart.java b/api/src/main/java/team/unnamed/commandflow/part/CommandPart.java similarity index 76% rename from api/src/main/java/me/fixeddev/commandflow/part/CommandPart.java rename to api/src/main/java/team/unnamed/commandflow/part/CommandPart.java index f8f01bff..5fda9877 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/CommandPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/CommandPart.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.part; +package team.unnamed.commandflow.part; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.visitor.CommandPartVisitor; -import me.fixeddev.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.visitor.CommandPartVisitor; +import team.unnamed.commandflow.stack.ArgumentStack; import net.kyori.adventure.text.Component; import org.jetbrains.annotations.Nullable; diff --git a/api/src/main/java/me/fixeddev/commandflow/part/Parts.java b/api/src/main/java/team/unnamed/commandflow/part/Parts.java similarity index 93% rename from api/src/main/java/me/fixeddev/commandflow/part/Parts.java rename to api/src/main/java/team/unnamed/commandflow/part/Parts.java index 62cd1ad4..4bd4a8b9 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/Parts.java +++ b/api/src/main/java/team/unnamed/commandflow/part/Parts.java @@ -1,22 +1,22 @@ -package me.fixeddev.commandflow.part; - -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.command.Command; -import me.fixeddev.commandflow.part.defaults.BooleanPart; -import me.fixeddev.commandflow.part.defaults.DoublePart; -import me.fixeddev.commandflow.part.defaults.EnumPart; -import me.fixeddev.commandflow.part.defaults.FirstMatchPart; -import me.fixeddev.commandflow.part.defaults.LongPart; -import me.fixeddev.commandflow.part.defaults.SwitchPart; -import me.fixeddev.commandflow.part.defaults.FloatPart; -import me.fixeddev.commandflow.part.defaults.IntegerPart; -import me.fixeddev.commandflow.part.defaults.LimitingPart; -import me.fixeddev.commandflow.part.defaults.OptionalPart; -import me.fixeddev.commandflow.part.defaults.SequentialCommandPart; -import me.fixeddev.commandflow.part.defaults.StringPart; -import me.fixeddev.commandflow.part.defaults.SubCommandPart; -import me.fixeddev.commandflow.part.defaults.ValueFlagPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +package team.unnamed.commandflow.part; + +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.command.Command; +import team.unnamed.commandflow.part.defaults.BooleanPart; +import team.unnamed.commandflow.part.defaults.DoublePart; +import team.unnamed.commandflow.part.defaults.EnumPart; +import team.unnamed.commandflow.part.defaults.FirstMatchPart; +import team.unnamed.commandflow.part.defaults.LongPart; +import team.unnamed.commandflow.part.defaults.SwitchPart; +import team.unnamed.commandflow.part.defaults.FloatPart; +import team.unnamed.commandflow.part.defaults.IntegerPart; +import team.unnamed.commandflow.part.defaults.LimitingPart; +import team.unnamed.commandflow.part.defaults.OptionalPart; +import team.unnamed.commandflow.part.defaults.SequentialCommandPart; +import team.unnamed.commandflow.part.defaults.StringPart; +import team.unnamed.commandflow.part.defaults.SubCommandPart; +import team.unnamed.commandflow.part.defaults.ValueFlagPart; +import team.unnamed.commandflow.stack.ArgumentStack; import java.util.ArrayList; import java.util.Arrays; @@ -127,7 +127,7 @@ public static CommandPart valueFlag(CommandPart part, String shortName, boolean /** - * A basic {@link CommandPart} that takes a string from the {@link me.fixeddev.commandflow.stack.ArgumentStack} + * A basic {@link CommandPart} that takes a string from the {@link ArgumentStack} * and converts it into an Enum value. * * @param name The name for this part. @@ -140,7 +140,7 @@ public static CommandPart enumPart(String name, Class> enumTyp /** - * A basic {@link CommandPart} that takes a string from the {@link me.fixeddev.commandflow.stack.ArgumentStack} + * A basic {@link CommandPart} that takes a string from the {@link ArgumentStack} * * @param name The name for this part. * @return A {@link CommandPart} with the given name that takes a {@link String} as argument. @@ -174,7 +174,7 @@ public static CommandPart longPart(String name, long min, long max) { } /** - * A basic {@link CommandPart} that takes a string from the {@link me.fixeddev.commandflow.stack.ArgumentStack} + * A basic {@link CommandPart} that takes a string from the {@link ArgumentStack} * * @param name The name for this part. * @return A {@link CommandPart} with the given name that takes a {@link Integer} as argument. @@ -184,7 +184,7 @@ public static CommandPart integer(String name) { } /** - * A basic {@link CommandPart} that takes a string from the {@link me.fixeddev.commandflow.stack.ArgumentStack} + * A basic {@link CommandPart} that takes a string from the {@link ArgumentStack} * * @param name The name for this part. * @param max The maximum number allowed by this part. @@ -196,7 +196,7 @@ public static CommandPart integer(String name, int min, int max) { } /** - * A basic {@link CommandPart} that takes a string from the {@link me.fixeddev.commandflow.stack.ArgumentStack} + * A basic {@link CommandPart} that takes a string from the {@link ArgumentStack} * * @param name The name for this part. * @return A {@link CommandPart} with the given name that takes a {@link Double} as argument. @@ -206,7 +206,7 @@ public static CommandPart doublePart(String name) { } /** - * A basic {@link CommandPart} that takes a string from the {@link me.fixeddev.commandflow.stack.ArgumentStack} + * A basic {@link CommandPart} that takes a string from the {@link ArgumentStack} * * @param name The name for this part. * @param max The maximum number allowed by this part. @@ -218,7 +218,7 @@ public static CommandPart doublePart(String name, double min, double max) { } /** - * A basic {@link CommandPart} that takes a string from the {@link me.fixeddev.commandflow.stack.ArgumentStack} + * A basic {@link CommandPart} that takes a string from the {@link ArgumentStack} * * @param name The name for this part. * @return A {@link CommandPart} with the given name that takes a {@link Float} as argument. @@ -229,7 +229,7 @@ public static CommandPart floatPart(String name) { /** - * A basic {@link CommandPart} that takes a string from the {@link me.fixeddev.commandflow.stack.ArgumentStack} + * A basic {@link CommandPart} that takes a string from the {@link ArgumentStack} * * @param name The name for this part. * @param max The maximum number allowed by this part. @@ -242,7 +242,7 @@ public static CommandPart floatPart(String name, float min, float max) { /** - * A basic {@link CommandPart} that takes a string from the {@link me.fixeddev.commandflow.stack.ArgumentStack} + * A basic {@link CommandPart} that takes a string from the {@link ArgumentStack} * * @param name The name for this part. * @return A {@link CommandPart} with the given name that takes a {@link Boolean} as argument. diff --git a/api/src/main/java/me/fixeddev/commandflow/part/PartsWrapper.java b/api/src/main/java/team/unnamed/commandflow/part/PartsWrapper.java similarity index 85% rename from api/src/main/java/me/fixeddev/commandflow/part/PartsWrapper.java rename to api/src/main/java/team/unnamed/commandflow/part/PartsWrapper.java index 18bcd23c..fcc4bbb7 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/PartsWrapper.java +++ b/api/src/main/java/team/unnamed/commandflow/part/PartsWrapper.java @@ -1,6 +1,6 @@ -package me.fixeddev.commandflow.part; +package team.unnamed.commandflow.part; -import me.fixeddev.commandflow.part.visitor.CommandPartVisitor; +import team.unnamed.commandflow.part.visitor.CommandPartVisitor; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/part/SinglePartWrapper.java b/api/src/main/java/team/unnamed/commandflow/part/SinglePartWrapper.java similarity index 84% rename from api/src/main/java/me/fixeddev/commandflow/part/SinglePartWrapper.java rename to api/src/main/java/team/unnamed/commandflow/part/SinglePartWrapper.java index 90090485..ba856ed1 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/SinglePartWrapper.java +++ b/api/src/main/java/team/unnamed/commandflow/part/SinglePartWrapper.java @@ -1,6 +1,6 @@ -package me.fixeddev.commandflow.part; +package team.unnamed.commandflow.part; -import me.fixeddev.commandflow.part.visitor.CommandPartVisitor; +import team.unnamed.commandflow.part.visitor.CommandPartVisitor; /** * An interface to denote the {@link CommandPart} types that are wrappers for other parts, diff --git a/api/src/main/java/me/fixeddev/commandflow/part/defaults/ArgumentRewriterPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/ArgumentRewriterPart.java similarity index 84% rename from api/src/main/java/me/fixeddev/commandflow/part/defaults/ArgumentRewriterPart.java rename to api/src/main/java/team/unnamed/commandflow/part/defaults/ArgumentRewriterPart.java index c49d497f..ad7f25fb 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/defaults/ArgumentRewriterPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/ArgumentRewriterPart.java @@ -1,10 +1,10 @@ -package me.fixeddev.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.visitor.CommandPartVisitor; -import me.fixeddev.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.visitor.CommandPartVisitor; +import team.unnamed.commandflow.stack.ArgumentStack; import net.kyori.adventure.text.Component; import org.jetbrains.annotations.Nullable; diff --git a/api/src/main/java/me/fixeddev/commandflow/part/defaults/ArgumentStackPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/ArgumentStackPart.java similarity index 62% rename from api/src/main/java/me/fixeddev/commandflow/part/defaults/ArgumentStackPart.java rename to api/src/main/java/team/unnamed/commandflow/part/defaults/ArgumentStackPart.java index 00bbe3fa..593c3dc0 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/defaults/ArgumentStackPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/ArgumentStackPart.java @@ -1,19 +1,19 @@ -package me.fixeddev.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.ArgumentPart; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; -import me.fixeddev.commandflow.stack.SimpleArgumentStack; -import me.fixeddev.commandflow.stack.StackSnapshot; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.ArgumentPart; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.stack.SimpleArgumentStack; +import team.unnamed.commandflow.stack.StackSnapshot; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** - * A {@linkplain me.fixeddev.commandflow.part.CommandPart} that provides direct access to the remaining {@linkplain ArgumentStack}. + * A {@linkplain CommandPart} that provides direct access to the remaining {@linkplain ArgumentStack}. *

* Actually this shouldn't be an {@linkplain ArgumentPart} since it isn't using the arguments directly, but this is the best way to represent it. */ diff --git a/api/src/main/java/me/fixeddev/commandflow/part/defaults/BooleanPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/BooleanPart.java similarity index 74% rename from api/src/main/java/me/fixeddev/commandflow/part/defaults/BooleanPart.java rename to api/src/main/java/team/unnamed/commandflow/part/defaults/BooleanPart.java index 20d02f76..19d1cee8 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/defaults/BooleanPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/BooleanPart.java @@ -1,16 +1,16 @@ -package me.fixeddev.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; import java.util.Arrays; import java.util.Collections; import java.util.List; /** - * A {@linkplain me.fixeddev.commandflow.part.CommandPart} that parses one argument as a boolean, with the values true or false being allowed. + * A {@linkplain CommandPart} that parses one argument as a boolean, with the values true or false being allowed. */ public class BooleanPart extends PrimitivePart { diff --git a/api/src/main/java/me/fixeddev/commandflow/part/defaults/ContextPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/ContextPart.java similarity index 65% rename from api/src/main/java/me/fixeddev/commandflow/part/defaults/ContextPart.java rename to api/src/main/java/team/unnamed/commandflow/part/defaults/ContextPart.java index 6837e642..f3fbc314 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/defaults/ContextPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/ContextPart.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; /** * A {@linkplain CommandPart} that provides direct access to the {@linkplain CommandContext}. diff --git a/api/src/main/java/me/fixeddev/commandflow/part/defaults/DoublePart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/DoublePart.java similarity index 77% rename from api/src/main/java/me/fixeddev/commandflow/part/defaults/DoublePart.java rename to api/src/main/java/team/unnamed/commandflow/part/defaults/DoublePart.java index bc845349..73e7b1e4 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/defaults/DoublePart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/DoublePart.java @@ -1,18 +1,18 @@ -package me.fixeddev.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; import net.kyori.adventure.text.Component; import java.util.Collections; import java.util.List; /** - * A {@linkplain me.fixeddev.commandflow.part.CommandPart} that parses one argument as a double. + * A {@linkplain CommandPart} that parses one argument as a double. *

- * This {@linkplain me.fixeddev.commandflow.part.CommandPart} also supports having only a permitted range. + * This {@linkplain CommandPart} also supports having only a permitted range. */ public class DoublePart extends PrimitivePart { diff --git a/api/src/main/java/me/fixeddev/commandflow/part/defaults/EmptyPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/EmptyPart.java similarity index 62% rename from api/src/main/java/me/fixeddev/commandflow/part/defaults/EmptyPart.java rename to api/src/main/java/team/unnamed/commandflow/part/defaults/EmptyPart.java index 10812490..38773493 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/defaults/EmptyPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/EmptyPart.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; /** * A placeholder {@linkplain CommandPart}, it does absolutely nothing. diff --git a/api/src/main/java/me/fixeddev/commandflow/part/defaults/EnumPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/EnumPart.java similarity index 89% rename from api/src/main/java/me/fixeddev/commandflow/part/defaults/EnumPart.java rename to api/src/main/java/team/unnamed/commandflow/part/defaults/EnumPart.java index a6ea0c4d..58a8a32c 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/defaults/EnumPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/EnumPart.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; import net.kyori.adventure.text.Component; import java.util.ArrayList; @@ -13,7 +13,7 @@ import java.util.Map; /** - * A {@linkplain me.fixeddev.commandflow.part.CommandPart} that allows the parsing of every enum type. + * A {@linkplain CommandPart} that allows the parsing of every enum type. *

* This implementation eagerly loads the enum values from the specified class when created, allowing for fast lookup of * enum values when parsing. diff --git a/api/src/main/java/me/fixeddev/commandflow/part/defaults/FirstMatchPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/FirstMatchPart.java similarity index 91% rename from api/src/main/java/me/fixeddev/commandflow/part/defaults/FirstMatchPart.java rename to api/src/main/java/team/unnamed/commandflow/part/defaults/FirstMatchPart.java index 49caa651..87d8d385 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/defaults/FirstMatchPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/FirstMatchPart.java @@ -1,13 +1,13 @@ -package me.fixeddev.commandflow.part.defaults; - -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.ContextSnapshot; -import me.fixeddev.commandflow.exception.ArgumentException; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.PartsWrapper; -import me.fixeddev.commandflow.stack.ArgumentStack; -import me.fixeddev.commandflow.stack.StackSnapshot; +package team.unnamed.commandflow.part.defaults; + +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.ContextSnapshot; +import team.unnamed.commandflow.exception.ArgumentException; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.PartsWrapper; +import team.unnamed.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.stack.StackSnapshot; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.TextComponent; import org.jetbrains.annotations.Nullable; diff --git a/api/src/main/java/me/fixeddev/commandflow/part/defaults/FloatPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/FloatPart.java similarity index 80% rename from api/src/main/java/me/fixeddev/commandflow/part/defaults/FloatPart.java rename to api/src/main/java/team/unnamed/commandflow/part/defaults/FloatPart.java index 668a3f3c..1fd04119 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/defaults/FloatPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/FloatPart.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; import net.kyori.adventure.text.Component; import java.util.Collections; diff --git a/api/src/main/java/me/fixeddev/commandflow/part/defaults/IntegerPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/IntegerPart.java similarity index 80% rename from api/src/main/java/me/fixeddev/commandflow/part/defaults/IntegerPart.java rename to api/src/main/java/team/unnamed/commandflow/part/defaults/IntegerPart.java index 89db68cc..a00b7b8a 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/defaults/IntegerPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/IntegerPart.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; import net.kyori.adventure.text.Component; import java.util.Collections; diff --git a/api/src/main/java/me/fixeddev/commandflow/part/defaults/LimitingPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/LimitingPart.java similarity index 82% rename from api/src/main/java/me/fixeddev/commandflow/part/defaults/LimitingPart.java rename to api/src/main/java/team/unnamed/commandflow/part/defaults/LimitingPart.java index 480356da..217e0233 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/defaults/LimitingPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/LimitingPart.java @@ -1,10 +1,10 @@ -package me.fixeddev.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.SinglePartWrapper; -import me.fixeddev.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.SinglePartWrapper; +import team.unnamed.commandflow.stack.ArgumentStack; import net.kyori.adventure.text.Component; import org.jetbrains.annotations.Nullable; diff --git a/api/src/main/java/me/fixeddev/commandflow/part/defaults/LongPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/LongPart.java similarity index 80% rename from api/src/main/java/me/fixeddev/commandflow/part/defaults/LongPart.java rename to api/src/main/java/team/unnamed/commandflow/part/defaults/LongPart.java index fcd2e23e..7c1eb5fd 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/defaults/LongPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/LongPart.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; import net.kyori.adventure.text.Component; import java.util.Collections; diff --git a/api/src/main/java/me/fixeddev/commandflow/part/defaults/OptionalPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/OptionalPart.java similarity index 82% rename from api/src/main/java/me/fixeddev/commandflow/part/defaults/OptionalPart.java rename to api/src/main/java/team/unnamed/commandflow/part/defaults/OptionalPart.java index f05c1292..360327be 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/defaults/OptionalPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/OptionalPart.java @@ -1,16 +1,16 @@ -package me.fixeddev.commandflow.part.defaults; - -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.ContextSnapshot; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.exception.CommandException; -import me.fixeddev.commandflow.exception.NoMoreArgumentsException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.PartsWrapper; -import me.fixeddev.commandflow.part.SinglePartWrapper; -import me.fixeddev.commandflow.stack.ArgumentStack; -import me.fixeddev.commandflow.stack.SimpleArgumentStack; -import me.fixeddev.commandflow.stack.StackSnapshot; +package team.unnamed.commandflow.part.defaults; + +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.ContextSnapshot; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.exception.CommandException; +import team.unnamed.commandflow.exception.NoMoreArgumentsException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.PartsWrapper; +import team.unnamed.commandflow.part.SinglePartWrapper; +import team.unnamed.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.stack.SimpleArgumentStack; +import team.unnamed.commandflow.stack.StackSnapshot; import net.kyori.adventure.text.Component; import org.jetbrains.annotations.Nullable; diff --git a/api/src/main/java/me/fixeddev/commandflow/part/defaults/PrimitivePart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/PrimitivePart.java similarity index 80% rename from api/src/main/java/me/fixeddev/commandflow/part/defaults/PrimitivePart.java rename to api/src/main/java/team/unnamed/commandflow/part/defaults/PrimitivePart.java index 6df7bbd1..accf4041 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/defaults/PrimitivePart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/PrimitivePart.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.part.ArgumentPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.part.ArgumentPart; +import team.unnamed.commandflow.stack.ArgumentStack; import java.util.Collections; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/part/defaults/SequentialCommandPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/SequentialCommandPart.java similarity index 89% rename from api/src/main/java/me/fixeddev/commandflow/part/defaults/SequentialCommandPart.java rename to api/src/main/java/team/unnamed/commandflow/part/defaults/SequentialCommandPart.java index ec29f9f1..883fd918 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/defaults/SequentialCommandPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/SequentialCommandPart.java @@ -1,10 +1,10 @@ -package me.fixeddev.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.PartsWrapper; -import me.fixeddev.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.PartsWrapper; +import team.unnamed.commandflow.stack.ArgumentStack; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.TextComponent; import org.jetbrains.annotations.Nullable; diff --git a/api/src/main/java/me/fixeddev/commandflow/part/defaults/StringPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/StringPart.java similarity index 92% rename from api/src/main/java/me/fixeddev/commandflow/part/defaults/StringPart.java rename to api/src/main/java/team/unnamed/commandflow/part/defaults/StringPart.java index f66e745f..703daa5a 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/defaults/StringPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/StringPart.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; import java.util.ArrayList; import java.util.Collections; diff --git a/api/src/main/java/me/fixeddev/commandflow/part/defaults/SubCommandPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/SubCommandPart.java similarity index 88% rename from api/src/main/java/me/fixeddev/commandflow/part/defaults/SubCommandPart.java rename to api/src/main/java/team/unnamed/commandflow/part/defaults/SubCommandPart.java index a03eb7e3..ddda2c9d 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/defaults/SubCommandPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/SubCommandPart.java @@ -1,25 +1,24 @@ -package me.fixeddev.commandflow.part.defaults; - -import me.fixeddev.commandflow.Authorizer; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.CommandManager; -import me.fixeddev.commandflow.ContextSnapshot; -import me.fixeddev.commandflow.command.modifiers.FallbackCommandModifiers; -import me.fixeddev.commandflow.command.Command; -import me.fixeddev.commandflow.command.modifiers.CommandModifiers; -import me.fixeddev.commandflow.command.modifiers.ModifierPhase; -import me.fixeddev.commandflow.exception.ArgumentException; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.exception.InvalidSubCommandException; -import me.fixeddev.commandflow.exception.NoMoreArgumentsException; -import me.fixeddev.commandflow.exception.NoPermissionsException; -import me.fixeddev.commandflow.exception.StopParseException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.visitor.CommandPartVisitor; -import me.fixeddev.commandflow.stack.ArgumentStack; -import me.fixeddev.commandflow.stack.StackSnapshot; +package team.unnamed.commandflow.part.defaults; + +import team.unnamed.commandflow.Authorizer; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.CommandManager; +import team.unnamed.commandflow.ContextSnapshot; +import team.unnamed.commandflow.command.modifiers.FallbackCommandModifiers; +import team.unnamed.commandflow.command.Command; +import team.unnamed.commandflow.command.modifiers.CommandModifiers; +import team.unnamed.commandflow.command.modifiers.ModifierPhase; +import team.unnamed.commandflow.exception.ArgumentException; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.exception.InvalidSubCommandException; +import team.unnamed.commandflow.exception.NoMoreArgumentsException; +import team.unnamed.commandflow.exception.NoPermissionsException; +import team.unnamed.commandflow.exception.StopParseException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.visitor.CommandPartVisitor; +import team.unnamed.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.stack.StackSnapshot; import net.kyori.adventure.text.Component; -import net.kyori.adventure.text.TextComponent; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/api/src/main/java/me/fixeddev/commandflow/part/defaults/SuggestionsModifierPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/SuggestionsModifierPart.java similarity index 85% rename from api/src/main/java/me/fixeddev/commandflow/part/defaults/SuggestionsModifierPart.java rename to api/src/main/java/team/unnamed/commandflow/part/defaults/SuggestionsModifierPart.java index ce956fff..d78b8c03 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/defaults/SuggestionsModifierPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/SuggestionsModifierPart.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; import net.kyori.adventure.text.Component; import org.jetbrains.annotations.Nullable; diff --git a/api/src/main/java/me/fixeddev/commandflow/part/defaults/SwitchPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/SwitchPart.java similarity index 89% rename from api/src/main/java/me/fixeddev/commandflow/part/defaults/SwitchPart.java rename to api/src/main/java/team/unnamed/commandflow/part/defaults/SwitchPart.java index 119db9e4..c74eeb66 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/defaults/SwitchPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/SwitchPart.java @@ -1,10 +1,10 @@ -package me.fixeddev.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; -import me.fixeddev.commandflow.stack.StackSnapshot; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.stack.StackSnapshot; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.TextComponent; import org.jetbrains.annotations.Nullable; diff --git a/api/src/main/java/me/fixeddev/commandflow/part/defaults/ValueFlagPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/ValueFlagPart.java similarity index 88% rename from api/src/main/java/me/fixeddev/commandflow/part/defaults/ValueFlagPart.java rename to api/src/main/java/team/unnamed/commandflow/part/defaults/ValueFlagPart.java index 2b75da8a..760831c2 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/defaults/ValueFlagPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/ValueFlagPart.java @@ -1,12 +1,12 @@ -package me.fixeddev.commandflow.part.defaults; - -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.ContextSnapshot; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.SinglePartWrapper; -import me.fixeddev.commandflow.stack.ArgumentStack; -import me.fixeddev.commandflow.stack.StackSnapshot; +package team.unnamed.commandflow.part.defaults; + +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.ContextSnapshot; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.SinglePartWrapper; +import team.unnamed.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.stack.StackSnapshot; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.TextComponent; import org.jetbrains.annotations.Nullable; diff --git a/api/src/main/java/team/unnamed/commandflow/part/visitor/CommandPartVisitor.java b/api/src/main/java/team/unnamed/commandflow/part/visitor/CommandPartVisitor.java new file mode 100644 index 00000000..3063d340 --- /dev/null +++ b/api/src/main/java/team/unnamed/commandflow/part/visitor/CommandPartVisitor.java @@ -0,0 +1,21 @@ +package team.unnamed.commandflow.part.visitor; + +import team.unnamed.commandflow.part.ArgumentPart; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.PartsWrapper; +import team.unnamed.commandflow.part.SinglePartWrapper; +import team.unnamed.commandflow.part.defaults.SubCommandPart; + +public interface CommandPartVisitor { + + R visit(CommandPart part); + + R visit(ArgumentPart argumentPart); + + R visit(PartsWrapper partsWrapper); + + R visit(SinglePartWrapper singlePartWrapper); + + R visit(SubCommandPart subCommandPart); + +} diff --git a/api/src/main/java/me/fixeddev/commandflow/part/visitor/UnwrappedCommandPartVisitor.java b/api/src/main/java/team/unnamed/commandflow/part/visitor/UnwrappedCommandPartVisitor.java similarity index 73% rename from api/src/main/java/me/fixeddev/commandflow/part/visitor/UnwrappedCommandPartVisitor.java rename to api/src/main/java/team/unnamed/commandflow/part/visitor/UnwrappedCommandPartVisitor.java index 7c4a5818..f4253394 100644 --- a/api/src/main/java/me/fixeddev/commandflow/part/visitor/UnwrappedCommandPartVisitor.java +++ b/api/src/main/java/team/unnamed/commandflow/part/visitor/UnwrappedCommandPartVisitor.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.part.visitor; +package team.unnamed.commandflow.part.visitor; -import me.fixeddev.commandflow.part.PartsWrapper; -import me.fixeddev.commandflow.part.defaults.FirstMatchPart; -import me.fixeddev.commandflow.part.defaults.SequentialCommandPart; +import team.unnamed.commandflow.part.PartsWrapper; +import team.unnamed.commandflow.part.defaults.FirstMatchPart; +import team.unnamed.commandflow.part.defaults.SequentialCommandPart; public interface UnwrappedCommandPartVisitor extends CommandPartVisitor { diff --git a/api/src/main/java/me/fixeddev/commandflow/stack/ArgumentStack.java b/api/src/main/java/team/unnamed/commandflow/stack/ArgumentStack.java similarity index 88% rename from api/src/main/java/me/fixeddev/commandflow/stack/ArgumentStack.java rename to api/src/main/java/team/unnamed/commandflow/stack/ArgumentStack.java index 98f2f4dd..9e2ecd91 100644 --- a/api/src/main/java/me/fixeddev/commandflow/stack/ArgumentStack.java +++ b/api/src/main/java/team/unnamed/commandflow/stack/ArgumentStack.java @@ -1,7 +1,7 @@ -package me.fixeddev.commandflow.stack; +package team.unnamed.commandflow.stack; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.exception.NoMoreArgumentsException; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.exception.NoMoreArgumentsException; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/stack/SimpleArgumentStack.java b/api/src/main/java/team/unnamed/commandflow/stack/SimpleArgumentStack.java similarity index 97% rename from api/src/main/java/me/fixeddev/commandflow/stack/SimpleArgumentStack.java rename to api/src/main/java/team/unnamed/commandflow/stack/SimpleArgumentStack.java index 740af216..15449196 100644 --- a/api/src/main/java/me/fixeddev/commandflow/stack/SimpleArgumentStack.java +++ b/api/src/main/java/team/unnamed/commandflow/stack/SimpleArgumentStack.java @@ -1,7 +1,7 @@ -package me.fixeddev.commandflow.stack; +package team.unnamed.commandflow.stack; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.exception.NoMoreArgumentsException; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.exception.NoMoreArgumentsException; import net.kyori.adventure.text.Component; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/stack/StackSnapshot.java b/api/src/main/java/team/unnamed/commandflow/stack/StackSnapshot.java similarity index 96% rename from api/src/main/java/me/fixeddev/commandflow/stack/StackSnapshot.java rename to api/src/main/java/team/unnamed/commandflow/stack/StackSnapshot.java index ba2d18f7..fb36e939 100644 --- a/api/src/main/java/me/fixeddev/commandflow/stack/StackSnapshot.java +++ b/api/src/main/java/team/unnamed/commandflow/stack/StackSnapshot.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.stack; +package team.unnamed.commandflow.stack; import java.util.ArrayList; import java.util.List; diff --git a/api/src/main/java/me/fixeddev/commandflow/translator/ComponentRendererTranslator.java b/api/src/main/java/team/unnamed/commandflow/translator/ComponentRendererTranslator.java similarity index 92% rename from api/src/main/java/me/fixeddev/commandflow/translator/ComponentRendererTranslator.java rename to api/src/main/java/team/unnamed/commandflow/translator/ComponentRendererTranslator.java index b871264d..1c2e16ce 100644 --- a/api/src/main/java/me/fixeddev/commandflow/translator/ComponentRendererTranslator.java +++ b/api/src/main/java/team/unnamed/commandflow/translator/ComponentRendererTranslator.java @@ -1,8 +1,7 @@ -package me.fixeddev.commandflow.translator; +package team.unnamed.commandflow.translator; -import me.fixeddev.commandflow.Namespace; +import team.unnamed.commandflow.Namespace; import net.kyori.adventure.text.Component; -import net.kyori.adventure.text.TextComponent; import net.kyori.adventure.text.renderer.ComponentRenderer; import net.kyori.adventure.text.renderer.TranslatableComponentRenderer; import org.jetbrains.annotations.NotNull; diff --git a/api/src/main/java/me/fixeddev/commandflow/translator/DefaultMapTranslationProvider.java b/api/src/main/java/team/unnamed/commandflow/translator/DefaultMapTranslationProvider.java similarity index 94% rename from api/src/main/java/me/fixeddev/commandflow/translator/DefaultMapTranslationProvider.java rename to api/src/main/java/team/unnamed/commandflow/translator/DefaultMapTranslationProvider.java index 147e3d75..a80ee159 100644 --- a/api/src/main/java/me/fixeddev/commandflow/translator/DefaultMapTranslationProvider.java +++ b/api/src/main/java/team/unnamed/commandflow/translator/DefaultMapTranslationProvider.java @@ -1,6 +1,6 @@ -package me.fixeddev.commandflow.translator; +package team.unnamed.commandflow.translator; -import me.fixeddev.commandflow.Namespace; +import team.unnamed.commandflow.Namespace; import java.util.HashMap; import java.util.Map; diff --git a/api/src/main/java/me/fixeddev/commandflow/translator/DefaultTranslator.java b/api/src/main/java/team/unnamed/commandflow/translator/DefaultTranslator.java similarity index 97% rename from api/src/main/java/me/fixeddev/commandflow/translator/DefaultTranslator.java rename to api/src/main/java/team/unnamed/commandflow/translator/DefaultTranslator.java index 3232f7bd..c2df6207 100644 --- a/api/src/main/java/me/fixeddev/commandflow/translator/DefaultTranslator.java +++ b/api/src/main/java/team/unnamed/commandflow/translator/DefaultTranslator.java @@ -1,6 +1,6 @@ -package me.fixeddev.commandflow.translator; +package team.unnamed.commandflow.translator; -import me.fixeddev.commandflow.Namespace; +import team.unnamed.commandflow.Namespace; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.TextComponent; import net.kyori.adventure.text.TranslatableComponent; diff --git a/api/src/main/java/me/fixeddev/commandflow/translator/TranslationProvider.java b/api/src/main/java/team/unnamed/commandflow/translator/TranslationProvider.java similarity index 54% rename from api/src/main/java/me/fixeddev/commandflow/translator/TranslationProvider.java rename to api/src/main/java/team/unnamed/commandflow/translator/TranslationProvider.java index e18d4d9f..f2c8e363 100644 --- a/api/src/main/java/me/fixeddev/commandflow/translator/TranslationProvider.java +++ b/api/src/main/java/team/unnamed/commandflow/translator/TranslationProvider.java @@ -1,6 +1,6 @@ -package me.fixeddev.commandflow.translator; +package team.unnamed.commandflow.translator; -import me.fixeddev.commandflow.Namespace; +import team.unnamed.commandflow.Namespace; public interface TranslationProvider { diff --git a/api/src/main/java/me/fixeddev/commandflow/translator/Translator.java b/api/src/main/java/team/unnamed/commandflow/translator/Translator.java similarity index 94% rename from api/src/main/java/me/fixeddev/commandflow/translator/Translator.java rename to api/src/main/java/team/unnamed/commandflow/translator/Translator.java index 58dc1c80..80cbd0f6 100644 --- a/api/src/main/java/me/fixeddev/commandflow/translator/Translator.java +++ b/api/src/main/java/team/unnamed/commandflow/translator/Translator.java @@ -1,6 +1,6 @@ -package me.fixeddev.commandflow.translator; +package team.unnamed.commandflow.translator; -import me.fixeddev.commandflow.Namespace; +import team.unnamed.commandflow.Namespace; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.TextComponent; diff --git a/api/src/main/java/me/fixeddev/commandflow/usage/DefaultUsageBuilder.java b/api/src/main/java/team/unnamed/commandflow/usage/DefaultUsageBuilder.java similarity index 85% rename from api/src/main/java/me/fixeddev/commandflow/usage/DefaultUsageBuilder.java rename to api/src/main/java/team/unnamed/commandflow/usage/DefaultUsageBuilder.java index 54b7f07a..902dd65a 100644 --- a/api/src/main/java/me/fixeddev/commandflow/usage/DefaultUsageBuilder.java +++ b/api/src/main/java/team/unnamed/commandflow/usage/DefaultUsageBuilder.java @@ -1,7 +1,7 @@ -package me.fixeddev.commandflow.usage; +package team.unnamed.commandflow.usage; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.command.Command; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.command.Command; import net.kyori.adventure.text.Component; public class DefaultUsageBuilder implements UsageBuilder { diff --git a/api/src/main/java/me/fixeddev/commandflow/usage/UsageBuilder.java b/api/src/main/java/team/unnamed/commandflow/usage/UsageBuilder.java similarity index 73% rename from api/src/main/java/me/fixeddev/commandflow/usage/UsageBuilder.java rename to api/src/main/java/team/unnamed/commandflow/usage/UsageBuilder.java index 199b97ef..5d50575f 100644 --- a/api/src/main/java/me/fixeddev/commandflow/usage/UsageBuilder.java +++ b/api/src/main/java/team/unnamed/commandflow/usage/UsageBuilder.java @@ -1,7 +1,8 @@ -package me.fixeddev.commandflow.usage; +package team.unnamed.commandflow.usage; -import me.fixeddev.commandflow.CommandContext; +import team.unnamed.commandflow.CommandContext; import net.kyori.adventure.text.Component; +import team.unnamed.commandflow.translator.Translator; /** * Creates a usage based on the CommandContext that you give to this class. @@ -14,7 +15,7 @@ public interface UsageBuilder { * * @param commandContext The {@link CommandContext} used to create a usage. * @return A {@link Component} containing the usage for this command, shouldn't be sent directly to the - * any executor without being translated first by a {@link me.fixeddev.commandflow.translator.Translator}. + * any executor without being translated first by a {@link Translator}. */ Component getUsage(CommandContext commandContext); diff --git a/api/src/test/java/me/fixeddev/commandflow/InputTokenizerTest.java b/api/src/test/java/team/unnamed/commandflow/InputTokenizerTest.java similarity index 86% rename from api/src/test/java/me/fixeddev/commandflow/InputTokenizerTest.java rename to api/src/test/java/team/unnamed/commandflow/InputTokenizerTest.java index 0d93d41e..1434d8e8 100644 --- a/api/src/test/java/me/fixeddev/commandflow/InputTokenizerTest.java +++ b/api/src/test/java/team/unnamed/commandflow/InputTokenizerTest.java @@ -1,7 +1,7 @@ -package me.fixeddev.commandflow; +package team.unnamed.commandflow; -import me.fixeddev.commandflow.input.InputTokenizer; -import me.fixeddev.commandflow.input.QuotedSpaceTokenizer; +import team.unnamed.commandflow.input.InputTokenizer; +import team.unnamed.commandflow.input.QuotedSpaceTokenizer; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/api/src/test/java/me/fixeddev/commandflow/ParameterizedPartTest.java b/api/src/test/java/team/unnamed/commandflow/ParameterizedPartTest.java similarity index 78% rename from api/src/test/java/me/fixeddev/commandflow/ParameterizedPartTest.java rename to api/src/test/java/team/unnamed/commandflow/ParameterizedPartTest.java index d35f440f..e0eb2d43 100644 --- a/api/src/test/java/me/fixeddev/commandflow/ParameterizedPartTest.java +++ b/api/src/test/java/team/unnamed/commandflow/ParameterizedPartTest.java @@ -1,15 +1,14 @@ -package me.fixeddev.commandflow; - -import me.fixeddev.commandflow.annotated.AnnotatedCommandTreeBuilder; -import me.fixeddev.commandflow.annotated.CommandClass; -import me.fixeddev.commandflow.annotated.annotation.Command; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.annotated.part.PartInjector; -import me.fixeddev.commandflow.annotated.part.defaults.DefaultsModule; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.ArgumentPart; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +package team.unnamed.commandflow; + +import team.unnamed.commandflow.annotated.AnnotatedCommandTreeBuilder; +import team.unnamed.commandflow.annotated.CommandClass; +import team.unnamed.commandflow.annotated.annotation.Command; +import team.unnamed.commandflow.annotated.part.PartInjector; +import team.unnamed.commandflow.annotated.part.defaults.DefaultsModule; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.ArgumentPart; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; import org.junit.jupiter.api.Test; import java.util.Collections; diff --git a/api/src/test/java/me/fixeddev/commandflow/annotated/CustomComponentParserTest.java b/api/src/test/java/team/unnamed/commandflow/annotated/CustomComponentParserTest.java similarity index 76% rename from api/src/test/java/me/fixeddev/commandflow/annotated/CustomComponentParserTest.java rename to api/src/test/java/team/unnamed/commandflow/annotated/CustomComponentParserTest.java index 24c098e9..92f33089 100644 --- a/api/src/test/java/me/fixeddev/commandflow/annotated/CustomComponentParserTest.java +++ b/api/src/test/java/team/unnamed/commandflow/annotated/CustomComponentParserTest.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.annotated; +package team.unnamed.commandflow.annotated; -import me.fixeddev.commandflow.annotated.annotation.Command; -import me.fixeddev.commandflow.annotated.annotation.Usage; -import me.fixeddev.commandflow.annotated.part.PartInjector; +import team.unnamed.commandflow.annotated.annotation.Command; +import team.unnamed.commandflow.annotated.annotation.Usage; +import team.unnamed.commandflow.annotated.part.PartInjector; import net.kyori.adventure.text.Component; import org.junit.jupiter.api.Test; @@ -20,9 +20,9 @@ void test() { // a component parser that always creates plain text components with "Hello " as the prefix builder.setComponentParser(string -> Component.text("Hello, " + string.toLowerCase(Locale.ROOT))); - List commands = builder.fromClass(new TestCommand()); + List commands = builder.fromClass(new TestCommand()); assertEquals(1, commands.size(), "Expected one command only"); - me.fixeddev.commandflow.command.Command command = commands.get(0); + team.unnamed.commandflow.command.Command command = commands.get(0); assertEquals("test", command.getName()); assertEquals("admin", command.getPermission()); assertEquals(Component.text("Hello, you don't have permission to do this!"), command.getPermissionMessage()); diff --git a/brigadier/src/main/java/me/fixeddev/commandflow/brigadier/BrigadierCommandManager.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandManager.java similarity index 93% rename from brigadier/src/main/java/me/fixeddev/commandflow/brigadier/BrigadierCommandManager.java rename to brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandManager.java index 67d5fad4..0e883b3f 100644 --- a/brigadier/src/main/java/me/fixeddev/commandflow/brigadier/BrigadierCommandManager.java +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandManager.java @@ -1,21 +1,20 @@ -package me.fixeddev.commandflow.brigadier; +package team.unnamed.commandflow.brigadier; import com.mojang.brigadier.exceptions.CommandSyntaxException; import com.mojang.brigadier.tree.LiteralCommandNode; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.CommandManager; -import me.fixeddev.commandflow.Namespace; -import me.fixeddev.commandflow.ParseResult; -import me.fixeddev.commandflow.bukkit.BukkitCommandManager; -import me.fixeddev.commandflow.bukkit.MessageUtils; -import me.fixeddev.commandflow.command.Command; -import me.fixeddev.commandflow.exception.CommandException; -import me.fixeddev.commandflow.exception.CommandUsage; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.CommandManager; +import team.unnamed.commandflow.Namespace; +import team.unnamed.commandflow.ParseResult; +import team.unnamed.commandflow.bukkit.BukkitCommandManager; +import team.unnamed.commandflow.bukkit.MessageUtils; +import team.unnamed.commandflow.command.Command; +import team.unnamed.commandflow.exception.CommandException; +import team.unnamed.commandflow.exception.CommandUsage; import me.lucko.commodore.Commodore; import me.lucko.commodore.CommodoreProvider; import net.kyori.adventure.text.Component; import net.md_5.bungee.api.chat.BaseComponent; -import net.md_5.bungee.api.chat.TranslatableComponent; import org.bukkit.Bukkit; import org.bukkit.command.CommandSender; import org.bukkit.entity.Entity; diff --git a/brigadier/src/main/java/me/fixeddev/commandflow/brigadier/BrigadierCommandWrapper.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandWrapper.java similarity index 67% rename from brigadier/src/main/java/me/fixeddev/commandflow/brigadier/BrigadierCommandWrapper.java rename to brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandWrapper.java index 54e390c6..0586732d 100644 --- a/brigadier/src/main/java/me/fixeddev/commandflow/brigadier/BrigadierCommandWrapper.java +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandWrapper.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.brigadier; +package team.unnamed.commandflow.brigadier; -import me.fixeddev.commandflow.CommandManager; -import me.fixeddev.commandflow.bukkit.BukkitCommandWrapper; -import me.fixeddev.commandflow.command.Command; -import me.fixeddev.commandflow.translator.Translator; +import team.unnamed.commandflow.CommandManager; +import team.unnamed.commandflow.bukkit.BukkitCommandWrapper; +import team.unnamed.commandflow.command.Command; +import team.unnamed.commandflow.translator.Translator; import net.kyori.adventure.text.Component; public class BrigadierCommandWrapper extends BukkitCommandWrapper { diff --git a/brigadier/src/main/java/me/fixeddev/commandflow/brigadier/BrigadierDefaultTranslationProvider.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierDefaultTranslationProvider.java similarity index 76% rename from brigadier/src/main/java/me/fixeddev/commandflow/brigadier/BrigadierDefaultTranslationProvider.java rename to brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierDefaultTranslationProvider.java index 08c6c0ae..e360053f 100644 --- a/brigadier/src/main/java/me/fixeddev/commandflow/brigadier/BrigadierDefaultTranslationProvider.java +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierDefaultTranslationProvider.java @@ -1,6 +1,6 @@ -package me.fixeddev.commandflow.brigadier; +package team.unnamed.commandflow.brigadier; -import me.fixeddev.commandflow.bukkit.BukkitDefaultTranslationProvider; +import team.unnamed.commandflow.bukkit.BukkitDefaultTranslationProvider; public class BrigadierDefaultTranslationProvider extends BukkitDefaultTranslationProvider { diff --git a/brigadier/src/main/java/me/fixeddev/commandflow/brigadier/CommandBrigadierConverter.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java similarity index 93% rename from brigadier/src/main/java/me/fixeddev/commandflow/brigadier/CommandBrigadierConverter.java rename to brigadier/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java index 43e5a36f..154df04b 100644 --- a/brigadier/src/main/java/me/fixeddev/commandflow/brigadier/CommandBrigadierConverter.java +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.brigadier; +package team.unnamed.commandflow.brigadier; import com.mojang.brigadier.arguments.ArgumentType; import com.mojang.brigadier.arguments.BoolArgumentType; @@ -11,30 +11,30 @@ import com.mojang.brigadier.builder.RequiredArgumentBuilder; import com.mojang.brigadier.tree.CommandNode; import com.mojang.brigadier.tree.LiteralCommandNode; -import me.fixeddev.commandflow.Authorizer; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.Namespace; -import me.fixeddev.commandflow.SimpleCommandContext; -import me.fixeddev.commandflow.bukkit.BukkitCommandManager; -import me.fixeddev.commandflow.bukkit.part.OfflinePlayerPart; -import me.fixeddev.commandflow.bukkit.part.PlayerPart; -import me.fixeddev.commandflow.command.Command; -import me.fixeddev.commandflow.part.ArgumentPart; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.part.PartsWrapper; -import me.fixeddev.commandflow.part.SinglePartWrapper; -import me.fixeddev.commandflow.part.defaults.BooleanPart; -import me.fixeddev.commandflow.part.defaults.DoublePart; -import me.fixeddev.commandflow.part.defaults.FirstMatchPart; -import me.fixeddev.commandflow.part.defaults.IntegerPart; -import me.fixeddev.commandflow.part.defaults.LongPart; -import me.fixeddev.commandflow.part.defaults.OptionalPart; -import me.fixeddev.commandflow.part.defaults.StringPart; -import me.fixeddev.commandflow.part.defaults.SubCommandPart; -import me.fixeddev.commandflow.part.defaults.SwitchPart; -import me.fixeddev.commandflow.part.defaults.ValueFlagPart; -import me.fixeddev.commandflow.part.visitor.CommandPartVisitor; -import me.fixeddev.commandflow.stack.SimpleArgumentStack; +import team.unnamed.commandflow.Authorizer; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.Namespace; +import team.unnamed.commandflow.SimpleCommandContext; +import team.unnamed.commandflow.bukkit.BukkitCommandManager; +import team.unnamed.commandflow.bukkit.part.OfflinePlayerPart; +import team.unnamed.commandflow.bukkit.part.PlayerPart; +import team.unnamed.commandflow.command.Command; +import team.unnamed.commandflow.part.ArgumentPart; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.PartsWrapper; +import team.unnamed.commandflow.part.SinglePartWrapper; +import team.unnamed.commandflow.part.defaults.BooleanPart; +import team.unnamed.commandflow.part.defaults.DoublePart; +import team.unnamed.commandflow.part.defaults.FirstMatchPart; +import team.unnamed.commandflow.part.defaults.IntegerPart; +import team.unnamed.commandflow.part.defaults.LongPart; +import team.unnamed.commandflow.part.defaults.OptionalPart; +import team.unnamed.commandflow.part.defaults.StringPart; +import team.unnamed.commandflow.part.defaults.SubCommandPart; +import team.unnamed.commandflow.part.defaults.SwitchPart; +import team.unnamed.commandflow.part.defaults.ValueFlagPart; +import team.unnamed.commandflow.part.visitor.CommandPartVisitor; +import team.unnamed.commandflow.stack.SimpleArgumentStack; import me.lucko.commodore.Commodore; import me.lucko.commodore.MinecraftArgumentTypes; import org.bukkit.Bukkit; diff --git a/brigadier/src/main/java/me/fixeddev/commandflow/brigadier/MultipleHeadNode.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNode.java similarity index 99% rename from brigadier/src/main/java/me/fixeddev/commandflow/brigadier/MultipleHeadNode.java rename to brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNode.java index 3f6f1b5f..98c0c670 100644 --- a/brigadier/src/main/java/me/fixeddev/commandflow/brigadier/MultipleHeadNode.java +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNode.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.brigadier; +package team.unnamed.commandflow.brigadier; import com.mojang.brigadier.builder.ArgumentBuilder; import com.mojang.brigadier.builder.LiteralArgumentBuilder; diff --git a/brigadier/src/main/java/me/fixeddev/commandflow/brigadier/MultipleHeadNodeBuilder.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNodeBuilder.java similarity index 99% rename from brigadier/src/main/java/me/fixeddev/commandflow/brigadier/MultipleHeadNodeBuilder.java rename to brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNodeBuilder.java index 69c1b9b0..5cb93c01 100644 --- a/brigadier/src/main/java/me/fixeddev/commandflow/brigadier/MultipleHeadNodeBuilder.java +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNodeBuilder.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.brigadier; +package team.unnamed.commandflow.brigadier; import com.mojang.brigadier.Command; import com.mojang.brigadier.RedirectModifier; diff --git a/brigadier/src/main/java/me/fixeddev/commandflow/brigadier/PermissionRequirement.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/PermissionRequirement.java similarity index 81% rename from brigadier/src/main/java/me/fixeddev/commandflow/brigadier/PermissionRequirement.java rename to brigadier/src/main/java/team/unnamed/commandflow/brigadier/PermissionRequirement.java index 63edbb82..21fb4687 100644 --- a/brigadier/src/main/java/me/fixeddev/commandflow/brigadier/PermissionRequirement.java +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/PermissionRequirement.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.brigadier; +package team.unnamed.commandflow.brigadier; -import me.fixeddev.commandflow.Authorizer; -import me.fixeddev.commandflow.Namespace; -import me.fixeddev.commandflow.bukkit.BukkitCommandManager; +import team.unnamed.commandflow.Authorizer; +import team.unnamed.commandflow.Namespace; +import team.unnamed.commandflow.bukkit.BukkitCommandManager; import me.lucko.commodore.Commodore; import org.bukkit.command.CommandSender; diff --git a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitAuthorizer.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitAuthorizer.java similarity index 77% rename from bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitAuthorizer.java rename to bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitAuthorizer.java index e6ed4af5..cd58a50e 100644 --- a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitAuthorizer.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitAuthorizer.java @@ -1,7 +1,7 @@ -package me.fixeddev.commandflow.bukkit; +package team.unnamed.commandflow.bukkit; -import me.fixeddev.commandflow.Authorizer; -import me.fixeddev.commandflow.Namespace; +import team.unnamed.commandflow.Authorizer; +import team.unnamed.commandflow.Namespace; import org.bukkit.command.CommandSender; public class BukkitAuthorizer implements Authorizer { diff --git a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitCommandManager.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandManager.java similarity index 87% rename from bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitCommandManager.java rename to bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandManager.java index 011976c1..b5937caf 100644 --- a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitCommandManager.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandManager.java @@ -1,25 +1,25 @@ -package me.fixeddev.commandflow.bukkit; - -import me.fixeddev.commandflow.Authorizer; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.CommandManager; -import me.fixeddev.commandflow.ErrorHandler; -import me.fixeddev.commandflow.Namespace; -import me.fixeddev.commandflow.ParseResult; -import me.fixeddev.commandflow.SimpleCommandManager; -import me.fixeddev.commandflow.command.Command; -import me.fixeddev.commandflow.command.modifiers.FallbackCommandModifiers; -import me.fixeddev.commandflow.exception.ArgumentException; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.exception.CommandException; -import me.fixeddev.commandflow.exception.CommandUsage; -import me.fixeddev.commandflow.exception.InvalidSubCommandException; -import me.fixeddev.commandflow.exception.NoMoreArgumentsException; -import me.fixeddev.commandflow.exception.NoPermissionsException; -import me.fixeddev.commandflow.executor.Executor; -import me.fixeddev.commandflow.input.InputTokenizer; -import me.fixeddev.commandflow.translator.Translator; -import me.fixeddev.commandflow.usage.UsageBuilder; +package team.unnamed.commandflow.bukkit; + +import team.unnamed.commandflow.Authorizer; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.CommandManager; +import team.unnamed.commandflow.ErrorHandler; +import team.unnamed.commandflow.Namespace; +import team.unnamed.commandflow.ParseResult; +import team.unnamed.commandflow.SimpleCommandManager; +import team.unnamed.commandflow.command.Command; +import team.unnamed.commandflow.command.modifiers.FallbackCommandModifiers; +import team.unnamed.commandflow.exception.ArgumentException; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.exception.CommandException; +import team.unnamed.commandflow.exception.CommandUsage; +import team.unnamed.commandflow.exception.InvalidSubCommandException; +import team.unnamed.commandflow.exception.NoMoreArgumentsException; +import team.unnamed.commandflow.exception.NoPermissionsException; +import team.unnamed.commandflow.executor.Executor; +import team.unnamed.commandflow.input.InputTokenizer; +import team.unnamed.commandflow.translator.Translator; +import team.unnamed.commandflow.usage.UsageBuilder; import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer; import org.bukkit.Bukkit; import org.bukkit.command.CommandMap; diff --git a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitCommandWrapper.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandWrapper.java similarity index 91% rename from bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitCommandWrapper.java rename to bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandWrapper.java index 2f56cd91..9067b734 100644 --- a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitCommandWrapper.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandWrapper.java @@ -1,13 +1,13 @@ -package me.fixeddev.commandflow.bukkit; +package team.unnamed.commandflow.bukkit; -import me.fixeddev.commandflow.Authorizer; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.CommandManager; -import me.fixeddev.commandflow.Namespace; -import me.fixeddev.commandflow.SimpleCommandContext; -import me.fixeddev.commandflow.exception.CommandException; -import me.fixeddev.commandflow.translator.Translator; +import team.unnamed.commandflow.Authorizer; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.CommandManager; +import team.unnamed.commandflow.Namespace; +import team.unnamed.commandflow.SimpleCommandContext; +import team.unnamed.commandflow.exception.CommandException; +import team.unnamed.commandflow.translator.Translator; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer; import net.md_5.bungee.api.chat.BaseComponent; @@ -24,7 +24,7 @@ public class BukkitCommandWrapper extends Command { protected final Component permissionMessage; protected final Translator translator; - public BukkitCommandWrapper(me.fixeddev.commandflow.command.Command command, + public BukkitCommandWrapper(team.unnamed.commandflow.command.Command command, CommandManager dispatcher, Translator translator) { super(command.getName()); diff --git a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitDefaultTranslationProvider.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitDefaultTranslationProvider.java similarity index 80% rename from bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitDefaultTranslationProvider.java rename to bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitDefaultTranslationProvider.java index 323d4320..c2930765 100644 --- a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/BukkitDefaultTranslationProvider.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitDefaultTranslationProvider.java @@ -1,6 +1,6 @@ -package me.fixeddev.commandflow.bukkit; +package team.unnamed.commandflow.bukkit; -import me.fixeddev.commandflow.translator.DefaultMapTranslationProvider; +import team.unnamed.commandflow.translator.DefaultMapTranslationProvider; public class BukkitDefaultTranslationProvider extends DefaultMapTranslationProvider { diff --git a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/MessageUtils.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/MessageUtils.java similarity index 96% rename from bukkit/src/main/java/me/fixeddev/commandflow/bukkit/MessageUtils.java rename to bukkit/src/main/java/team/unnamed/commandflow/bukkit/MessageUtils.java index ee19e212..8010ea5d 100644 --- a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/MessageUtils.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/MessageUtils.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.bukkit; +package team.unnamed.commandflow.bukkit; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer; diff --git a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/annotation/Exact.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/Exact.java similarity index 83% rename from bukkit/src/main/java/me/fixeddev/commandflow/bukkit/annotation/Exact.java rename to bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/Exact.java index ca110742..e73924ee 100644 --- a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/annotation/Exact.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/Exact.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.bukkit.annotation; +package team.unnamed.commandflow.bukkit.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/annotation/PlayerOrSource.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/PlayerOrSource.java similarity index 83% rename from bukkit/src/main/java/me/fixeddev/commandflow/bukkit/annotation/PlayerOrSource.java rename to bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/PlayerOrSource.java index d5ac64c8..942d93de 100644 --- a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/annotation/PlayerOrSource.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/PlayerOrSource.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.bukkit.annotation; +package team.unnamed.commandflow.bukkit.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/discord/src/main/java/me/fixeddev/commandflow/discord/annotation/Sender.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/Sender.java similarity index 83% rename from discord/src/main/java/me/fixeddev/commandflow/discord/annotation/Sender.java rename to bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/Sender.java index e9237974..a2809866 100644 --- a/discord/src/main/java/me/fixeddev/commandflow/discord/annotation/Sender.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/Sender.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.discord.annotation; +package team.unnamed.commandflow.bukkit.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/BukkitModule.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/BukkitModule.java similarity index 75% rename from bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/BukkitModule.java rename to bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/BukkitModule.java index d8c6bc5e..4e78e19b 100644 --- a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/BukkitModule.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/BukkitModule.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.bukkit.factory; +package team.unnamed.commandflow.bukkit.factory; -import me.fixeddev.commandflow.annotated.part.AbstractModule; -import me.fixeddev.commandflow.annotated.part.Key; -import me.fixeddev.commandflow.bukkit.annotation.Sender; +import team.unnamed.commandflow.annotated.part.AbstractModule; +import team.unnamed.commandflow.annotated.part.Key; +import team.unnamed.commandflow.bukkit.annotation.Sender; import org.bukkit.GameMode; import org.bukkit.OfflinePlayer; diff --git a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/CommandSenderFactory.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/CommandSenderFactory.java similarity index 55% rename from bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/CommandSenderFactory.java rename to bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/CommandSenderFactory.java index 5f5121e5..d76bba0e 100644 --- a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/CommandSenderFactory.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/CommandSenderFactory.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.bukkit.factory; +package team.unnamed.commandflow.bukkit.factory; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.bukkit.part.CommandSenderPart; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.bukkit.part.CommandSenderPart; +import team.unnamed.commandflow.part.CommandPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/GameModeFactory.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/GameModeFactory.java similarity index 55% rename from bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/GameModeFactory.java rename to bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/GameModeFactory.java index 7cf67d6d..1c937ee6 100644 --- a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/GameModeFactory.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/GameModeFactory.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.bukkit.factory; +package team.unnamed.commandflow.bukkit.factory; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.bukkit.part.GameModePart; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.bukkit.part.GameModePart; +import team.unnamed.commandflow.part.CommandPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/OfflinePlayerPartFactory.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/OfflinePlayerPartFactory.java similarity index 56% rename from bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/OfflinePlayerPartFactory.java rename to bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/OfflinePlayerPartFactory.java index da422445..db9a76c7 100644 --- a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/OfflinePlayerPartFactory.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/OfflinePlayerPartFactory.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.bukkit.factory; +package team.unnamed.commandflow.bukkit.factory; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.bukkit.annotation.PlayerOrSource; -import me.fixeddev.commandflow.bukkit.part.OfflinePlayerPart; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.bukkit.annotation.PlayerOrSource; +import team.unnamed.commandflow.bukkit.part.OfflinePlayerPart; +import team.unnamed.commandflow.part.CommandPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/PlayerPartFactory.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerPartFactory.java similarity index 56% rename from bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/PlayerPartFactory.java rename to bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerPartFactory.java index 89f0cfe2..8bbbbbea 100644 --- a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/PlayerPartFactory.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerPartFactory.java @@ -1,10 +1,10 @@ -package me.fixeddev.commandflow.bukkit.factory; +package team.unnamed.commandflow.bukkit.factory; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.bukkit.annotation.Exact; -import me.fixeddev.commandflow.bukkit.annotation.PlayerOrSource; -import me.fixeddev.commandflow.bukkit.part.PlayerPart; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.bukkit.annotation.Exact; +import team.unnamed.commandflow.bukkit.annotation.PlayerOrSource; +import team.unnamed.commandflow.bukkit.part.PlayerPart; +import team.unnamed.commandflow.part.CommandPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/PlayerSenderFactory.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerSenderFactory.java similarity index 55% rename from bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/PlayerSenderFactory.java rename to bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerSenderFactory.java index 9a2cf991..e92430c1 100644 --- a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/PlayerSenderFactory.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerSenderFactory.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.bukkit.factory; +package team.unnamed.commandflow.bukkit.factory; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.bukkit.part.PlayerSenderPart; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.bukkit.part.PlayerSenderPart; +import team.unnamed.commandflow.part.CommandPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/WorldFactory.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/WorldFactory.java similarity index 55% rename from bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/WorldFactory.java rename to bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/WorldFactory.java index 517ef383..6b47acbb 100644 --- a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/factory/WorldFactory.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/WorldFactory.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.bukkit.factory; +package team.unnamed.commandflow.bukkit.factory; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.bukkit.part.WorldPart; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.bukkit.part.WorldPart; +import team.unnamed.commandflow.part.CommandPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/BukkitParts.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/BukkitParts.java similarity index 67% rename from bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/BukkitParts.java rename to bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/BukkitParts.java index f2a92f2b..577984c1 100644 --- a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/BukkitParts.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/BukkitParts.java @@ -1,25 +1,27 @@ -package me.fixeddev.commandflow.bukkit.part; +package team.unnamed.commandflow.bukkit.part; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.part.ArgumentPart; +import team.unnamed.commandflow.stack.ArgumentStack; /** - * An utility class to ease the use of some {@link me.fixeddev.commandflow.part.CommandPart} specific instances for bukkit. + * An utility class to ease the use of some {@link CommandPart} specific instances for bukkit. */ public final class BukkitParts { /** - * A basic {@link me.fixeddev.commandflow.part.CommandPart} that provides the {@link org.bukkit.command.CommandSender} of the command from + * A basic {@link CommandPart} that provides the {@link org.bukkit.command.CommandSender} of the command from * the namespace. * * @param name The name for this part. - * @return A {@link me.fixeddev.commandflow.part.CommandPart} with a given name that returns the {@link org.bukkit.command.CommandSender} as argument. + * @return A {@link CommandPart} with a given name that returns the {@link org.bukkit.command.CommandSender} as argument. */ public static CommandSenderPart commandSender(String name) { return new CommandSenderPart(name); } /** - * A basic {@link me.fixeddev.commandflow.part.ArgumentPart} that takes a string from the {@link me.fixeddev.commandflow.stack.ArgumentStack} and parses it into + * A basic {@link ArgumentPart} that takes a string from the {@link ArgumentStack} and parses it into * a bukkit's {@link org.bukkit.GameMode} * * @param name The name for this part. @@ -30,7 +32,7 @@ public static GameModePart gameMode(String name) { } /** - * A basic {@link me.fixeddev.commandflow.part.ArgumentPart} that takes a string from the {@link me.fixeddev.commandflow.stack.ArgumentStack} and parses it into + * A basic {@link ArgumentPart} that takes a string from the {@link ArgumentStack} and parses it into * a bukkit's {@link org.bukkit.OfflinePlayer} * * @param name The name for this part. @@ -41,7 +43,7 @@ public static OfflinePlayerPart offlinePlayer(String name) { } /** - * A {@link me.fixeddev.commandflow.part.ArgumentPart} that takes a string from the {@link me.fixeddev.commandflow.stack.ArgumentStack} + * A {@link ArgumentPart} that takes a string from the {@link ArgumentStack} * and tries to parse it into an {@link org.bukkit.OfflinePlayer}, if it is not available or the parsed player isn't * valid, then tries to parse the CommandSender as an OfflinePlayer. * @@ -54,7 +56,7 @@ public static OfflinePlayerPart offlinePlayerOrSource(String name) { } /** - * A basic {@link me.fixeddev.commandflow.part.ArgumentPart} that takes a string as nick or uuid from the {@link me.fixeddev.commandflow.stack.ArgumentStack} and parses it into + * A basic {@link ArgumentPart} that takes a string as nick or uuid from the {@link ArgumentStack} and parses it into * a bukkit's {@link org.bukkit.entity.Player} using the method {@link org.bukkit.Bukkit#getPlayer(String)} * * @param name The name for this part. @@ -65,7 +67,7 @@ public static PlayerPart player(String name) { } /** - * A basic {@link me.fixeddev.commandflow.part.ArgumentPart} that takes a string as nick from the {@link me.fixeddev.commandflow.stack.ArgumentStack} and parses it into + * A basic {@link ArgumentPart} that takes a string as nick from the {@link ArgumentStack} and parses it into * a bukkit's {@link org.bukkit.entity.Player} using the method {@link org.bukkit.Bukkit#getPlayerExact(String)} * * @param name The name for this part. @@ -76,7 +78,7 @@ public static PlayerPart exactPlayer(String name) { } /** - * A {@link me.fixeddev.commandflow.part.ArgumentPart} that takes a string as nick or as uuid from the {@link me.fixeddev.commandflow.stack.ArgumentStack} + * A {@link ArgumentPart} that takes a string as nick or as uuid from the {@link ArgumentStack} * and tries to parse it into an {@link org.bukkit.entity.Player}, if it is not available or the parsed player isn't * valid, then tries to parse the CommandSender as an Player. * @@ -89,8 +91,8 @@ public static PlayerPart playerOrSource(String name) { } /** - * A {@link me.fixeddev.commandflow.part.ArgumentPart} that takes a string as nick or as uuid (if exact mode is not enabled) - * from the {@link me.fixeddev.commandflow.stack.ArgumentStack} and tries to parse it into an {@link org.bukkit.entity.Player}. + * A {@link ArgumentPart} that takes a string as nick or as uuid (if exact mode is not enabled) + * from the {@link ArgumentStack} and tries to parse it into an {@link org.bukkit.entity.Player}. * * @param name The name for this part. * @param exact If we should use {@link org.bukkit.Bukkit#getPlayerExact(String)} instead of {@link org.bukkit.Bukkit#getPlayer(String)} @@ -102,7 +104,7 @@ public static PlayerPart player(String name, boolean exact, boolean orSource) { } /** - * A {@link me.fixeddev.commandflow.part.CommandPart} that tries parsing the CommandSender as a {@link org.bukkit.entity.Player}. + * A {@link CommandPart} that tries parsing the CommandSender as a {@link org.bukkit.entity.Player}. * * @param name The name for this part. * @return a {@link CommandPart} with the given name that tries to parse the command sender as a {@link org.bukkit.entity.Player}. @@ -112,7 +114,7 @@ public static PlayerSenderPart playerAsSender(String name) { } /** - * A {@link me.fixeddev.commandflow.part.ArgumentPart} that takes a string as world name and tries to parse it into a + * A {@link ArgumentPart} that takes a string as world name and tries to parse it into a * bukkit's {@link org.bukkit.World}. * * @param name The name for this part. diff --git a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/CommandSenderPart.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/CommandSenderPart.java similarity index 74% rename from bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/CommandSenderPart.java rename to bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/CommandSenderPart.java index debd36e9..2d64ee8b 100644 --- a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/CommandSenderPart.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/CommandSenderPart.java @@ -1,11 +1,11 @@ -package me.fixeddev.commandflow.bukkit.part; - -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.bukkit.BukkitCommandManager; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.exception.CommandException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +package team.unnamed.commandflow.bukkit.part; + +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.bukkit.BukkitCommandManager; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.exception.CommandException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; import net.kyori.adventure.text.Component; import org.bukkit.command.CommandSender; diff --git a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/GameModePart.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/GameModePart.java similarity index 87% rename from bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/GameModePart.java rename to bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/GameModePart.java index ac0e08f4..39b97830 100644 --- a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/GameModePart.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/GameModePart.java @@ -1,10 +1,10 @@ -package me.fixeddev.commandflow.bukkit.part; +package team.unnamed.commandflow.bukkit.part; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.ArgumentPart; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.ArgumentPart; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; import net.kyori.adventure.text.Component; diff --git a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/OfflinePlayerPart.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/OfflinePlayerPart.java similarity index 88% rename from bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/OfflinePlayerPart.java rename to bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/OfflinePlayerPart.java index 9f29b765..e5eea592 100644 --- a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/OfflinePlayerPart.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/OfflinePlayerPart.java @@ -1,11 +1,11 @@ -package me.fixeddev.commandflow.bukkit.part; - -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.bukkit.BukkitCommandManager; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.ArgumentPart; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +package team.unnamed.commandflow.bukkit.part; + +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.bukkit.BukkitCommandManager; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.ArgumentPart; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; import org.bukkit.Bukkit; import org.bukkit.OfflinePlayer; import org.bukkit.command.CommandSender; diff --git a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/PlayerPart.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerPart.java similarity index 86% rename from bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/PlayerPart.java rename to bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerPart.java index d7667ee9..40b7bf44 100644 --- a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/PlayerPart.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerPart.java @@ -1,11 +1,11 @@ -package me.fixeddev.commandflow.bukkit.part; - -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.bukkit.BukkitCommandManager; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.ArgumentPart; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +package team.unnamed.commandflow.bukkit.part; + +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.bukkit.BukkitCommandManager; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.ArgumentPart; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; import net.kyori.adventure.text.Component; import org.bukkit.Bukkit; @@ -17,7 +17,7 @@ import java.util.Objects; import java.util.UUID; -import static me.fixeddev.commandflow.bukkit.part.OfflinePlayerPart.getStrings; +import static team.unnamed.commandflow.bukkit.part.OfflinePlayerPart.getStrings; public class PlayerPart implements ArgumentPart { diff --git a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/PlayerSenderPart.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerSenderPart.java similarity index 77% rename from bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/PlayerSenderPart.java rename to bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerSenderPart.java index 7996d114..7483d25e 100644 --- a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/PlayerSenderPart.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerSenderPart.java @@ -1,11 +1,11 @@ -package me.fixeddev.commandflow.bukkit.part; - -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.bukkit.BukkitCommandManager; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.exception.CommandException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +package team.unnamed.commandflow.bukkit.part; + +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.bukkit.BukkitCommandManager; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.exception.CommandException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; import net.kyori.adventure.text.Component; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; diff --git a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/WorldPart.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/WorldPart.java similarity index 82% rename from bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/WorldPart.java rename to bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/WorldPart.java index 52bf0db3..7bc16b13 100644 --- a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/part/WorldPart.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/WorldPart.java @@ -1,10 +1,10 @@ -package me.fixeddev.commandflow.bukkit.part; +package team.unnamed.commandflow.bukkit.part; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.ArgumentPart; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.ArgumentPart; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; import org.bukkit.Bukkit; import org.bukkit.World; diff --git a/bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeAuthorizer.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeAuthorizer.java similarity index 77% rename from bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeAuthorizer.java rename to bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeAuthorizer.java index f4f3c71c..f1397a83 100644 --- a/bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeAuthorizer.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeAuthorizer.java @@ -1,7 +1,7 @@ -package me.fixeddev.commandflow.bungee; +package team.unnamed.commandflow.bungee; -import me.fixeddev.commandflow.Authorizer; -import me.fixeddev.commandflow.Namespace; +import team.unnamed.commandflow.Authorizer; +import team.unnamed.commandflow.Namespace; import net.md_5.bungee.api.CommandSender; public class BungeeAuthorizer implements Authorizer { diff --git a/bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeCommandManager.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandManager.java similarity index 87% rename from bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeCommandManager.java rename to bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandManager.java index c9d4139e..c90a6125 100644 --- a/bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeCommandManager.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandManager.java @@ -1,24 +1,24 @@ -package me.fixeddev.commandflow.bungee; - -import me.fixeddev.commandflow.Authorizer; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.CommandManager; -import me.fixeddev.commandflow.ErrorHandler; -import me.fixeddev.commandflow.Namespace; -import me.fixeddev.commandflow.ParseResult; -import me.fixeddev.commandflow.SimpleCommandManager; -import me.fixeddev.commandflow.command.Command; -import me.fixeddev.commandflow.command.modifiers.FallbackCommandModifiers; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.exception.CommandException; -import me.fixeddev.commandflow.exception.CommandUsage; -import me.fixeddev.commandflow.exception.InvalidSubCommandException; -import me.fixeddev.commandflow.exception.NoMoreArgumentsException; -import me.fixeddev.commandflow.exception.NoPermissionsException; -import me.fixeddev.commandflow.executor.Executor; -import me.fixeddev.commandflow.input.InputTokenizer; -import me.fixeddev.commandflow.translator.Translator; -import me.fixeddev.commandflow.usage.UsageBuilder; +package team.unnamed.commandflow.bungee; + +import team.unnamed.commandflow.Authorizer; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.CommandManager; +import team.unnamed.commandflow.ErrorHandler; +import team.unnamed.commandflow.Namespace; +import team.unnamed.commandflow.ParseResult; +import team.unnamed.commandflow.SimpleCommandManager; +import team.unnamed.commandflow.command.Command; +import team.unnamed.commandflow.command.modifiers.FallbackCommandModifiers; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.exception.CommandException; +import team.unnamed.commandflow.exception.CommandUsage; +import team.unnamed.commandflow.exception.InvalidSubCommandException; +import team.unnamed.commandflow.exception.NoMoreArgumentsException; +import team.unnamed.commandflow.exception.NoPermissionsException; +import team.unnamed.commandflow.executor.Executor; +import team.unnamed.commandflow.input.InputTokenizer; +import team.unnamed.commandflow.translator.Translator; +import team.unnamed.commandflow.usage.UsageBuilder; import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer; import net.md_5.bungee.api.plugin.Plugin; diff --git a/bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeCommandWrapper.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandWrapper.java similarity index 89% rename from bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeCommandWrapper.java rename to bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandWrapper.java index 6384aa19..4af1d693 100644 --- a/bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeCommandWrapper.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandWrapper.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.bungee; +package team.unnamed.commandflow.bungee; -import me.fixeddev.commandflow.CommandManager; -import me.fixeddev.commandflow.Namespace; -import me.fixeddev.commandflow.exception.CommandException; -import me.fixeddev.commandflow.translator.Translator; +import team.unnamed.commandflow.CommandManager; +import team.unnamed.commandflow.Namespace; +import team.unnamed.commandflow.exception.CommandException; +import team.unnamed.commandflow.translator.Translator; import net.kyori.adventure.text.Component; import net.md_5.bungee.api.CommandSender; import net.md_5.bungee.api.chat.BaseComponent; @@ -22,7 +22,7 @@ public class BungeeCommandWrapper extends Command implements TabExecutor { protected final String[] aliases; protected final String permission; - public BungeeCommandWrapper(me.fixeddev.commandflow.command.Command command, CommandManager commandManager, + public BungeeCommandWrapper(team.unnamed.commandflow.command.Command command, CommandManager commandManager, Translator translator) { super(command.getName()); diff --git a/bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeDefaultTranslationProvider.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeDefaultTranslationProvider.java similarity index 77% rename from bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeDefaultTranslationProvider.java rename to bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeDefaultTranslationProvider.java index 5361134d..4ce0bb32 100644 --- a/bungee/src/main/java/me/fixeddev/commandflow/bungee/BungeeDefaultTranslationProvider.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeDefaultTranslationProvider.java @@ -1,6 +1,6 @@ -package me.fixeddev.commandflow.bungee; +package team.unnamed.commandflow.bungee; -import me.fixeddev.commandflow.translator.DefaultMapTranslationProvider; +import team.unnamed.commandflow.translator.DefaultMapTranslationProvider; public class BungeeDefaultTranslationProvider extends DefaultMapTranslationProvider { diff --git a/bungee/src/main/java/me/fixeddev/commandflow/bungee/MessageUtils.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/MessageUtils.java similarity index 93% rename from bungee/src/main/java/me/fixeddev/commandflow/bungee/MessageUtils.java rename to bungee/src/main/java/team/unnamed/commandflow/bungee/MessageUtils.java index 7b617541..93538150 100644 --- a/bungee/src/main/java/me/fixeddev/commandflow/bungee/MessageUtils.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/MessageUtils.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.bungee; +package team.unnamed.commandflow.bungee; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer; diff --git a/bungee/src/main/java/me/fixeddev/commandflow/bungee/annotation/ProxiedPlayerOrSource.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/annotation/ProxiedPlayerOrSource.java similarity index 84% rename from bungee/src/main/java/me/fixeddev/commandflow/bungee/annotation/ProxiedPlayerOrSource.java rename to bungee/src/main/java/team/unnamed/commandflow/bungee/annotation/ProxiedPlayerOrSource.java index 4e15f2d7..aae483fc 100644 --- a/bungee/src/main/java/me/fixeddev/commandflow/bungee/annotation/ProxiedPlayerOrSource.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/annotation/ProxiedPlayerOrSource.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.bungee.annotation; +package team.unnamed.commandflow.bungee.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/annotation/Sender.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/annotation/Sender.java similarity index 83% rename from bukkit/src/main/java/me/fixeddev/commandflow/bukkit/annotation/Sender.java rename to bungee/src/main/java/team/unnamed/commandflow/bungee/annotation/Sender.java index b6328efb..bd970f9d 100644 --- a/bukkit/src/main/java/me/fixeddev/commandflow/bukkit/annotation/Sender.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/annotation/Sender.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.bukkit.annotation; +package team.unnamed.commandflow.bungee.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/BungeeModule.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/BungeeModule.java similarity index 67% rename from bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/BungeeModule.java rename to bungee/src/main/java/team/unnamed/commandflow/bungee/factory/BungeeModule.java index fae33a33..712a8cd6 100644 --- a/bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/BungeeModule.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/BungeeModule.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.bungee.factory; +package team.unnamed.commandflow.bungee.factory; -import me.fixeddev.commandflow.annotated.part.AbstractModule; -import me.fixeddev.commandflow.annotated.part.Key; -import me.fixeddev.commandflow.bungee.annotation.Sender; +import team.unnamed.commandflow.annotated.part.AbstractModule; +import team.unnamed.commandflow.annotated.part.Key; +import team.unnamed.commandflow.bungee.annotation.Sender; import net.md_5.bungee.api.CommandSender; import net.md_5.bungee.api.connection.ProxiedPlayer; diff --git a/bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/CommandSenderPartFactory.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/CommandSenderPartFactory.java similarity index 56% rename from bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/CommandSenderPartFactory.java rename to bungee/src/main/java/team/unnamed/commandflow/bungee/factory/CommandSenderPartFactory.java index d27cef6d..a6b3c831 100644 --- a/bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/CommandSenderPartFactory.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/CommandSenderPartFactory.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.bungee.factory; +package team.unnamed.commandflow.bungee.factory; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.bungee.part.CommandSenderPart; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.bungee.part.CommandSenderPart; +import team.unnamed.commandflow.part.CommandPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/ProxiedPlayerPartFactory.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/ProxiedPlayerPartFactory.java similarity index 56% rename from bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/ProxiedPlayerPartFactory.java rename to bungee/src/main/java/team/unnamed/commandflow/bungee/factory/ProxiedPlayerPartFactory.java index a0523717..1fc9f557 100644 --- a/bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/ProxiedPlayerPartFactory.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/ProxiedPlayerPartFactory.java @@ -1,9 +1,9 @@ -package me.fixeddev.commandflow.bungee.factory; +package team.unnamed.commandflow.bungee.factory; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.bungee.annotation.ProxiedPlayerOrSource; -import me.fixeddev.commandflow.bungee.part.ProxiedPlayerPart; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.bungee.annotation.ProxiedPlayerOrSource; +import team.unnamed.commandflow.bungee.part.ProxiedPlayerPart; +import team.unnamed.commandflow.part.CommandPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/ProxiedPlayerSenderPartFactory.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/ProxiedPlayerSenderPartFactory.java similarity index 56% rename from bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/ProxiedPlayerSenderPartFactory.java rename to bungee/src/main/java/team/unnamed/commandflow/bungee/factory/ProxiedPlayerSenderPartFactory.java index e607a1d3..1bf40125 100644 --- a/bungee/src/main/java/me/fixeddev/commandflow/bungee/factory/ProxiedPlayerSenderPartFactory.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/ProxiedPlayerSenderPartFactory.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.bungee.factory; +package team.unnamed.commandflow.bungee.factory; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.bungee.part.ProxiedPlayerSenderPart; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.bungee.part.ProxiedPlayerSenderPart; +import team.unnamed.commandflow.part.CommandPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/bungee/src/main/java/me/fixeddev/commandflow/bungee/part/CommandSenderPart.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/part/CommandSenderPart.java similarity index 74% rename from bungee/src/main/java/me/fixeddev/commandflow/bungee/part/CommandSenderPart.java rename to bungee/src/main/java/team/unnamed/commandflow/bungee/part/CommandSenderPart.java index 6c19b727..fbfcbaad 100644 --- a/bungee/src/main/java/me/fixeddev/commandflow/bungee/part/CommandSenderPart.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/part/CommandSenderPart.java @@ -1,11 +1,11 @@ -package me.fixeddev.commandflow.bungee.part; - -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.bungee.BungeeCommandManager; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.exception.CommandException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +package team.unnamed.commandflow.bungee.part; + +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.bungee.BungeeCommandManager; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.exception.CommandException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; import net.kyori.adventure.text.Component; import net.md_5.bungee.api.CommandSender; diff --git a/bungee/src/main/java/me/fixeddev/commandflow/bungee/part/ProxiedPlayerPart.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/part/ProxiedPlayerPart.java similarity index 88% rename from bungee/src/main/java/me/fixeddev/commandflow/bungee/part/ProxiedPlayerPart.java rename to bungee/src/main/java/team/unnamed/commandflow/bungee/part/ProxiedPlayerPart.java index 56feca71..1ba83dc8 100644 --- a/bungee/src/main/java/me/fixeddev/commandflow/bungee/part/ProxiedPlayerPart.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/part/ProxiedPlayerPart.java @@ -1,11 +1,11 @@ -package me.fixeddev.commandflow.bungee.part; - -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.bungee.BungeeCommandManager; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.ArgumentPart; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +package team.unnamed.commandflow.bungee.part; + +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.bungee.BungeeCommandManager; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.ArgumentPart; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; import net.kyori.adventure.text.Component; import net.md_5.bungee.api.CommandSender; import net.md_5.bungee.api.ProxyServer; diff --git a/bungee/src/main/java/me/fixeddev/commandflow/bungee/part/ProxiedPlayerSenderPart.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/part/ProxiedPlayerSenderPart.java similarity index 78% rename from bungee/src/main/java/me/fixeddev/commandflow/bungee/part/ProxiedPlayerSenderPart.java rename to bungee/src/main/java/team/unnamed/commandflow/bungee/part/ProxiedPlayerSenderPart.java index 4014f594..d8b9f0c4 100644 --- a/bungee/src/main/java/me/fixeddev/commandflow/bungee/part/ProxiedPlayerSenderPart.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/part/ProxiedPlayerSenderPart.java @@ -1,11 +1,11 @@ -package me.fixeddev.commandflow.bungee.part; - -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.bungee.BungeeCommandManager; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.exception.CommandException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +package team.unnamed.commandflow.bungee.part; + +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.bungee.BungeeCommandManager; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.exception.CommandException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; import net.kyori.adventure.text.Component; import net.md_5.bungee.api.CommandSender; import net.md_5.bungee.api.connection.ProxiedPlayer; diff --git a/discord/src/main/java/me/fixeddev/commandflow/discord/DiscordAuthorizer.java b/discord/src/main/java/team/unnamed/commandflow/discord/DiscordAuthorizer.java similarity index 89% rename from discord/src/main/java/me/fixeddev/commandflow/discord/DiscordAuthorizer.java rename to discord/src/main/java/team/unnamed/commandflow/discord/DiscordAuthorizer.java index f359eb77..47aa732e 100644 --- a/discord/src/main/java/me/fixeddev/commandflow/discord/DiscordAuthorizer.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/DiscordAuthorizer.java @@ -1,7 +1,7 @@ -package me.fixeddev.commandflow.discord; +package team.unnamed.commandflow.discord; -import me.fixeddev.commandflow.Authorizer; -import me.fixeddev.commandflow.Namespace; +import team.unnamed.commandflow.Authorizer; +import team.unnamed.commandflow.Namespace; import net.dv8tion.jda.api.Permission; import net.dv8tion.jda.api.entities.GuildChannel; import net.dv8tion.jda.api.entities.Member; diff --git a/discord/src/main/java/me/fixeddev/commandflow/discord/DiscordCommandManager.java b/discord/src/main/java/team/unnamed/commandflow/discord/DiscordCommandManager.java similarity index 85% rename from discord/src/main/java/me/fixeddev/commandflow/discord/DiscordCommandManager.java rename to discord/src/main/java/team/unnamed/commandflow/discord/DiscordCommandManager.java index b0067033..d4f29d87 100644 --- a/discord/src/main/java/me/fixeddev/commandflow/discord/DiscordCommandManager.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/DiscordCommandManager.java @@ -1,27 +1,26 @@ -package me.fixeddev.commandflow.discord; - -import me.fixeddev.commandflow.Authorizer; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.CommandManager; -import me.fixeddev.commandflow.ErrorHandler; -import me.fixeddev.commandflow.Namespace; -import me.fixeddev.commandflow.ParseResult; -import me.fixeddev.commandflow.SimpleCommandManager; -import me.fixeddev.commandflow.command.Command; -import me.fixeddev.commandflow.command.modifiers.FallbackCommandModifiers; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.exception.CommandException; -import me.fixeddev.commandflow.exception.CommandUsage; -import me.fixeddev.commandflow.exception.InvalidSubCommandException; -import me.fixeddev.commandflow.exception.NoMoreArgumentsException; -import me.fixeddev.commandflow.exception.NoPermissionsException; -import me.fixeddev.commandflow.executor.Executor; -import me.fixeddev.commandflow.input.InputTokenizer; -import me.fixeddev.commandflow.translator.Translator; -import me.fixeddev.commandflow.usage.UsageBuilder; +package team.unnamed.commandflow.discord; + +import team.unnamed.commandflow.Authorizer; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.CommandManager; +import team.unnamed.commandflow.ErrorHandler; +import team.unnamed.commandflow.Namespace; +import team.unnamed.commandflow.ParseResult; +import team.unnamed.commandflow.SimpleCommandManager; +import team.unnamed.commandflow.command.Command; +import team.unnamed.commandflow.command.modifiers.FallbackCommandModifiers; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.exception.CommandException; +import team.unnamed.commandflow.exception.CommandUsage; +import team.unnamed.commandflow.exception.InvalidSubCommandException; +import team.unnamed.commandflow.exception.NoMoreArgumentsException; +import team.unnamed.commandflow.exception.NoPermissionsException; +import team.unnamed.commandflow.executor.Executor; +import team.unnamed.commandflow.input.InputTokenizer; +import team.unnamed.commandflow.translator.Translator; +import team.unnamed.commandflow.usage.UsageBuilder; import net.dv8tion.jda.api.JDA; -import java.security.MessageDigest; import java.util.List; import java.util.Optional; import java.util.Set; diff --git a/discord/src/main/java/me/fixeddev/commandflow/discord/DiscordDefaultTranslationProvider.java b/discord/src/main/java/team/unnamed/commandflow/discord/DiscordDefaultTranslationProvider.java similarity index 75% rename from discord/src/main/java/me/fixeddev/commandflow/discord/DiscordDefaultTranslationProvider.java rename to discord/src/main/java/team/unnamed/commandflow/discord/DiscordDefaultTranslationProvider.java index 13f8a72a..31c33b31 100644 --- a/discord/src/main/java/me/fixeddev/commandflow/discord/DiscordDefaultTranslationProvider.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/DiscordDefaultTranslationProvider.java @@ -1,6 +1,6 @@ -package me.fixeddev.commandflow.discord; +package team.unnamed.commandflow.discord; -import me.fixeddev.commandflow.translator.DefaultMapTranslationProvider; +import team.unnamed.commandflow.translator.DefaultMapTranslationProvider; public class DiscordDefaultTranslationProvider extends DefaultMapTranslationProvider { diff --git a/discord/src/main/java/me/fixeddev/commandflow/discord/MessageListener.java b/discord/src/main/java/team/unnamed/commandflow/discord/MessageListener.java similarity index 83% rename from discord/src/main/java/me/fixeddev/commandflow/discord/MessageListener.java rename to discord/src/main/java/team/unnamed/commandflow/discord/MessageListener.java index 3c67bec0..ad4d6d7b 100644 --- a/discord/src/main/java/me/fixeddev/commandflow/discord/MessageListener.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/MessageListener.java @@ -1,14 +1,9 @@ -package me.fixeddev.commandflow.discord; - -import me.fixeddev.commandflow.CommandManager; -import me.fixeddev.commandflow.Namespace; -import me.fixeddev.commandflow.discord.utils.MessageUtils; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.exception.CommandException; -import me.fixeddev.commandflow.exception.CommandUsage; -import me.fixeddev.commandflow.exception.InvalidSubCommandException; -import me.fixeddev.commandflow.exception.NoMoreArgumentsException; -import me.fixeddev.commandflow.exception.NoPermissionsException; +package team.unnamed.commandflow.discord; + +import team.unnamed.commandflow.CommandManager; +import team.unnamed.commandflow.Namespace; +import team.unnamed.commandflow.discord.utils.MessageUtils; +import team.unnamed.commandflow.exception.CommandException; import net.dv8tion.jda.api.entities.Member; import net.dv8tion.jda.api.entities.Message; import net.dv8tion.jda.api.entities.TextChannel; diff --git a/velocity/src/main/java/me/fixeddev/commandflow/velocity/annotation/Sender.java b/discord/src/main/java/team/unnamed/commandflow/discord/annotation/Sender.java similarity index 83% rename from velocity/src/main/java/me/fixeddev/commandflow/velocity/annotation/Sender.java rename to discord/src/main/java/team/unnamed/commandflow/discord/annotation/Sender.java index 9c5b0574..3a26dd56 100644 --- a/velocity/src/main/java/me/fixeddev/commandflow/velocity/annotation/Sender.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/annotation/Sender.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.velocity.annotation; +package team.unnamed.commandflow.discord.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/discord/src/main/java/me/fixeddev/commandflow/discord/factory/DiscordModule.java b/discord/src/main/java/team/unnamed/commandflow/discord/factory/DiscordModule.java similarity index 75% rename from discord/src/main/java/me/fixeddev/commandflow/discord/factory/DiscordModule.java rename to discord/src/main/java/team/unnamed/commandflow/discord/factory/DiscordModule.java index 32a7012c..7bdb80ba 100644 --- a/discord/src/main/java/me/fixeddev/commandflow/discord/factory/DiscordModule.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/factory/DiscordModule.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.discord.factory; +package team.unnamed.commandflow.discord.factory; -import me.fixeddev.commandflow.annotated.part.AbstractModule; -import me.fixeddev.commandflow.annotated.part.Key; -import me.fixeddev.commandflow.discord.annotation.Sender; +import team.unnamed.commandflow.annotated.part.AbstractModule; +import team.unnamed.commandflow.annotated.part.Key; +import team.unnamed.commandflow.discord.annotation.Sender; import net.dv8tion.jda.api.entities.Member; import net.dv8tion.jda.api.entities.Message; import net.dv8tion.jda.api.entities.TextChannel; diff --git a/discord/src/main/java/me/fixeddev/commandflow/discord/factory/MemberPartFactory.java b/discord/src/main/java/team/unnamed/commandflow/discord/factory/MemberPartFactory.java similarity index 55% rename from discord/src/main/java/me/fixeddev/commandflow/discord/factory/MemberPartFactory.java rename to discord/src/main/java/team/unnamed/commandflow/discord/factory/MemberPartFactory.java index 918dd3e6..5e827bf8 100644 --- a/discord/src/main/java/me/fixeddev/commandflow/discord/factory/MemberPartFactory.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/factory/MemberPartFactory.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.discord.factory; +package team.unnamed.commandflow.discord.factory; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.discord.part.MemberPart; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.discord.part.MemberPart; +import team.unnamed.commandflow.part.CommandPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/discord/src/main/java/me/fixeddev/commandflow/discord/factory/MemberSenderPartFactory.java b/discord/src/main/java/team/unnamed/commandflow/discord/factory/MemberSenderPartFactory.java similarity index 55% rename from discord/src/main/java/me/fixeddev/commandflow/discord/factory/MemberSenderPartFactory.java rename to discord/src/main/java/team/unnamed/commandflow/discord/factory/MemberSenderPartFactory.java index f302c1f2..71c09b7c 100644 --- a/discord/src/main/java/me/fixeddev/commandflow/discord/factory/MemberSenderPartFactory.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/factory/MemberSenderPartFactory.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.discord.factory; +package team.unnamed.commandflow.discord.factory; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.discord.part.MemberSenderPart; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.discord.part.MemberSenderPart; +import team.unnamed.commandflow.part.CommandPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/discord/src/main/java/me/fixeddev/commandflow/discord/factory/MessagePartFactory.java b/discord/src/main/java/team/unnamed/commandflow/discord/factory/MessagePartFactory.java similarity index 55% rename from discord/src/main/java/me/fixeddev/commandflow/discord/factory/MessagePartFactory.java rename to discord/src/main/java/team/unnamed/commandflow/discord/factory/MessagePartFactory.java index c6de5af3..9673c10b 100644 --- a/discord/src/main/java/me/fixeddev/commandflow/discord/factory/MessagePartFactory.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/factory/MessagePartFactory.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.discord.factory; +package team.unnamed.commandflow.discord.factory; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.discord.part.MessagePart; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.discord.part.MessagePart; +import team.unnamed.commandflow.part.CommandPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/discord/src/main/java/me/fixeddev/commandflow/discord/factory/TextChannelPartFactory.java b/discord/src/main/java/team/unnamed/commandflow/discord/factory/TextChannelPartFactory.java similarity index 55% rename from discord/src/main/java/me/fixeddev/commandflow/discord/factory/TextChannelPartFactory.java rename to discord/src/main/java/team/unnamed/commandflow/discord/factory/TextChannelPartFactory.java index 741141e1..0d4b94b2 100644 --- a/discord/src/main/java/me/fixeddev/commandflow/discord/factory/TextChannelPartFactory.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/factory/TextChannelPartFactory.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.discord.factory; +package team.unnamed.commandflow.discord.factory; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.discord.part.TextChannelPart; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.discord.part.TextChannelPart; +import team.unnamed.commandflow.part.CommandPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/discord/src/main/java/me/fixeddev/commandflow/discord/factory/UserPartFactory.java b/discord/src/main/java/team/unnamed/commandflow/discord/factory/UserPartFactory.java similarity index 55% rename from discord/src/main/java/me/fixeddev/commandflow/discord/factory/UserPartFactory.java rename to discord/src/main/java/team/unnamed/commandflow/discord/factory/UserPartFactory.java index e4098a7e..6245b5fc 100644 --- a/discord/src/main/java/me/fixeddev/commandflow/discord/factory/UserPartFactory.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/factory/UserPartFactory.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.discord.factory; +package team.unnamed.commandflow.discord.factory; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.discord.part.UserPart; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.discord.part.UserPart; +import team.unnamed.commandflow.part.CommandPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/discord/src/main/java/me/fixeddev/commandflow/discord/factory/UserSenderPartFactory.java b/discord/src/main/java/team/unnamed/commandflow/discord/factory/UserSenderPartFactory.java similarity index 55% rename from discord/src/main/java/me/fixeddev/commandflow/discord/factory/UserSenderPartFactory.java rename to discord/src/main/java/team/unnamed/commandflow/discord/factory/UserSenderPartFactory.java index c7a5bcb5..ffb5bcb4 100644 --- a/discord/src/main/java/me/fixeddev/commandflow/discord/factory/UserSenderPartFactory.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/factory/UserSenderPartFactory.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.discord.factory; +package team.unnamed.commandflow.discord.factory; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.discord.part.UserSenderPart; -import me.fixeddev.commandflow.part.CommandPart; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.discord.part.UserSenderPart; +import team.unnamed.commandflow.part.CommandPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/discord/src/main/java/me/fixeddev/commandflow/discord/part/MemberPart.java b/discord/src/main/java/team/unnamed/commandflow/discord/part/MemberPart.java similarity index 80% rename from discord/src/main/java/me/fixeddev/commandflow/discord/part/MemberPart.java rename to discord/src/main/java/team/unnamed/commandflow/discord/part/MemberPart.java index e15a104b..c7a54675 100644 --- a/discord/src/main/java/me/fixeddev/commandflow/discord/part/MemberPart.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/part/MemberPart.java @@ -1,12 +1,12 @@ -package me.fixeddev.commandflow.discord.part; - -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.discord.DiscordCommandManager; -import me.fixeddev.commandflow.discord.utils.ArgumentsUtils; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.ArgumentPart; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +package team.unnamed.commandflow.discord.part; + +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.discord.DiscordCommandManager; +import team.unnamed.commandflow.discord.utils.ArgumentsUtils; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.ArgumentPart; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; import net.dv8tion.jda.api.entities.Guild; import net.dv8tion.jda.api.entities.Member; import net.dv8tion.jda.api.entities.Message; diff --git a/discord/src/main/java/me/fixeddev/commandflow/discord/part/MemberSenderPart.java b/discord/src/main/java/team/unnamed/commandflow/discord/part/MemberSenderPart.java similarity index 74% rename from discord/src/main/java/me/fixeddev/commandflow/discord/part/MemberSenderPart.java rename to discord/src/main/java/team/unnamed/commandflow/discord/part/MemberSenderPart.java index b1f36cbb..1b15fc91 100644 --- a/discord/src/main/java/me/fixeddev/commandflow/discord/part/MemberSenderPart.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/part/MemberSenderPart.java @@ -1,11 +1,11 @@ -package me.fixeddev.commandflow.discord.part; - -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.discord.DiscordCommandManager; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.exception.CommandException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +package team.unnamed.commandflow.discord.part; + +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.discord.DiscordCommandManager; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.exception.CommandException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; import net.dv8tion.jda.api.entities.Member; import net.kyori.adventure.text.Component; diff --git a/discord/src/main/java/me/fixeddev/commandflow/discord/part/MessagePart.java b/discord/src/main/java/team/unnamed/commandflow/discord/part/MessagePart.java similarity index 73% rename from discord/src/main/java/me/fixeddev/commandflow/discord/part/MessagePart.java rename to discord/src/main/java/team/unnamed/commandflow/discord/part/MessagePart.java index 020b77b1..e7fcea19 100644 --- a/discord/src/main/java/me/fixeddev/commandflow/discord/part/MessagePart.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/part/MessagePart.java @@ -1,10 +1,10 @@ -package me.fixeddev.commandflow.discord.part; +package team.unnamed.commandflow.discord.part; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.discord.DiscordCommandManager; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.discord.DiscordCommandManager; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; import net.dv8tion.jda.api.entities.Message; import java.util.Objects; diff --git a/discord/src/main/java/me/fixeddev/commandflow/discord/part/TextChannelPart.java b/discord/src/main/java/team/unnamed/commandflow/discord/part/TextChannelPart.java similarity index 79% rename from discord/src/main/java/me/fixeddev/commandflow/discord/part/TextChannelPart.java rename to discord/src/main/java/team/unnamed/commandflow/discord/part/TextChannelPart.java index bdb096d5..1275c4bf 100644 --- a/discord/src/main/java/me/fixeddev/commandflow/discord/part/TextChannelPart.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/part/TextChannelPart.java @@ -1,12 +1,12 @@ -package me.fixeddev.commandflow.discord.part; - -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.discord.DiscordCommandManager; -import me.fixeddev.commandflow.discord.utils.ArgumentsUtils; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.ArgumentPart; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +package team.unnamed.commandflow.discord.part; + +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.discord.DiscordCommandManager; +import team.unnamed.commandflow.discord.utils.ArgumentsUtils; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.ArgumentPart; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; import net.dv8tion.jda.api.entities.Message; import net.dv8tion.jda.api.entities.TextChannel; import net.kyori.adventure.text.Component; diff --git a/discord/src/main/java/me/fixeddev/commandflow/discord/part/UserPart.java b/discord/src/main/java/team/unnamed/commandflow/discord/part/UserPart.java similarity index 77% rename from discord/src/main/java/me/fixeddev/commandflow/discord/part/UserPart.java rename to discord/src/main/java/team/unnamed/commandflow/discord/part/UserPart.java index 0b7f84cb..0ed644cb 100644 --- a/discord/src/main/java/me/fixeddev/commandflow/discord/part/UserPart.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/part/UserPart.java @@ -1,12 +1,12 @@ -package me.fixeddev.commandflow.discord.part; - -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.discord.DiscordCommandManager; -import me.fixeddev.commandflow.discord.utils.ArgumentsUtils; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.ArgumentPart; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +package team.unnamed.commandflow.discord.part; + +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.discord.DiscordCommandManager; +import team.unnamed.commandflow.discord.utils.ArgumentsUtils; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.ArgumentPart; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; import net.dv8tion.jda.api.entities.Guild; import net.dv8tion.jda.api.entities.Message; import net.dv8tion.jda.api.entities.User; diff --git a/discord/src/main/java/me/fixeddev/commandflow/discord/part/UserSenderPart.java b/discord/src/main/java/team/unnamed/commandflow/discord/part/UserSenderPart.java similarity index 65% rename from discord/src/main/java/me/fixeddev/commandflow/discord/part/UserSenderPart.java rename to discord/src/main/java/team/unnamed/commandflow/discord/part/UserSenderPart.java index e151e34f..8645b852 100644 --- a/discord/src/main/java/me/fixeddev/commandflow/discord/part/UserSenderPart.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/part/UserSenderPart.java @@ -1,11 +1,11 @@ -package me.fixeddev.commandflow.discord.part; - -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.discord.DiscordCommandManager; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.exception.CommandException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; +package team.unnamed.commandflow.discord.part; + +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.discord.DiscordCommandManager; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.exception.CommandException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; import net.dv8tion.jda.api.entities.User; import net.kyori.adventure.text.Component; diff --git a/discord/src/main/java/me/fixeddev/commandflow/discord/utils/ArgumentsUtils.java b/discord/src/main/java/team/unnamed/commandflow/discord/utils/ArgumentsUtils.java similarity index 96% rename from discord/src/main/java/me/fixeddev/commandflow/discord/utils/ArgumentsUtils.java rename to discord/src/main/java/team/unnamed/commandflow/discord/utils/ArgumentsUtils.java index 47a0f0d5..eac6e2db 100644 --- a/discord/src/main/java/me/fixeddev/commandflow/discord/utils/ArgumentsUtils.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/utils/ArgumentsUtils.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.discord.utils; +package team.unnamed.commandflow.discord.utils; public final class ArgumentsUtils { diff --git a/discord/src/main/java/me/fixeddev/commandflow/discord/utils/MessageUtils.java b/discord/src/main/java/team/unnamed/commandflow/discord/utils/MessageUtils.java similarity index 88% rename from discord/src/main/java/me/fixeddev/commandflow/discord/utils/MessageUtils.java rename to discord/src/main/java/team/unnamed/commandflow/discord/utils/MessageUtils.java index 9280b82b..f76be656 100644 --- a/discord/src/main/java/me/fixeddev/commandflow/discord/utils/MessageUtils.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/utils/MessageUtils.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.discord.utils; +package team.unnamed.commandflow.discord.utils; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer; diff --git a/docs/imperatively/argument.md b/docs/imperatively/argument.md index 81fa8941..066aba11 100644 --- a/docs/imperatively/argument.md +++ b/docs/imperatively/argument.md @@ -4,7 +4,7 @@ Check this command example with a single argument: ```java -import static me.fixeddev.commandflow.part.Parts.*; + //... diff --git a/velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityAuthorizer.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityAuthorizer.java similarity index 77% rename from velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityAuthorizer.java rename to velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityAuthorizer.java index d19f4f5a..c2ea6783 100644 --- a/velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityAuthorizer.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityAuthorizer.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.velocity; +package team.unnamed.commandflow.velocity; import com.velocitypowered.api.command.CommandSource; -import me.fixeddev.commandflow.Authorizer; -import me.fixeddev.commandflow.Namespace; +import team.unnamed.commandflow.Authorizer; +import team.unnamed.commandflow.Namespace; public class VelocityAuthorizer implements Authorizer { diff --git a/velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityCommandManager.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandManager.java similarity index 87% rename from velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityCommandManager.java rename to velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandManager.java index 67f1242b..bad9e191 100644 --- a/velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityCommandManager.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandManager.java @@ -1,26 +1,26 @@ -package me.fixeddev.commandflow.velocity; +package team.unnamed.commandflow.velocity; import com.velocitypowered.api.command.CommandMeta; import com.velocitypowered.api.proxy.ProxyServer; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.CommandManager; -import me.fixeddev.commandflow.ErrorHandler; -import me.fixeddev.commandflow.Namespace; -import me.fixeddev.commandflow.SimpleCommandManager; -import me.fixeddev.commandflow.Authorizer; -import me.fixeddev.commandflow.ParseResult; -import me.fixeddev.commandflow.command.Command; -import me.fixeddev.commandflow.command.modifiers.FallbackCommandModifiers; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.exception.CommandException; -import me.fixeddev.commandflow.exception.CommandUsage; -import me.fixeddev.commandflow.exception.InvalidSubCommandException; -import me.fixeddev.commandflow.exception.NoMoreArgumentsException; -import me.fixeddev.commandflow.exception.NoPermissionsException; -import me.fixeddev.commandflow.executor.Executor; -import me.fixeddev.commandflow.input.InputTokenizer; -import me.fixeddev.commandflow.translator.Translator; -import me.fixeddev.commandflow.usage.UsageBuilder; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.CommandManager; +import team.unnamed.commandflow.ErrorHandler; +import team.unnamed.commandflow.Namespace; +import team.unnamed.commandflow.SimpleCommandManager; +import team.unnamed.commandflow.Authorizer; +import team.unnamed.commandflow.ParseResult; +import team.unnamed.commandflow.command.Command; +import team.unnamed.commandflow.command.modifiers.FallbackCommandModifiers; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.exception.CommandException; +import team.unnamed.commandflow.exception.CommandUsage; +import team.unnamed.commandflow.exception.InvalidSubCommandException; +import team.unnamed.commandflow.exception.NoMoreArgumentsException; +import team.unnamed.commandflow.exception.NoPermissionsException; +import team.unnamed.commandflow.executor.Executor; +import team.unnamed.commandflow.input.InputTokenizer; +import team.unnamed.commandflow.translator.Translator; +import team.unnamed.commandflow.usage.UsageBuilder; import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer; import java.util.*; diff --git a/velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityCommandWrapper.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandWrapper.java similarity index 91% rename from velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityCommandWrapper.java rename to velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandWrapper.java index b8bd7b23..1bad017f 100644 --- a/velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityCommandWrapper.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandWrapper.java @@ -1,12 +1,12 @@ -package me.fixeddev.commandflow.velocity; +package team.unnamed.commandflow.velocity; import com.velocitypowered.api.command.CommandSource; import com.velocitypowered.api.command.RawCommand; -import me.fixeddev.commandflow.CommandManager; -import me.fixeddev.commandflow.Namespace; -import me.fixeddev.commandflow.command.Command; -import me.fixeddev.commandflow.exception.CommandException; -import me.fixeddev.commandflow.translator.Translator; +import team.unnamed.commandflow.CommandManager; +import team.unnamed.commandflow.Namespace; +import team.unnamed.commandflow.command.Command; +import team.unnamed.commandflow.exception.CommandException; +import team.unnamed.commandflow.translator.Translator; import net.kyori.adventure.text.Component; import java.util.List; diff --git a/velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityDefaultTranslationProvider.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityDefaultTranslationProvider.java similarity index 77% rename from velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityDefaultTranslationProvider.java rename to velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityDefaultTranslationProvider.java index bac51eb0..b1ed86f8 100644 --- a/velocity/src/main/java/me/fixeddev/commandflow/velocity/VelocityDefaultTranslationProvider.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityDefaultTranslationProvider.java @@ -1,6 +1,6 @@ -package me.fixeddev.commandflow.velocity; +package team.unnamed.commandflow.velocity; -import me.fixeddev.commandflow.translator.DefaultMapTranslationProvider; +import team.unnamed.commandflow.translator.DefaultMapTranslationProvider; public class VelocityDefaultTranslationProvider extends DefaultMapTranslationProvider { diff --git a/velocity/src/main/java/me/fixeddev/commandflow/velocity/annotation/PlayerOrSource.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/annotation/PlayerOrSource.java similarity index 83% rename from velocity/src/main/java/me/fixeddev/commandflow/velocity/annotation/PlayerOrSource.java rename to velocity/src/main/java/team/unnamed/commandflow/velocity/annotation/PlayerOrSource.java index 393c641b..7fcd5df3 100644 --- a/velocity/src/main/java/me/fixeddev/commandflow/velocity/annotation/PlayerOrSource.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/annotation/PlayerOrSource.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.velocity.annotation; +package team.unnamed.commandflow.velocity.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/bungee/src/main/java/me/fixeddev/commandflow/bungee/annotation/Sender.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/annotation/Sender.java similarity index 82% rename from bungee/src/main/java/me/fixeddev/commandflow/bungee/annotation/Sender.java rename to velocity/src/main/java/team/unnamed/commandflow/velocity/annotation/Sender.java index 6a0fd7ee..3c23a271 100644 --- a/bungee/src/main/java/me/fixeddev/commandflow/bungee/annotation/Sender.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/annotation/Sender.java @@ -1,4 +1,4 @@ -package me.fixeddev.commandflow.bungee.annotation; +package team.unnamed.commandflow.velocity.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/CommandSourcePartFactory.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/CommandSourcePartFactory.java similarity index 55% rename from velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/CommandSourcePartFactory.java rename to velocity/src/main/java/team/unnamed/commandflow/velocity/factory/CommandSourcePartFactory.java index 8a7d88da..cbf06c96 100644 --- a/velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/CommandSourcePartFactory.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/CommandSourcePartFactory.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.velocity.factory; +package team.unnamed.commandflow.velocity.factory; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.velocity.part.CommandSenderPart; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.velocity.part.CommandSenderPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/PlayerPartFactory.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/PlayerPartFactory.java similarity index 66% rename from velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/PlayerPartFactory.java rename to velocity/src/main/java/team/unnamed/commandflow/velocity/factory/PlayerPartFactory.java index c81814ba..dee55930 100644 --- a/velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/PlayerPartFactory.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/PlayerPartFactory.java @@ -1,10 +1,10 @@ -package me.fixeddev.commandflow.velocity.factory; +package team.unnamed.commandflow.velocity.factory; import com.velocitypowered.api.proxy.ProxyServer; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.velocity.annotation.PlayerOrSource; -import me.fixeddev.commandflow.velocity.part.PlayerPart; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.velocity.annotation.PlayerOrSource; +import team.unnamed.commandflow.velocity.part.PlayerPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/PlayerSenderPartFactory.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/PlayerSenderPartFactory.java similarity index 55% rename from velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/PlayerSenderPartFactory.java rename to velocity/src/main/java/team/unnamed/commandflow/velocity/factory/PlayerSenderPartFactory.java index 6fb95ae2..079f5d00 100644 --- a/velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/PlayerSenderPartFactory.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/PlayerSenderPartFactory.java @@ -1,8 +1,8 @@ -package me.fixeddev.commandflow.velocity.factory; +package team.unnamed.commandflow.velocity.factory; -import me.fixeddev.commandflow.annotated.part.PartFactory; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.velocity.part.PlayerSenderPart; +import team.unnamed.commandflow.annotated.part.PartFactory; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.velocity.part.PlayerSenderPart; import java.lang.annotation.Annotation; import java.util.List; diff --git a/velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/VelocityModule.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/VelocityModule.java similarity index 73% rename from velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/VelocityModule.java rename to velocity/src/main/java/team/unnamed/commandflow/velocity/factory/VelocityModule.java index 92371d24..3f41fe89 100644 --- a/velocity/src/main/java/me/fixeddev/commandflow/velocity/factory/VelocityModule.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/VelocityModule.java @@ -1,11 +1,11 @@ -package me.fixeddev.commandflow.velocity.factory; +package team.unnamed.commandflow.velocity.factory; import com.velocitypowered.api.command.CommandSource; import com.velocitypowered.api.proxy.Player; import com.velocitypowered.api.proxy.ProxyServer; -import me.fixeddev.commandflow.annotated.part.AbstractModule; -import me.fixeddev.commandflow.annotated.part.Key; -import me.fixeddev.commandflow.velocity.annotation.Sender; +import team.unnamed.commandflow.annotated.part.AbstractModule; +import team.unnamed.commandflow.annotated.part.Key; +import team.unnamed.commandflow.velocity.annotation.Sender; public class VelocityModule extends AbstractModule { diff --git a/velocity/src/main/java/me/fixeddev/commandflow/velocity/part/CommandSenderPart.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/part/CommandSenderPart.java similarity index 74% rename from velocity/src/main/java/me/fixeddev/commandflow/velocity/part/CommandSenderPart.java rename to velocity/src/main/java/team/unnamed/commandflow/velocity/part/CommandSenderPart.java index 8ee0eece..2641b471 100644 --- a/velocity/src/main/java/me/fixeddev/commandflow/velocity/part/CommandSenderPart.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/part/CommandSenderPart.java @@ -1,12 +1,12 @@ -package me.fixeddev.commandflow.velocity.part; +package team.unnamed.commandflow.velocity.part; import com.velocitypowered.api.command.CommandSource; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.exception.CommandException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; -import me.fixeddev.commandflow.velocity.VelocityCommandManager; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.exception.CommandException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.velocity.VelocityCommandManager; import net.kyori.adventure.text.Component; import java.util.Objects; diff --git a/velocity/src/main/java/me/fixeddev/commandflow/velocity/part/PlayerPart.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/part/PlayerPart.java similarity index 84% rename from velocity/src/main/java/me/fixeddev/commandflow/velocity/part/PlayerPart.java rename to velocity/src/main/java/team/unnamed/commandflow/velocity/part/PlayerPart.java index 28f30bcc..b00a3018 100644 --- a/velocity/src/main/java/me/fixeddev/commandflow/velocity/part/PlayerPart.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/part/PlayerPart.java @@ -1,14 +1,14 @@ -package me.fixeddev.commandflow.velocity.part; +package team.unnamed.commandflow.velocity.part; import com.velocitypowered.api.command.CommandSource; import com.velocitypowered.api.proxy.Player; import com.velocitypowered.api.proxy.ProxyServer; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.part.ArgumentPart; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; -import me.fixeddev.commandflow.velocity.VelocityCommandManager; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.part.ArgumentPart; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.velocity.VelocityCommandManager; import net.kyori.adventure.text.Component; diff --git a/velocity/src/main/java/me/fixeddev/commandflow/velocity/part/PlayerSenderPart.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/part/PlayerSenderPart.java similarity index 77% rename from velocity/src/main/java/me/fixeddev/commandflow/velocity/part/PlayerSenderPart.java rename to velocity/src/main/java/team/unnamed/commandflow/velocity/part/PlayerSenderPart.java index b13041f3..ebec0caf 100644 --- a/velocity/src/main/java/me/fixeddev/commandflow/velocity/part/PlayerSenderPart.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/part/PlayerSenderPart.java @@ -1,13 +1,13 @@ -package me.fixeddev.commandflow.velocity.part; +package team.unnamed.commandflow.velocity.part; import com.velocitypowered.api.command.CommandSource; import com.velocitypowered.api.proxy.Player; -import me.fixeddev.commandflow.CommandContext; -import me.fixeddev.commandflow.exception.ArgumentParseException; -import me.fixeddev.commandflow.exception.CommandException; -import me.fixeddev.commandflow.part.CommandPart; -import me.fixeddev.commandflow.stack.ArgumentStack; -import me.fixeddev.commandflow.velocity.VelocityCommandManager; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.exception.ArgumentParseException; +import team.unnamed.commandflow.exception.CommandException; +import team.unnamed.commandflow.part.CommandPart; +import team.unnamed.commandflow.stack.ArgumentStack; +import team.unnamed.commandflow.velocity.VelocityCommandManager; import net.kyori.adventure.text.Component; import java.util.Objects; From ba342647179803120c2a9719eb0a87b1952635e2 Mon Sep 17 00:00:00 2001 From: yusshu Date: Mon, 30 Oct 2023 12:28:49 -0500 Subject: [PATCH 06/31] fix: remove invalid imports --- .../commandflow/annotated/AnnotatedCommandTreeBuilderImpl.java | 1 - .../commandflow/annotated/part/defaults/DefaultsModule.java | 1 - 2 files changed, 2 deletions(-) diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilderImpl.java b/api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilderImpl.java index e612c3d2..dbd45b16 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilderImpl.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilderImpl.java @@ -1,6 +1,5 @@ package team.unnamed.commandflow.annotated; -import me.fixeddev.commandflow.annotated.annotation.*; import team.unnamed.commandflow.annotated.builder.AnnotatedCommandBuilder; import team.unnamed.commandflow.annotated.builder.CommandDataNode; import team.unnamed.commandflow.annotated.builder.CommandModifiersNode; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/DefaultsModule.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/DefaultsModule.java index 0ec1835f..7f0d8498 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/DefaultsModule.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/DefaultsModule.java @@ -10,7 +10,6 @@ import team.unnamed.commandflow.annotated.annotation.Text; import team.unnamed.commandflow.annotated.part.AbstractModule; import team.unnamed.commandflow.annotated.part.Key; -import me.fixeddev.commandflow.annotated.part.defaults.factory.*; import team.unnamed.commandflow.annotated.part.defaults.modifier.LimitModifier; import team.unnamed.commandflow.annotated.part.defaults.modifier.OptionalModifier; import team.unnamed.commandflow.annotated.part.defaults.modifier.RewritesModifier; From 2d04a0bdd705e869ea75c1594084fe1b53441392 Mon Sep 17 00:00:00 2001 From: yusshu Date: Fri, 10 Nov 2023 20:44:30 -0500 Subject: [PATCH 07/31] build: migrate to Gradle add licenser, update license to Unnamed Team, update license to 2023 --- .gitignore | 3 + api/build.gradle.kts | 14 ++ api/pom.xml | 54 ----- .../team/unnamed/commandflow/Authorizer.java | 25 ++- .../unnamed/commandflow/CommandContext.java | 25 ++- .../unnamed/commandflow/CommandManager.java | 25 ++- .../unnamed/commandflow/ContextSnapshot.java | 25 ++- .../unnamed/commandflow/ErrorHandler.java | 25 ++- .../team/unnamed/commandflow/Namespace.java | 25 ++- .../unnamed/commandflow/NamespaceImpl.java | 25 ++- .../team/unnamed/commandflow/ParseResult.java | 25 ++- .../commandflow/SimpleCommandContext.java | 25 ++- .../commandflow/SimpleCommandManager.java | 25 ++- .../commandflow/SimpleErrorHandler.java | 25 ++- .../AnnotatedCommandTreeBuilder.java | 25 ++- .../AnnotatedCommandTreeBuilderImpl.java | 25 ++- .../commandflow/annotated/CommandClass.java | 25 ++- .../annotated/ReflectionInstanceCreator.java | 25 ++- .../ReflectionSubCommandHandler.java | 25 ++- .../annotated/SubCommandInstanceCreator.java | 25 ++- .../annotated/action/ReflectiveAction.java | 25 ++- .../annotated/action/ValueGetter.java | 25 ++- .../annotated/annotation/ArgOrSub.java | 25 ++- .../annotated/annotation/Command.java | 25 ++- .../annotated/annotation/ConsumeAll.java | 25 ++- .../annotated/annotation/Flag.java | 25 ++- .../annotated/annotation/Handler.java | 25 ++- .../annotated/annotation/Limit.java | 25 ++- .../annotated/annotation/Named.java | 25 ++- .../annotated/annotation/OptArg.java | 25 ++- .../annotated/annotation/ParentArg.java | 25 ++- .../annotated/annotation/Range.java | 25 ++- .../annotated/annotation/Required.java | 25 ++- .../annotated/annotation/Rewrites.java | 25 ++- .../annotated/annotation/Sender.java | 25 ++- .../annotated/annotation/Strict.java | 25 ++- .../annotation/SubCommandClasses.java | 25 ++- .../annotated/annotation/Suggestions.java | 25 ++- .../annotated/annotation/Switch.java | 25 ++- .../annotated/annotation/Text.java | 25 ++- .../annotated/annotation/Usage.java | 25 ++- .../builder/AnnotatedCommandBuilder.java | 25 ++- .../builder/AnnotatedCommandBuilderImpl.java | 25 ++- .../annotated/builder/Buildable.java | 25 ++- .../annotated/builder/CommandActionNode.java | 25 ++- .../builder/CommandBuilderNodesImpl.java | 25 ++- .../annotated/builder/CommandDataNode.java | 25 ++- .../builder/CommandModifiersNode.java | 25 ++- .../annotated/builder/CommandPartsNode.java | 25 ++- .../annotated/builder/SubCommandsNode.java | 25 ++- .../modifier/CommandModifierFactory.java | 25 ++- .../annotated/part/AbstractModule.java | 25 ++- .../annotated/part/DelegatePartModifier.java | 25 ++- .../commandflow/annotated/part/Key.java | 25 ++- .../commandflow/annotated/part/Module.java | 25 ++- .../annotated/part/PartFactory.java | 25 ++- .../annotated/part/PartInjector.java | 25 ++- .../annotated/part/PartModifier.java | 25 ++- .../annotated/part/SimplePartInjector.java | 25 ++- .../part/defaults/DefaultsModule.java | 25 ++- .../factory/ArgumentStackPartFactory.java | 25 ++- .../defaults/factory/BooleanPartFactory.java | 25 ++- .../part/defaults/factory/ContextFactory.java | 25 ++- .../defaults/factory/DoublePartFactory.java | 25 ++- .../defaults/factory/EnumPartFactory.java | 25 ++- .../defaults/factory/FloatPartFactory.java | 25 ++- .../defaults/factory/IntegerPartFactory.java | 25 ++- .../defaults/factory/LongPartFactory.java | 25 ++- .../defaults/factory/StringPartFactory.java | 25 ++- .../factory/StringTextPartFactory.java | 25 ++- .../defaults/factory/SwitchPartFactory.java | 25 ++- .../part/defaults/modifier/LimitModifier.java | 25 ++- .../defaults/modifier/OptionalModifier.java | 25 ++- .../defaults/modifier/RewritesModifier.java | 25 ++- .../modifier/SuggestionsModifier.java | 25 ++- .../defaults/modifier/ValueFlagModifier.java | 25 ++- .../unnamed/commandflow/command/Action.java | 25 ++- .../unnamed/commandflow/command/Command.java | 25 ++- .../commandflow/command/SimpleCommand.java | 25 ++- .../command/modifiers/CommandModifier.java | 25 ++- .../command/modifiers/CommandModifiers.java | 25 ++- .../modifiers/FallbackCommandModifiers.java | 25 ++- .../command/modifiers/ModifierPhase.java | 25 ++- .../command/modifiers/ModifierUtils.java | 25 ++- .../modifiers/SequentialCommandModifier.java | 25 ++- .../modifiers/SimpleCommandModifiers.java | 25 ++- .../exception/ArgumentException.java | 25 ++- .../exception/ArgumentParseException.java | 25 ++- .../exception/CommandException.java | 25 ++- .../commandflow/exception/CommandUsage.java | 25 ++- .../exception/InvalidSubCommandException.java | 25 ++- .../exception/NoMoreArgumentsException.java | 25 ++- .../exception/NoPermissionsException.java | 25 ++- .../exception/StopParseException.java | 25 ++- .../commandflow/executor/DefaultExecutor.java | 25 ++- .../commandflow/executor/Executor.java | 25 ++- .../commandflow/input/InputTokenizer.java | 25 ++- .../input/QuotedSpaceTokenizer.java | 25 ++- .../input/StringSpaceTokenizer.java | 25 ++- .../commandflow/part/ArgumentPart.java | 25 ++- .../unnamed/commandflow/part/CommandPart.java | 25 ++- .../team/unnamed/commandflow/part/Parts.java | 25 ++- .../commandflow/part/PartsWrapper.java | 25 ++- .../commandflow/part/SinglePartWrapper.java | 25 ++- .../part/defaults/ArgumentRewriterPart.java | 25 ++- .../part/defaults/ArgumentStackPart.java | 25 ++- .../part/defaults/BooleanPart.java | 25 ++- .../part/defaults/ContextPart.java | 25 ++- .../commandflow/part/defaults/DoublePart.java | 25 ++- .../commandflow/part/defaults/EmptyPart.java | 25 ++- .../commandflow/part/defaults/EnumPart.java | 25 ++- .../part/defaults/FirstMatchPart.java | 25 ++- .../commandflow/part/defaults/FloatPart.java | 25 ++- .../part/defaults/IntegerPart.java | 25 ++- .../part/defaults/LimitingPart.java | 25 ++- .../commandflow/part/defaults/LongPart.java | 25 ++- .../part/defaults/OptionalPart.java | 25 ++- .../part/defaults/PrimitivePart.java | 25 ++- .../part/defaults/SequentialCommandPart.java | 25 ++- .../commandflow/part/defaults/StringPart.java | 25 ++- .../part/defaults/SubCommandPart.java | 25 ++- .../defaults/SuggestionsModifierPart.java | 25 ++- .../commandflow/part/defaults/SwitchPart.java | 25 ++- .../part/defaults/ValueFlagPart.java | 25 ++- .../part/visitor/CommandPartVisitor.java | 25 ++- .../visitor/UnwrappedCommandPartVisitor.java | 25 ++- .../commandflow/stack/ArgumentStack.java | 25 ++- .../stack/SimpleArgumentStack.java | 25 ++- .../commandflow/stack/StackSnapshot.java | 25 ++- .../ComponentRendererTranslator.java | 25 ++- .../DefaultMapTranslationProvider.java | 25 ++- .../translator/DefaultTranslator.java | 25 ++- .../translator/TranslationProvider.java | 25 ++- .../commandflow/translator/Translator.java | 25 ++- .../usage/DefaultUsageBuilder.java | 25 ++- .../commandflow/usage/UsageBuilder.java | 25 ++- .../commandflow/InputTokenizerTest.java | 25 ++- .../commandflow/ParameterizedPartTest.java | 25 ++- .../annotated/CustomComponentParserTest.java | 25 ++- brigadier/build.gradle.kts | 17 ++ brigadier/pom.xml | 57 ------ .../brigadier/BrigadierCommandManager.java | 25 ++- .../brigadier/BrigadierCommandWrapper.java | 25 ++- .../BrigadierDefaultTranslationProvider.java | 25 ++- .../brigadier/CommandBrigadierConverter.java | 25 ++- .../brigadier/MultipleHeadNode.java | 25 ++- .../brigadier/MultipleHeadNodeBuilder.java | 25 ++- .../brigadier/PermissionRequirement.java | 25 ++- buildSrc/build.gradle.kts | 11 ++ buildSrc/settings.gradle.kts | 1 + .../commandflow.java-conventions.gradle.kts | 43 ++++ ...mandflow.publishing-conventions.gradle.kts | 25 +++ bukkit/build.gradle.kts | 12 ++ bukkit/pom.xml | 35 ---- .../commandflow/bukkit/BukkitAuthorizer.java | 25 ++- .../bukkit/BukkitCommandManager.java | 25 ++- .../bukkit/BukkitCommandWrapper.java | 25 ++- .../BukkitDefaultTranslationProvider.java | 25 ++- .../commandflow/bukkit/MessageUtils.java | 25 ++- .../commandflow/bukkit/annotation/Exact.java | 25 ++- .../bukkit/annotation/PlayerOrSource.java | 25 ++- .../bukkit/factory/BukkitModule.java | 25 ++- .../bukkit/factory/CommandSenderFactory.java | 25 ++- .../bukkit/factory/GameModeFactory.java | 25 ++- .../factory/OfflinePlayerPartFactory.java | 25 ++- .../bukkit/factory/PlayerPartFactory.java | 25 ++- .../bukkit/factory/PlayerSenderFactory.java | 25 ++- .../bukkit/factory/WorldFactory.java | 25 ++- .../commandflow/bukkit/part/BukkitParts.java | 25 ++- .../bukkit/part/CommandSenderPart.java | 25 ++- .../commandflow/bukkit/part/GameModePart.java | 25 ++- .../bukkit/part/OfflinePlayerPart.java | 25 ++- .../commandflow/bukkit/part/PlayerPart.java | 25 ++- .../bukkit/part/PlayerSenderPart.java | 25 ++- .../commandflow/bukkit/part/WorldPart.java | 25 ++- bungee/build.gradle.kts | 12 ++ bungee/pom.xml | 36 ---- .../commandflow/bungee/BungeeAuthorizer.java | 25 ++- .../bungee/BungeeCommandManager.java | 25 ++- .../bungee/BungeeCommandWrapper.java | 25 ++- .../BungeeDefaultTranslationProvider.java | 25 ++- .../commandflow/bungee/MessageUtils.java | 25 ++- .../annotation/ProxiedPlayerOrSource.java | 25 ++- .../bungee/factory/BungeeModule.java | 25 ++- .../factory/CommandSenderPartFactory.java | 25 ++- .../factory/ProxiedPlayerPartFactory.java | 25 ++- .../ProxiedPlayerSenderPartFactory.java | 25 ++- .../bungee/part/CommandSenderPart.java | 25 ++- .../bungee/part/ProxiedPlayerPart.java | 25 ++- .../bungee/part/ProxiedPlayerSenderPart.java | 25 ++- discord/build.gradle.kts | 12 ++ discord/pom.xml | 36 ---- .../discord/DiscordAuthorizer.java | 25 ++- .../discord/DiscordCommandManager.java | 25 ++- .../DiscordDefaultTranslationProvider.java | 25 ++- .../commandflow/discord/MessageListener.java | 25 ++- .../discord/factory/DiscordModule.java | 25 ++- .../discord/factory/MemberPartFactory.java | 25 ++- .../factory/MemberSenderPartFactory.java | 25 ++- .../discord/factory/MessagePartFactory.java | 25 ++- .../factory/TextChannelPartFactory.java | 25 ++- .../discord/factory/UserPartFactory.java | 25 ++- .../factory/UserSenderPartFactory.java | 25 ++- .../commandflow/discord/part/MemberPart.java | 25 ++- .../discord/part/MemberSenderPart.java | 25 ++- .../commandflow/discord/part/MessagePart.java | 25 ++- .../discord/part/TextChannelPart.java | 25 ++- .../commandflow/discord/part/UserPart.java | 25 ++- .../discord/part/UserSenderPart.java | 25 ++- .../discord/utils/ArgumentsUtils.java | 25 ++- .../discord/utils/MessageUtils.java | 25 ++- gradle.properties | 6 + gradle/wrapper/gradle-wrapper.properties | 5 + gradlew | 185 ++++++++++++++++++ gradlew.bat | 89 +++++++++ header.txt | 21 ++ license.txt | 4 +- pom.xml | 61 ------ readme.md | 2 +- settings.gradle.kts | 16 ++ velocity/build.gradle.kts | 12 ++ velocity/pom.xml | 36 ---- .../velocity/VelocityAuthorizer.java | 25 ++- .../velocity/VelocityCommandManager.java | 25 ++- .../velocity/VelocityCommandWrapper.java | 25 ++- .../VelocityDefaultTranslationProvider.java | 25 ++- .../velocity/annotation/PlayerOrSource.java | 25 ++- .../factory/CommandSourcePartFactory.java | 25 ++- .../velocity/factory/PlayerPartFactory.java | 25 ++- .../factory/PlayerSenderPartFactory.java | 25 ++- .../velocity/factory/VelocityModule.java | 25 ++- .../velocity/part/CommandSenderPart.java | 25 ++- .../commandflow/velocity/part/PlayerPart.java | 25 ++- .../velocity/part/PlayerSenderPart.java | 25 ++- 234 files changed, 5479 insertions(+), 526 deletions(-) create mode 100644 api/build.gradle.kts delete mode 100644 api/pom.xml create mode 100644 brigadier/build.gradle.kts delete mode 100644 brigadier/pom.xml create mode 100644 buildSrc/build.gradle.kts create mode 100644 buildSrc/settings.gradle.kts create mode 100644 buildSrc/src/main/kotlin/commandflow.java-conventions.gradle.kts create mode 100644 buildSrc/src/main/kotlin/commandflow.publishing-conventions.gradle.kts create mode 100644 bukkit/build.gradle.kts delete mode 100644 bukkit/pom.xml create mode 100644 bungee/build.gradle.kts delete mode 100644 bungee/pom.xml create mode 100644 discord/build.gradle.kts delete mode 100644 discord/pom.xml create mode 100644 gradle.properties create mode 100644 gradle/wrapper/gradle-wrapper.properties create mode 100644 gradlew create mode 100644 gradlew.bat create mode 100644 header.txt delete mode 100644 pom.xml create mode 100644 settings.gradle.kts create mode 100644 velocity/build.gradle.kts delete mode 100644 velocity/pom.xml diff --git a/.gitignore b/.gitignore index df8e4d2c..0b5fc6ad 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,6 @@ hs_err_pid* .idea/ target/ *.iml +.gradle +/*/build/ +/build/ \ No newline at end of file diff --git a/api/build.gradle.kts b/api/build.gradle.kts new file mode 100644 index 00000000..0e361501 --- /dev/null +++ b/api/build.gradle.kts @@ -0,0 +1,14 @@ +plugins { + id("commandflow.publishing-conventions") +} + +dependencies { + compileOnlyApi("org.jetbrains:annotations:24.0.1") + + api("net.kyori:adventure-api:4.9.1") { + exclude(group = "org.checkerframework", module = "checker-qual") + } + api("net.kyori:adventure-text-serializer-legacy:4.11.0") + api("net.kyori:adventure-text-serializer-gson:4.11.0") + api("net.kyori:adventure-text-serializer-plain:4.11.0") +} \ No newline at end of file diff --git a/api/pom.xml b/api/pom.xml deleted file mode 100644 index 6c73bb59..00000000 --- a/api/pom.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - 4.0.0 - - team.unnamed - commandflow - ${revision} - - commandflow-api - jar - - - - net.kyori - adventure-api - 4.9.1 - compile - - - org.checkerframework - checker-qual - - - - - net.kyori - adventure-text-serializer-legacy - 4.11.0 - - - net.kyori - adventure-text-serializer-gson - 4.11.0 - - - net.kyori - adventure-text-serializer-plain - 4.11.0 - - - org.jetbrains - annotations - 24.0.1 - - - org.junit.jupiter - junit-jupiter-api - 5.9.2 - test - - - \ No newline at end of file diff --git a/api/src/main/java/team/unnamed/commandflow/Authorizer.java b/api/src/main/java/team/unnamed/commandflow/Authorizer.java index a87ee1ad..1300b57f 100644 --- a/api/src/main/java/team/unnamed/commandflow/Authorizer.java +++ b/api/src/main/java/team/unnamed/commandflow/Authorizer.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow; public interface Authorizer { diff --git a/api/src/main/java/team/unnamed/commandflow/CommandContext.java b/api/src/main/java/team/unnamed/commandflow/CommandContext.java index fecece2f..3ef95c2d 100644 --- a/api/src/main/java/team/unnamed/commandflow/CommandContext.java +++ b/api/src/main/java/team/unnamed/commandflow/CommandContext.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow; import team.unnamed.commandflow.command.Command; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/CommandManager.java b/api/src/main/java/team/unnamed/commandflow/CommandManager.java index fa78772a..e483c699 100644 --- a/api/src/main/java/team/unnamed/commandflow/CommandManager.java +++ b/api/src/main/java/team/unnamed/commandflow/CommandManager.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow; import team.unnamed.commandflow.command.Command; import team.unnamed.commandflow.command.modifiers.FallbackCommandModifiers; diff --git a/api/src/main/java/team/unnamed/commandflow/ContextSnapshot.java b/api/src/main/java/team/unnamed/commandflow/ContextSnapshot.java index 9f2b8f9f..fc41ad79 100644 --- a/api/src/main/java/team/unnamed/commandflow/ContextSnapshot.java +++ b/api/src/main/java/team/unnamed/commandflow/ContextSnapshot.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow; import team.unnamed.commandflow.command.Command; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/ErrorHandler.java b/api/src/main/java/team/unnamed/commandflow/ErrorHandler.java index 92c91670..3279a34d 100644 --- a/api/src/main/java/team/unnamed/commandflow/ErrorHandler.java +++ b/api/src/main/java/team/unnamed/commandflow/ErrorHandler.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow; /** * This interface is used to handle errors that occur during the execution of a command, by the usage of error handlers diff --git a/api/src/main/java/team/unnamed/commandflow/Namespace.java b/api/src/main/java/team/unnamed/commandflow/Namespace.java index cc0221c9..e7fc1441 100644 --- a/api/src/main/java/team/unnamed/commandflow/Namespace.java +++ b/api/src/main/java/team/unnamed/commandflow/Namespace.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow; public interface Namespace { diff --git a/api/src/main/java/team/unnamed/commandflow/NamespaceImpl.java b/api/src/main/java/team/unnamed/commandflow/NamespaceImpl.java index cb507165..5e332ca2 100644 --- a/api/src/main/java/team/unnamed/commandflow/NamespaceImpl.java +++ b/api/src/main/java/team/unnamed/commandflow/NamespaceImpl.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow; import java.util.Map; import java.util.Objects; diff --git a/api/src/main/java/team/unnamed/commandflow/ParseResult.java b/api/src/main/java/team/unnamed/commandflow/ParseResult.java index 671d2d18..29240ee6 100644 --- a/api/src/main/java/team/unnamed/commandflow/ParseResult.java +++ b/api/src/main/java/team/unnamed/commandflow/ParseResult.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow; import team.unnamed.commandflow.exception.CommandException; diff --git a/api/src/main/java/team/unnamed/commandflow/SimpleCommandContext.java b/api/src/main/java/team/unnamed/commandflow/SimpleCommandContext.java index 24054906..dd11702a 100644 --- a/api/src/main/java/team/unnamed/commandflow/SimpleCommandContext.java +++ b/api/src/main/java/team/unnamed/commandflow/SimpleCommandContext.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow; import team.unnamed.commandflow.command.Command; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/SimpleCommandManager.java b/api/src/main/java/team/unnamed/commandflow/SimpleCommandManager.java index 5fbcdaf3..42da63c1 100644 --- a/api/src/main/java/team/unnamed/commandflow/SimpleCommandManager.java +++ b/api/src/main/java/team/unnamed/commandflow/SimpleCommandManager.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow; import team.unnamed.commandflow.command.Command; import team.unnamed.commandflow.command.modifiers.CommandModifiers; diff --git a/api/src/main/java/team/unnamed/commandflow/SimpleErrorHandler.java b/api/src/main/java/team/unnamed/commandflow/SimpleErrorHandler.java index da288fc0..4ac5acd0 100644 --- a/api/src/main/java/team/unnamed/commandflow/SimpleErrorHandler.java +++ b/api/src/main/java/team/unnamed/commandflow/SimpleErrorHandler.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow; import java.util.HashMap; import java.util.Map; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilder.java b/api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilder.java index 0858dd6b..d65a4cbe 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilder.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilder.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated; import team.unnamed.commandflow.annotated.builder.AnnotatedCommandBuilder; import team.unnamed.commandflow.annotated.part.PartInjector; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilderImpl.java b/api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilderImpl.java index dbd45b16..1d9d99e5 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilderImpl.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilderImpl.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated; import team.unnamed.commandflow.annotated.builder.AnnotatedCommandBuilder; import team.unnamed.commandflow.annotated.builder.CommandDataNode; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/CommandClass.java b/api/src/main/java/team/unnamed/commandflow/annotated/CommandClass.java index d249e2b5..7295eec4 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/CommandClass.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/CommandClass.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated; /** * A marker interface for Commands based on annotations. diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/ReflectionInstanceCreator.java b/api/src/main/java/team/unnamed/commandflow/annotated/ReflectionInstanceCreator.java index 20b0a67b..78fec5cf 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/ReflectionInstanceCreator.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/ReflectionInstanceCreator.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/ReflectionSubCommandHandler.java b/api/src/main/java/team/unnamed/commandflow/annotated/ReflectionSubCommandHandler.java index ee147e03..10c43770 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/ReflectionSubCommandHandler.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/ReflectionSubCommandHandler.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated; import team.unnamed.commandflow.command.Command; import team.unnamed.commandflow.exception.ArgumentException; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/SubCommandInstanceCreator.java b/api/src/main/java/team/unnamed/commandflow/annotated/SubCommandInstanceCreator.java index 4066d6f4..f0d35b91 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/SubCommandInstanceCreator.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/SubCommandInstanceCreator.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated; /** * An interface with the purpose of creating a {@link CommandClass} instance that is a sub commands class of another diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/action/ReflectiveAction.java b/api/src/main/java/team/unnamed/commandflow/annotated/action/ReflectiveAction.java index 5ec81eb5..a6a54415 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/action/ReflectiveAction.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/action/ReflectiveAction.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.action; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.action; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.annotated.CommandClass; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/action/ValueGetter.java b/api/src/main/java/team/unnamed/commandflow/annotated/action/ValueGetter.java index 4ff3862e..837c9df3 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/action/ValueGetter.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/action/ValueGetter.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.action; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.action; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ArgOrSub.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ArgOrSub.java index 8627c3dc..42ad65e9 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ArgOrSub.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ArgOrSub.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.annotation; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Command.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Command.java index 10bb302f..1ae7cc30 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Command.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Command.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.annotation; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ConsumeAll.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ConsumeAll.java index 54d695ba..dc1284b1 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ConsumeAll.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ConsumeAll.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.annotation; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Flag.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Flag.java index 9768b733..bbe25246 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Flag.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Flag.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.annotation; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Handler.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Handler.java index a45bf841..55d6281b 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Handler.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Handler.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.annotation; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Limit.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Limit.java index f273669c..ef6e5bbf 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Limit.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Limit.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.annotation; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Named.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Named.java index 6a7b3722..02980c06 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Named.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Named.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.annotation; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/OptArg.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/OptArg.java index 06303ca6..aa354f7a 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/OptArg.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/OptArg.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.annotation; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.annotation; import team.unnamed.commandflow.command.Command; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ParentArg.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ParentArg.java index b23b44e3..2403f11e 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ParentArg.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ParentArg.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.annotation; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Range.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Range.java index 2a6fa028..111935c7 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Range.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Range.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.annotation; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.annotation; public @interface Range { diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Required.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Required.java index aa18ba1d..22751c0c 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Required.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Required.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.annotation; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Rewrites.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Rewrites.java index 9d8983fd..bf5b1abe 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Rewrites.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Rewrites.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.annotation; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Sender.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Sender.java index 03c05304..b0935209 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Sender.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Sender.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.annotation; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Strict.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Strict.java index 3f482b55..d54a2278 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Strict.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Strict.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.annotation; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/SubCommandClasses.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/SubCommandClasses.java index 2397cd38..42b5104c 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/SubCommandClasses.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/SubCommandClasses.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.annotation; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.annotation; import team.unnamed.commandflow.annotated.CommandClass; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Suggestions.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Suggestions.java index 27855f98..efbfa825 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Suggestions.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Suggestions.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.annotation; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Switch.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Switch.java index b5159b56..b02e8b84 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Switch.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Switch.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.annotation; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Text.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Text.java index c3ade0b3..27b2c52f 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Text.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Text.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.annotation; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Usage.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Usage.java index 632bd16e..a24aa1d2 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Usage.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Usage.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.annotation; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/builder/AnnotatedCommandBuilder.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/AnnotatedCommandBuilder.java index 46ef0774..38747554 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/builder/AnnotatedCommandBuilder.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/AnnotatedCommandBuilder.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.builder; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.builder; import team.unnamed.commandflow.annotated.part.PartInjector; import team.unnamed.commandflow.command.Action; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/builder/AnnotatedCommandBuilderImpl.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/AnnotatedCommandBuilderImpl.java index d96d49d3..0d33241b 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/builder/AnnotatedCommandBuilderImpl.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/AnnotatedCommandBuilderImpl.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.builder; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.builder; import team.unnamed.commandflow.annotated.part.PartInjector; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/builder/Buildable.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/Buildable.java index cc183796..cfb0d997 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/builder/Buildable.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/Buildable.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.builder; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.builder; import team.unnamed.commandflow.command.Command; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandActionNode.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandActionNode.java index 97174617..a6c9dc5b 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandActionNode.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandActionNode.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.builder; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.builder; import team.unnamed.commandflow.annotated.CommandClass; import team.unnamed.commandflow.command.Action; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandBuilderNodesImpl.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandBuilderNodesImpl.java index f6b2edce..b449e636 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandBuilderNodesImpl.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandBuilderNodesImpl.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.builder; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.builder; import team.unnamed.commandflow.annotated.CommandClass; import team.unnamed.commandflow.annotated.action.ReflectiveAction; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandDataNode.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandDataNode.java index 3adc2722..952d6a92 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandDataNode.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandDataNode.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.builder; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.builder; import net.kyori.adventure.text.Component; import org.jetbrains.annotations.NotNull; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandModifiersNode.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandModifiersNode.java index c6932dfe..65f80bf8 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandModifiersNode.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandModifiersNode.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.builder; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.builder; import team.unnamed.commandflow.annotated.CommandClass; import team.unnamed.commandflow.command.modifiers.CommandModifier; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandPartsNode.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandPartsNode.java index 23a501bb..c901d7dd 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandPartsNode.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandPartsNode.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.builder; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.builder; import team.unnamed.commandflow.annotated.CommandClass; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/builder/SubCommandsNode.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/SubCommandsNode.java index 7e7dee63..0be518a1 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/builder/SubCommandsNode.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/SubCommandsNode.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.builder; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.builder; import team.unnamed.commandflow.command.Command; import team.unnamed.commandflow.part.defaults.SubCommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/modifier/CommandModifierFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/modifier/CommandModifierFactory.java index 6b0be280..7360e6f3 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/modifier/CommandModifierFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/modifier/CommandModifierFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.modifier; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.modifier; import team.unnamed.commandflow.command.modifiers.CommandModifier; import team.unnamed.commandflow.command.modifiers.CommandModifiers; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/AbstractModule.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/AbstractModule.java index 8adb17cf..cf4595c2 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/AbstractModule.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/AbstractModule.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.part; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/DelegatePartModifier.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/DelegatePartModifier.java index b684cf90..27a65283 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/DelegatePartModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/DelegatePartModifier.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.part; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/Key.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/Key.java index 06a24b8a..87e050c1 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/Key.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/Key.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.part; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/Module.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/Module.java index 6f61244c..cf73f4bb 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/Module.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/Module.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.part; /** * An aggregation of multiple bindings of {@linkplain PartModifier} or {@linkplain PartFactory}, allowing to automatically register diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/PartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/PartFactory.java index d516e382..acee89fe 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/PartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/PartFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.part; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/PartInjector.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/PartInjector.java index f3af3b12..24fc70cf 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/PartInjector.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/PartInjector.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.part; import team.unnamed.commandflow.annotated.modifier.CommandModifierFactory; import team.unnamed.commandflow.command.modifiers.CommandModifier; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/PartModifier.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/PartModifier.java index cb21c946..9982d0fc 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/PartModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/PartModifier.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.part; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/SimplePartInjector.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/SimplePartInjector.java index f44050f1..7cbc5ee8 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/SimplePartInjector.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/SimplePartInjector.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.part; import team.unnamed.commandflow.annotated.modifier.CommandModifierFactory; import org.jetbrains.annotations.Nullable; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/DefaultsModule.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/DefaultsModule.java index 7f0d8498..9d8e3414 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/DefaultsModule.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/DefaultsModule.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.part.defaults; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.annotated.annotation.Flag; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/ArgumentStackPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/ArgumentStackPartFactory.java index 3d3acb65..a92bdfcf 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/ArgumentStackPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/ArgumentStackPartFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.part.defaults.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.part.defaults.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/BooleanPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/BooleanPartFactory.java index df8c581f..f90cdc65 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/BooleanPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/BooleanPartFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.part.defaults.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.part.defaults.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/ContextFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/ContextFactory.java index a5fad38a..df72e45e 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/ContextFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/ContextFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.part.defaults.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.part.defaults.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/DoublePartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/DoublePartFactory.java index 5ed772b4..529b15a2 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/DoublePartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/DoublePartFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.part.defaults.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.part.defaults.factory; import team.unnamed.commandflow.annotated.annotation.Range; import team.unnamed.commandflow.annotated.part.PartFactory; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/EnumPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/EnumPartFactory.java index 3ecbba49..c09aaf32 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/EnumPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/EnumPartFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.part.defaults.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.part.defaults.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/FloatPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/FloatPartFactory.java index 516c634f..64ecbc47 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/FloatPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/FloatPartFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.part.defaults.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.part.defaults.factory; import team.unnamed.commandflow.annotated.annotation.Range; import team.unnamed.commandflow.annotated.part.PartFactory; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/IntegerPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/IntegerPartFactory.java index c440b080..6b20ab83 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/IntegerPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/IntegerPartFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.part.defaults.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.part.defaults.factory; import team.unnamed.commandflow.annotated.annotation.Range; import team.unnamed.commandflow.annotated.part.PartFactory; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/LongPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/LongPartFactory.java index d8e0cc8a..35fccce5 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/LongPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/LongPartFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.part.defaults.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.part.defaults.factory; import team.unnamed.commandflow.annotated.annotation.Range; import team.unnamed.commandflow.annotated.part.PartFactory; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/StringPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/StringPartFactory.java index 5299b40b..ccb813cf 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/StringPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/StringPartFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.part.defaults.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.part.defaults.factory; import team.unnamed.commandflow.annotated.annotation.ConsumeAll; import team.unnamed.commandflow.annotated.part.PartFactory; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/StringTextPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/StringTextPartFactory.java index 93d665a2..12e1074a 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/StringTextPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/StringTextPartFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.part.defaults.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.part.defaults.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/SwitchPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/SwitchPartFactory.java index 8c955b2b..888c7e6f 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/SwitchPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/SwitchPartFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.part.defaults.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.part.defaults.factory; import team.unnamed.commandflow.annotated.annotation.Switch; import team.unnamed.commandflow.annotated.part.PartFactory; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/LimitModifier.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/LimitModifier.java index f7da159d..19036112 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/LimitModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/LimitModifier.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.part.defaults.modifier; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.part.defaults.modifier; import team.unnamed.commandflow.annotated.annotation.Limit; import team.unnamed.commandflow.annotated.part.PartModifier; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/OptionalModifier.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/OptionalModifier.java index cf0e239e..6454209c 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/OptionalModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/OptionalModifier.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.part.defaults.modifier; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.part.defaults.modifier; import team.unnamed.commandflow.annotated.annotation.OptArg; import team.unnamed.commandflow.annotated.annotation.Strict; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/RewritesModifier.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/RewritesModifier.java index 4f2d12c9..e89bef0e 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/RewritesModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/RewritesModifier.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.part.defaults.modifier; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.part.defaults.modifier; import team.unnamed.commandflow.annotated.annotation.Rewrites; import team.unnamed.commandflow.annotated.part.PartModifier; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/SuggestionsModifier.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/SuggestionsModifier.java index 731dedc7..aa2b5004 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/SuggestionsModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/SuggestionsModifier.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.part.defaults.modifier; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.part.defaults.modifier; import team.unnamed.commandflow.annotated.annotation.Suggestions; import team.unnamed.commandflow.annotated.part.PartModifier; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/ValueFlagModifier.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/ValueFlagModifier.java index d98c2d49..100d980d 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/ValueFlagModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/ValueFlagModifier.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated.part.defaults.modifier; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated.part.defaults.modifier; import team.unnamed.commandflow.annotated.annotation.Flag; import team.unnamed.commandflow.annotated.part.PartModifier; diff --git a/api/src/main/java/team/unnamed/commandflow/command/Action.java b/api/src/main/java/team/unnamed/commandflow/command/Action.java index 9123b67e..01fce12c 100644 --- a/api/src/main/java/team/unnamed/commandflow/command/Action.java +++ b/api/src/main/java/team/unnamed/commandflow/command/Action.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.command; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.command; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.CommandManager; diff --git a/api/src/main/java/team/unnamed/commandflow/command/Command.java b/api/src/main/java/team/unnamed/commandflow/command/Command.java index 33dd66fe..184c5e21 100644 --- a/api/src/main/java/team/unnamed/commandflow/command/Command.java +++ b/api/src/main/java/team/unnamed/commandflow/command/Command.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.command; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.command; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.command.modifiers.CommandModifiers; diff --git a/api/src/main/java/team/unnamed/commandflow/command/SimpleCommand.java b/api/src/main/java/team/unnamed/commandflow/command/SimpleCommand.java index 3f1c3cb2..d1ef2d78 100644 --- a/api/src/main/java/team/unnamed/commandflow/command/SimpleCommand.java +++ b/api/src/main/java/team/unnamed/commandflow/command/SimpleCommand.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.command; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.command; import team.unnamed.commandflow.command.modifiers.CommandModifiers; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/command/modifiers/CommandModifier.java b/api/src/main/java/team/unnamed/commandflow/command/modifiers/CommandModifier.java index a171bee9..04d5fa49 100644 --- a/api/src/main/java/team/unnamed/commandflow/command/modifiers/CommandModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/command/modifiers/CommandModifier.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.command.modifiers; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.command.modifiers; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.stack.ArgumentStack; diff --git a/api/src/main/java/team/unnamed/commandflow/command/modifiers/CommandModifiers.java b/api/src/main/java/team/unnamed/commandflow/command/modifiers/CommandModifiers.java index 2c4a4802..f3b069f9 100644 --- a/api/src/main/java/team/unnamed/commandflow/command/modifiers/CommandModifiers.java +++ b/api/src/main/java/team/unnamed/commandflow/command/modifiers/CommandModifiers.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.command.modifiers; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.command.modifiers; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.stack.ArgumentStack; diff --git a/api/src/main/java/team/unnamed/commandflow/command/modifiers/FallbackCommandModifiers.java b/api/src/main/java/team/unnamed/commandflow/command/modifiers/FallbackCommandModifiers.java index 297ef20e..36237bf4 100644 --- a/api/src/main/java/team/unnamed/commandflow/command/modifiers/FallbackCommandModifiers.java +++ b/api/src/main/java/team/unnamed/commandflow/command/modifiers/FallbackCommandModifiers.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.command.modifiers; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.command.modifiers; import java.util.HashMap; import java.util.LinkedList; diff --git a/api/src/main/java/team/unnamed/commandflow/command/modifiers/ModifierPhase.java b/api/src/main/java/team/unnamed/commandflow/command/modifiers/ModifierPhase.java index 2cb503d7..78ccfa5f 100644 --- a/api/src/main/java/team/unnamed/commandflow/command/modifiers/ModifierPhase.java +++ b/api/src/main/java/team/unnamed/commandflow/command/modifiers/ModifierPhase.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.command.modifiers; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.command.modifiers; /** * This enum represents the different phases in which a modifier may be applied. diff --git a/api/src/main/java/team/unnamed/commandflow/command/modifiers/ModifierUtils.java b/api/src/main/java/team/unnamed/commandflow/command/modifiers/ModifierUtils.java index fc287a42..6f9aef13 100644 --- a/api/src/main/java/team/unnamed/commandflow/command/modifiers/ModifierUtils.java +++ b/api/src/main/java/team/unnamed/commandflow/command/modifiers/ModifierUtils.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.command.modifiers; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.command.modifiers; import java.util.LinkedList; import java.util.Map; diff --git a/api/src/main/java/team/unnamed/commandflow/command/modifiers/SequentialCommandModifier.java b/api/src/main/java/team/unnamed/commandflow/command/modifiers/SequentialCommandModifier.java index 98ddd0e1..2adf44d9 100644 --- a/api/src/main/java/team/unnamed/commandflow/command/modifiers/SequentialCommandModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/command/modifiers/SequentialCommandModifier.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.command.modifiers; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.command.modifiers; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.stack.ArgumentStack; diff --git a/api/src/main/java/team/unnamed/commandflow/command/modifiers/SimpleCommandModifiers.java b/api/src/main/java/team/unnamed/commandflow/command/modifiers/SimpleCommandModifiers.java index 92f8b4eb..eaef2fd5 100644 --- a/api/src/main/java/team/unnamed/commandflow/command/modifiers/SimpleCommandModifiers.java +++ b/api/src/main/java/team/unnamed/commandflow/command/modifiers/SimpleCommandModifiers.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.command.modifiers; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.command.modifiers; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.stack.ArgumentStack; diff --git a/api/src/main/java/team/unnamed/commandflow/exception/ArgumentException.java b/api/src/main/java/team/unnamed/commandflow/exception/ArgumentException.java index a2e6c812..ba752c4f 100644 --- a/api/src/main/java/team/unnamed/commandflow/exception/ArgumentException.java +++ b/api/src/main/java/team/unnamed/commandflow/exception/ArgumentException.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.exception; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.exception; import team.unnamed.commandflow.command.Command; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/exception/ArgumentParseException.java b/api/src/main/java/team/unnamed/commandflow/exception/ArgumentParseException.java index 645421c7..7398685b 100644 --- a/api/src/main/java/team/unnamed/commandflow/exception/ArgumentParseException.java +++ b/api/src/main/java/team/unnamed/commandflow/exception/ArgumentParseException.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.exception; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.exception; import net.kyori.adventure.text.Component; diff --git a/api/src/main/java/team/unnamed/commandflow/exception/CommandException.java b/api/src/main/java/team/unnamed/commandflow/exception/CommandException.java index af8c1bbc..96f22d81 100644 --- a/api/src/main/java/team/unnamed/commandflow/exception/CommandException.java +++ b/api/src/main/java/team/unnamed/commandflow/exception/CommandException.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.exception; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.exception; import team.unnamed.commandflow.command.Command; import net.kyori.adventure.text.Component; diff --git a/api/src/main/java/team/unnamed/commandflow/exception/CommandUsage.java b/api/src/main/java/team/unnamed/commandflow/exception/CommandUsage.java index c263eaab..fac0421c 100644 --- a/api/src/main/java/team/unnamed/commandflow/exception/CommandUsage.java +++ b/api/src/main/java/team/unnamed/commandflow/exception/CommandUsage.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.exception; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.exception; import net.kyori.adventure.text.Component; diff --git a/api/src/main/java/team/unnamed/commandflow/exception/InvalidSubCommandException.java b/api/src/main/java/team/unnamed/commandflow/exception/InvalidSubCommandException.java index d70cc639..e5624457 100644 --- a/api/src/main/java/team/unnamed/commandflow/exception/InvalidSubCommandException.java +++ b/api/src/main/java/team/unnamed/commandflow/exception/InvalidSubCommandException.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.exception; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.exception; import net.kyori.adventure.text.Component; diff --git a/api/src/main/java/team/unnamed/commandflow/exception/NoMoreArgumentsException.java b/api/src/main/java/team/unnamed/commandflow/exception/NoMoreArgumentsException.java index 69c79978..35557cf1 100644 --- a/api/src/main/java/team/unnamed/commandflow/exception/NoMoreArgumentsException.java +++ b/api/src/main/java/team/unnamed/commandflow/exception/NoMoreArgumentsException.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.exception; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.exception; import net.kyori.adventure.text.Component; diff --git a/api/src/main/java/team/unnamed/commandflow/exception/NoPermissionsException.java b/api/src/main/java/team/unnamed/commandflow/exception/NoPermissionsException.java index 8aa9cecd..d291fcbd 100644 --- a/api/src/main/java/team/unnamed/commandflow/exception/NoPermissionsException.java +++ b/api/src/main/java/team/unnamed/commandflow/exception/NoPermissionsException.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.exception; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.exception; import net.kyori.adventure.text.Component; diff --git a/api/src/main/java/team/unnamed/commandflow/exception/StopParseException.java b/api/src/main/java/team/unnamed/commandflow/exception/StopParseException.java index 14a333a0..da6be0c8 100644 --- a/api/src/main/java/team/unnamed/commandflow/exception/StopParseException.java +++ b/api/src/main/java/team/unnamed/commandflow/exception/StopParseException.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.exception; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.exception; /** * Thrown when we should stop parsing the command, without doing any further processing. diff --git a/api/src/main/java/team/unnamed/commandflow/executor/DefaultExecutor.java b/api/src/main/java/team/unnamed/commandflow/executor/DefaultExecutor.java index b7ba7b65..58fce3f6 100644 --- a/api/src/main/java/team/unnamed/commandflow/executor/DefaultExecutor.java +++ b/api/src/main/java/team/unnamed/commandflow/executor/DefaultExecutor.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.executor; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.executor; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.command.Command; diff --git a/api/src/main/java/team/unnamed/commandflow/executor/Executor.java b/api/src/main/java/team/unnamed/commandflow/executor/Executor.java index cf427ccb..5800de64 100644 --- a/api/src/main/java/team/unnamed/commandflow/executor/Executor.java +++ b/api/src/main/java/team/unnamed/commandflow/executor/Executor.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.executor; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.executor; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.command.Action; diff --git a/api/src/main/java/team/unnamed/commandflow/input/InputTokenizer.java b/api/src/main/java/team/unnamed/commandflow/input/InputTokenizer.java index c4fddc30..b5a5d71d 100644 --- a/api/src/main/java/team/unnamed/commandflow/input/InputTokenizer.java +++ b/api/src/main/java/team/unnamed/commandflow/input/InputTokenizer.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.input; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.input; import java.util.List; diff --git a/api/src/main/java/team/unnamed/commandflow/input/QuotedSpaceTokenizer.java b/api/src/main/java/team/unnamed/commandflow/input/QuotedSpaceTokenizer.java index ede9b6cf..99fd0e67 100644 --- a/api/src/main/java/team/unnamed/commandflow/input/QuotedSpaceTokenizer.java +++ b/api/src/main/java/team/unnamed/commandflow/input/QuotedSpaceTokenizer.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.input; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.input; import java.util.ArrayList; import java.util.List; diff --git a/api/src/main/java/team/unnamed/commandflow/input/StringSpaceTokenizer.java b/api/src/main/java/team/unnamed/commandflow/input/StringSpaceTokenizer.java index 1a0a0dbd..7617ec24 100644 --- a/api/src/main/java/team/unnamed/commandflow/input/StringSpaceTokenizer.java +++ b/api/src/main/java/team/unnamed/commandflow/input/StringSpaceTokenizer.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.input; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.input; import java.util.ArrayList; import java.util.Arrays; diff --git a/api/src/main/java/team/unnamed/commandflow/part/ArgumentPart.java b/api/src/main/java/team/unnamed/commandflow/part/ArgumentPart.java index f9f22305..f08aafb8 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/ArgumentPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/ArgumentPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/CommandPart.java b/api/src/main/java/team/unnamed/commandflow/part/CommandPart.java index 5fda9877..c16b8818 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/CommandPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/CommandPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/Parts.java b/api/src/main/java/team/unnamed/commandflow/part/Parts.java index 4bd4a8b9..135350c9 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/Parts.java +++ b/api/src/main/java/team/unnamed/commandflow/part/Parts.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.command.Command; diff --git a/api/src/main/java/team/unnamed/commandflow/part/PartsWrapper.java b/api/src/main/java/team/unnamed/commandflow/part/PartsWrapper.java index fcc4bbb7..1a37918a 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/PartsWrapper.java +++ b/api/src/main/java/team/unnamed/commandflow/part/PartsWrapper.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part; import team.unnamed.commandflow.part.visitor.CommandPartVisitor; diff --git a/api/src/main/java/team/unnamed/commandflow/part/SinglePartWrapper.java b/api/src/main/java/team/unnamed/commandflow/part/SinglePartWrapper.java index ba856ed1..5c3a788e 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/SinglePartWrapper.java +++ b/api/src/main/java/team/unnamed/commandflow/part/SinglePartWrapper.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part; import team.unnamed.commandflow.part.visitor.CommandPartVisitor; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/ArgumentRewriterPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/ArgumentRewriterPart.java index ad7f25fb..947e9702 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/ArgumentRewriterPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/ArgumentRewriterPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part.defaults; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/ArgumentStackPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/ArgumentStackPart.java index 593c3dc0..72187a64 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/ArgumentStackPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/ArgumentStackPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part.defaults; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/BooleanPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/BooleanPart.java index 19d1cee8..4939eaa6 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/BooleanPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/BooleanPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part.defaults; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/ContextPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/ContextPart.java index f3fbc314..d55b8544 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/ContextPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/ContextPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part.defaults; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/DoublePart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/DoublePart.java index 73e7b1e4..6e1eca9e 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/DoublePart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/DoublePart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part.defaults; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/EmptyPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/EmptyPart.java index 38773493..c52a1a9a 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/EmptyPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/EmptyPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part.defaults; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/EnumPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/EnumPart.java index 58a8a32c..facf1c46 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/EnumPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/EnumPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part.defaults; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/FirstMatchPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/FirstMatchPart.java index 87d8d385..036e14bc 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/FirstMatchPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/FirstMatchPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part.defaults; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.ContextSnapshot; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/FloatPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/FloatPart.java index 1fd04119..46bd6e71 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/FloatPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/FloatPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part.defaults; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/IntegerPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/IntegerPart.java index a00b7b8a..26f6de0e 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/IntegerPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/IntegerPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part.defaults; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/LimitingPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/LimitingPart.java index 217e0233..437898eb 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/LimitingPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/LimitingPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part.defaults; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/LongPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/LongPart.java index 7c1eb5fd..1b896074 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/LongPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/LongPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part.defaults; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/OptionalPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/OptionalPart.java index 360327be..5eaabb27 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/OptionalPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/OptionalPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part.defaults; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.ContextSnapshot; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/PrimitivePart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/PrimitivePart.java index accf4041..93fdc1c8 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/PrimitivePart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/PrimitivePart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part.defaults; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.part.ArgumentPart; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/SequentialCommandPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/SequentialCommandPart.java index 883fd918..d3d13d5b 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/SequentialCommandPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/SequentialCommandPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part.defaults; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/StringPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/StringPart.java index 703daa5a..378c2680 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/StringPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/StringPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part.defaults; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/SubCommandPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/SubCommandPart.java index ddda2c9d..31250e77 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/SubCommandPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/SubCommandPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part.defaults; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.Authorizer; import team.unnamed.commandflow.CommandContext; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/SuggestionsModifierPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/SuggestionsModifierPart.java index d78b8c03..7c4bf8e8 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/SuggestionsModifierPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/SuggestionsModifierPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part.defaults; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/SwitchPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/SwitchPart.java index c74eeb66..8a14c93e 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/SwitchPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/SwitchPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part.defaults; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/ValueFlagPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/ValueFlagPart.java index 760831c2..227e764f 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/ValueFlagPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/ValueFlagPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part.defaults; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.ContextSnapshot; diff --git a/api/src/main/java/team/unnamed/commandflow/part/visitor/CommandPartVisitor.java b/api/src/main/java/team/unnamed/commandflow/part/visitor/CommandPartVisitor.java index 3063d340..c0d9b643 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/visitor/CommandPartVisitor.java +++ b/api/src/main/java/team/unnamed/commandflow/part/visitor/CommandPartVisitor.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part.visitor; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part.visitor; import team.unnamed.commandflow.part.ArgumentPart; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/part/visitor/UnwrappedCommandPartVisitor.java b/api/src/main/java/team/unnamed/commandflow/part/visitor/UnwrappedCommandPartVisitor.java index f4253394..c84ddced 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/visitor/UnwrappedCommandPartVisitor.java +++ b/api/src/main/java/team/unnamed/commandflow/part/visitor/UnwrappedCommandPartVisitor.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.part.visitor; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.part.visitor; import team.unnamed.commandflow.part.PartsWrapper; import team.unnamed.commandflow.part.defaults.FirstMatchPart; diff --git a/api/src/main/java/team/unnamed/commandflow/stack/ArgumentStack.java b/api/src/main/java/team/unnamed/commandflow/stack/ArgumentStack.java index 9e2ecd91..bd7e8fd7 100644 --- a/api/src/main/java/team/unnamed/commandflow/stack/ArgumentStack.java +++ b/api/src/main/java/team/unnamed/commandflow/stack/ArgumentStack.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.stack; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.stack; import team.unnamed.commandflow.exception.ArgumentParseException; import team.unnamed.commandflow.exception.NoMoreArgumentsException; diff --git a/api/src/main/java/team/unnamed/commandflow/stack/SimpleArgumentStack.java b/api/src/main/java/team/unnamed/commandflow/stack/SimpleArgumentStack.java index 15449196..e7df0ab9 100644 --- a/api/src/main/java/team/unnamed/commandflow/stack/SimpleArgumentStack.java +++ b/api/src/main/java/team/unnamed/commandflow/stack/SimpleArgumentStack.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.stack; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.stack; import team.unnamed.commandflow.exception.ArgumentParseException; import team.unnamed.commandflow.exception.NoMoreArgumentsException; diff --git a/api/src/main/java/team/unnamed/commandflow/stack/StackSnapshot.java b/api/src/main/java/team/unnamed/commandflow/stack/StackSnapshot.java index fb36e939..b639d1fb 100644 --- a/api/src/main/java/team/unnamed/commandflow/stack/StackSnapshot.java +++ b/api/src/main/java/team/unnamed/commandflow/stack/StackSnapshot.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.stack; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.stack; import java.util.ArrayList; import java.util.List; diff --git a/api/src/main/java/team/unnamed/commandflow/translator/ComponentRendererTranslator.java b/api/src/main/java/team/unnamed/commandflow/translator/ComponentRendererTranslator.java index 1c2e16ce..0eb8d2be 100644 --- a/api/src/main/java/team/unnamed/commandflow/translator/ComponentRendererTranslator.java +++ b/api/src/main/java/team/unnamed/commandflow/translator/ComponentRendererTranslator.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.translator; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.translator; import team.unnamed.commandflow.Namespace; import net.kyori.adventure.text.Component; diff --git a/api/src/main/java/team/unnamed/commandflow/translator/DefaultMapTranslationProvider.java b/api/src/main/java/team/unnamed/commandflow/translator/DefaultMapTranslationProvider.java index a80ee159..5401a17b 100644 --- a/api/src/main/java/team/unnamed/commandflow/translator/DefaultMapTranslationProvider.java +++ b/api/src/main/java/team/unnamed/commandflow/translator/DefaultMapTranslationProvider.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.translator; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.translator; import team.unnamed.commandflow.Namespace; diff --git a/api/src/main/java/team/unnamed/commandflow/translator/DefaultTranslator.java b/api/src/main/java/team/unnamed/commandflow/translator/DefaultTranslator.java index c2df6207..fe5db63c 100644 --- a/api/src/main/java/team/unnamed/commandflow/translator/DefaultTranslator.java +++ b/api/src/main/java/team/unnamed/commandflow/translator/DefaultTranslator.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.translator; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.translator; import team.unnamed.commandflow.Namespace; import net.kyori.adventure.text.Component; diff --git a/api/src/main/java/team/unnamed/commandflow/translator/TranslationProvider.java b/api/src/main/java/team/unnamed/commandflow/translator/TranslationProvider.java index f2c8e363..9bf7930d 100644 --- a/api/src/main/java/team/unnamed/commandflow/translator/TranslationProvider.java +++ b/api/src/main/java/team/unnamed/commandflow/translator/TranslationProvider.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.translator; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.translator; import team.unnamed.commandflow.Namespace; diff --git a/api/src/main/java/team/unnamed/commandflow/translator/Translator.java b/api/src/main/java/team/unnamed/commandflow/translator/Translator.java index 80cbd0f6..b7ce0883 100644 --- a/api/src/main/java/team/unnamed/commandflow/translator/Translator.java +++ b/api/src/main/java/team/unnamed/commandflow/translator/Translator.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.translator; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.translator; import team.unnamed.commandflow.Namespace; import net.kyori.adventure.text.Component; diff --git a/api/src/main/java/team/unnamed/commandflow/usage/DefaultUsageBuilder.java b/api/src/main/java/team/unnamed/commandflow/usage/DefaultUsageBuilder.java index 902dd65a..34912e08 100644 --- a/api/src/main/java/team/unnamed/commandflow/usage/DefaultUsageBuilder.java +++ b/api/src/main/java/team/unnamed/commandflow/usage/DefaultUsageBuilder.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.usage; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.usage; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.command.Command; diff --git a/api/src/main/java/team/unnamed/commandflow/usage/UsageBuilder.java b/api/src/main/java/team/unnamed/commandflow/usage/UsageBuilder.java index 5d50575f..fc0103ff 100644 --- a/api/src/main/java/team/unnamed/commandflow/usage/UsageBuilder.java +++ b/api/src/main/java/team/unnamed/commandflow/usage/UsageBuilder.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.usage; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.usage; import team.unnamed.commandflow.CommandContext; import net.kyori.adventure.text.Component; diff --git a/api/src/test/java/team/unnamed/commandflow/InputTokenizerTest.java b/api/src/test/java/team/unnamed/commandflow/InputTokenizerTest.java index 1434d8e8..b3db278a 100644 --- a/api/src/test/java/team/unnamed/commandflow/InputTokenizerTest.java +++ b/api/src/test/java/team/unnamed/commandflow/InputTokenizerTest.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow; import team.unnamed.commandflow.input.InputTokenizer; import team.unnamed.commandflow.input.QuotedSpaceTokenizer; diff --git a/api/src/test/java/team/unnamed/commandflow/ParameterizedPartTest.java b/api/src/test/java/team/unnamed/commandflow/ParameterizedPartTest.java index e0eb2d43..02e79fa8 100644 --- a/api/src/test/java/team/unnamed/commandflow/ParameterizedPartTest.java +++ b/api/src/test/java/team/unnamed/commandflow/ParameterizedPartTest.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow; import team.unnamed.commandflow.annotated.AnnotatedCommandTreeBuilder; import team.unnamed.commandflow.annotated.CommandClass; diff --git a/api/src/test/java/team/unnamed/commandflow/annotated/CustomComponentParserTest.java b/api/src/test/java/team/unnamed/commandflow/annotated/CustomComponentParserTest.java index 92f33089..ac3a6946 100644 --- a/api/src/test/java/team/unnamed/commandflow/annotated/CustomComponentParserTest.java +++ b/api/src/test/java/team/unnamed/commandflow/annotated/CustomComponentParserTest.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.annotated; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.annotated; import team.unnamed.commandflow.annotated.annotation.Command; import team.unnamed.commandflow.annotated.annotation.Usage; diff --git a/brigadier/build.gradle.kts b/brigadier/build.gradle.kts new file mode 100644 index 00000000..86a1d097 --- /dev/null +++ b/brigadier/build.gradle.kts @@ -0,0 +1,17 @@ +plugins { + id("commandflow.publishing-conventions") +} + +repositories { + maven("https://libraries.minecraft.net/") + maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") +} + +dependencies { + api(project(":commandflow-api")) + api(project(":commandflow-bukkit")) { + exclude(group = "org.spigotmc", module = "spigot-api") + } + compileOnly("org.spigotmc:spigot-api:1.13.2-R0.1-SNAPSHOT") + api("me.lucko:commodore:1.10") +} \ No newline at end of file diff --git a/brigadier/pom.xml b/brigadier/pom.xml deleted file mode 100644 index 023df43b..00000000 --- a/brigadier/pom.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - 4.0.0 - - team.unnamed - commandflow - ${revision} - - commandflow-brigadier - jar - - - - minecraft-repo - https://libraries.minecraft.net/ - - - spigotmc-repo - https://hub.spigotmc.org/nexus/content/repositories/snapshots/ - - - - - - team.unnamed - commandflow-api - ${revision} - compile - - - team.unnamed - commandflow-bukkit - ${project.version} - compile - - - org.spigotmc - spigot-api - - - - - org.spigotmc - spigot-api - 1.13.2-R0.1-SNAPSHOT - provided - - - me.lucko - commodore - 1.10 - compile - - - diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandManager.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandManager.java index 0e883b3f..fe1f549e 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandManager.java +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandManager.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.brigadier; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.brigadier; import com.mojang.brigadier.exceptions.CommandSyntaxException; import com.mojang.brigadier.tree.LiteralCommandNode; diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandWrapper.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandWrapper.java index 0586732d..cc2bee96 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandWrapper.java +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandWrapper.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.brigadier; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.brigadier; import team.unnamed.commandflow.CommandManager; import team.unnamed.commandflow.bukkit.BukkitCommandWrapper; diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierDefaultTranslationProvider.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierDefaultTranslationProvider.java index e360053f..a9c085cf 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierDefaultTranslationProvider.java +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierDefaultTranslationProvider.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.brigadier; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.brigadier; import team.unnamed.commandflow.bukkit.BukkitDefaultTranslationProvider; diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java index 154df04b..65dba2e0 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.brigadier; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.brigadier; import com.mojang.brigadier.arguments.ArgumentType; import com.mojang.brigadier.arguments.BoolArgumentType; diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNode.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNode.java index 98c0c670..dc53d791 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNode.java +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNode.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.brigadier; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.brigadier; import com.mojang.brigadier.builder.ArgumentBuilder; import com.mojang.brigadier.builder.LiteralArgumentBuilder; diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNodeBuilder.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNodeBuilder.java index 5cb93c01..32ec5907 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNodeBuilder.java +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNodeBuilder.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.brigadier; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.brigadier; import com.mojang.brigadier.Command; import com.mojang.brigadier.RedirectModifier; diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/PermissionRequirement.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/PermissionRequirement.java index 21fb4687..c36004fe 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/PermissionRequirement.java +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/PermissionRequirement.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.brigadier; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.brigadier; import team.unnamed.commandflow.Authorizer; import team.unnamed.commandflow.Namespace; diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts new file mode 100644 index 00000000..d2f88c4e --- /dev/null +++ b/buildSrc/build.gradle.kts @@ -0,0 +1,11 @@ +plugins { + `kotlin-dsl` +} + +repositories { + gradlePluginPortal() +} + +dependencies { + implementation("gradle.plugin.org.cadixdev.gradle:licenser:0.6.1") +} \ No newline at end of file diff --git a/buildSrc/settings.gradle.kts b/buildSrc/settings.gradle.kts new file mode 100644 index 00000000..3f87d39f --- /dev/null +++ b/buildSrc/settings.gradle.kts @@ -0,0 +1 @@ +rootProject.name = "buildSrc" \ No newline at end of file diff --git a/buildSrc/src/main/kotlin/commandflow.java-conventions.gradle.kts b/buildSrc/src/main/kotlin/commandflow.java-conventions.gradle.kts new file mode 100644 index 00000000..0beb1cda --- /dev/null +++ b/buildSrc/src/main/kotlin/commandflow.java-conventions.gradle.kts @@ -0,0 +1,43 @@ +plugins { + `java-library` + id("org.cadixdev.licenser") +} + +repositories { + mavenLocal() + mavenCentral() +} + +dependencies { + testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2") + testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.2") +} + +java { + withJavadocJar() + withSourcesJar() + toolchain { + languageVersion.set(JavaLanguageVersion.of(8)) + } +} + +license { + header.set(rootProject.resources.text.fromFile("header.txt")) + include("**/*.java") + newLine.set(false) +} + +tasks { + compileJava { + options.encoding = "UTF-8" + } + compileTestJava { + options.encoding = "UTF-8" + } + javadoc { + isFailOnError = false + } + test { + useJUnitPlatform() + } +} \ No newline at end of file diff --git a/buildSrc/src/main/kotlin/commandflow.publishing-conventions.gradle.kts b/buildSrc/src/main/kotlin/commandflow.publishing-conventions.gradle.kts new file mode 100644 index 00000000..df3d6d17 --- /dev/null +++ b/buildSrc/src/main/kotlin/commandflow.publishing-conventions.gradle.kts @@ -0,0 +1,25 @@ +plugins { + id("commandflow.java-conventions") + `maven-publish` +} + +val repositoryName: String by project +val snapshotRepository: String by project +val releaseRepository: String by project + +publishing { + repositories { + maven { + val snapshot = project.version.toString().endsWith("-SNAPSHOT") + + name = repositoryName + url = if (snapshot) { uri(snapshotRepository) } else { uri(releaseRepository) } + credentials(PasswordCredentials::class) + } + } + publications { + create("maven") { + from(getComponents().getByName("java")) + } + } +} \ No newline at end of file diff --git a/bukkit/build.gradle.kts b/bukkit/build.gradle.kts new file mode 100644 index 00000000..604b24f7 --- /dev/null +++ b/bukkit/build.gradle.kts @@ -0,0 +1,12 @@ +plugins { + id("commandflow.publishing-conventions") +} + +repositories { + maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") +} + +dependencies { + api(project(":commandflow-api")) + compileOnly("org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT") +} \ No newline at end of file diff --git a/bukkit/pom.xml b/bukkit/pom.xml deleted file mode 100644 index 4a038003..00000000 --- a/bukkit/pom.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - 4.0.0 - - team.unnamed - commandflow - ${revision} - - commandflow-bukkit - jar - - - - spigotmc-repo - https://hub.spigotmc.org/nexus/content/repositories/snapshots/ - - - - - - org.spigotmc - spigot-api - 1.8.8-R0.1-SNAPSHOT - provided - - - team.unnamed - commandflow-api - ${project.version} - compile - - - diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitAuthorizer.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitAuthorizer.java index cd58a50e..e2c29911 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitAuthorizer.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitAuthorizer.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bukkit; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bukkit; import team.unnamed.commandflow.Authorizer; import team.unnamed.commandflow.Namespace; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandManager.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandManager.java index b5937caf..2962579c 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandManager.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandManager.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bukkit; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bukkit; import team.unnamed.commandflow.Authorizer; import team.unnamed.commandflow.CommandContext; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandWrapper.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandWrapper.java index 9067b734..8d845319 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandWrapper.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandWrapper.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bukkit; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bukkit; import team.unnamed.commandflow.Authorizer; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitDefaultTranslationProvider.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitDefaultTranslationProvider.java index c2930765..f5e12001 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitDefaultTranslationProvider.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitDefaultTranslationProvider.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bukkit; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bukkit; import team.unnamed.commandflow.translator.DefaultMapTranslationProvider; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/MessageUtils.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/MessageUtils.java index 8010ea5d..496db599 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/MessageUtils.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/MessageUtils.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bukkit; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bukkit; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/Exact.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/Exact.java index e73924ee..5f3877e5 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/Exact.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/Exact.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bukkit.annotation; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bukkit.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/PlayerOrSource.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/PlayerOrSource.java index 942d93de..21337176 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/PlayerOrSource.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/PlayerOrSource.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bukkit.annotation; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bukkit.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/BukkitModule.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/BukkitModule.java index 19050450..0c91acfd 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/BukkitModule.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/BukkitModule.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bukkit.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bukkit.factory; import team.unnamed.commandflow.annotated.part.AbstractModule; import team.unnamed.commandflow.annotated.part.Key; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/CommandSenderFactory.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/CommandSenderFactory.java index d76bba0e..7dd786a4 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/CommandSenderFactory.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/CommandSenderFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bukkit.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bukkit.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.bukkit.part.CommandSenderPart; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/GameModeFactory.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/GameModeFactory.java index 1c937ee6..385cb922 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/GameModeFactory.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/GameModeFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bukkit.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bukkit.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.bukkit.part.GameModePart; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/OfflinePlayerPartFactory.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/OfflinePlayerPartFactory.java index db9a76c7..a88476b9 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/OfflinePlayerPartFactory.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/OfflinePlayerPartFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bukkit.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bukkit.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.bukkit.annotation.PlayerOrSource; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerPartFactory.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerPartFactory.java index 8bbbbbea..cf4ba8d3 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerPartFactory.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerPartFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bukkit.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bukkit.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.bukkit.annotation.Exact; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerSenderFactory.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerSenderFactory.java index e92430c1..bba1a376 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerSenderFactory.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerSenderFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bukkit.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bukkit.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.bukkit.part.PlayerSenderPart; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/WorldFactory.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/WorldFactory.java index 6b47acbb..2fa39cc1 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/WorldFactory.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/WorldFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bukkit.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bukkit.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.bukkit.part.WorldPart; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/BukkitParts.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/BukkitParts.java index 577984c1..3e9c6f5d 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/BukkitParts.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/BukkitParts.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bukkit.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bukkit.part; import team.unnamed.commandflow.part.CommandPart; import team.unnamed.commandflow.part.ArgumentPart; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/CommandSenderPart.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/CommandSenderPart.java index 2d64ee8b..ce7feb6c 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/CommandSenderPart.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/CommandSenderPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bukkit.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bukkit.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.bukkit.BukkitCommandManager; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/GameModePart.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/GameModePart.java index 39b97830..2df8f132 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/GameModePart.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/GameModePart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bukkit.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bukkit.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/OfflinePlayerPart.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/OfflinePlayerPart.java index e5eea592..8075d22d 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/OfflinePlayerPart.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/OfflinePlayerPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bukkit.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bukkit.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.bukkit.BukkitCommandManager; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerPart.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerPart.java index 40b7bf44..9f3ad18c 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerPart.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bukkit.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bukkit.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.bukkit.BukkitCommandManager; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerSenderPart.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerSenderPart.java index 7483d25e..f2bb983c 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerSenderPart.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerSenderPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bukkit.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bukkit.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.bukkit.BukkitCommandManager; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/WorldPart.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/WorldPart.java index 7bc16b13..1ad74b83 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/WorldPart.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/WorldPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bukkit.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bukkit.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/bungee/build.gradle.kts b/bungee/build.gradle.kts new file mode 100644 index 00000000..c9c6bfc7 --- /dev/null +++ b/bungee/build.gradle.kts @@ -0,0 +1,12 @@ +plugins { + id("commandflow.publishing-conventions") +} + +repositories { + maven("https://oss.sonatype.org/content/repositories/snapshots/") +} + +dependencies { + api(project(":commandflow-api")) + compileOnly("net.md-5:bungeecord-api:1.15-SNAPSHOT") +} \ No newline at end of file diff --git a/bungee/pom.xml b/bungee/pom.xml deleted file mode 100644 index fb30eea1..00000000 --- a/bungee/pom.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - 4.0.0 - - team.unnamed - commandflow - ${revision} - - commandflow-bungee - jar - - - - bungeecord-repo - https://oss.sonatype.org/content/repositories/snapshots - - - - - - team.unnamed - commandflow-api - ${project.version} - compile - - - net.md-5 - bungeecord-api - 1.15-SNAPSHOT - provided - - - - \ No newline at end of file diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeAuthorizer.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeAuthorizer.java index f1397a83..bbc83c09 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeAuthorizer.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeAuthorizer.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bungee; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bungee; import team.unnamed.commandflow.Authorizer; import team.unnamed.commandflow.Namespace; diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandManager.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandManager.java index c90a6125..923fc78b 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandManager.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandManager.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bungee; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bungee; import team.unnamed.commandflow.Authorizer; import team.unnamed.commandflow.CommandContext; diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandWrapper.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandWrapper.java index 4af1d693..67fc735a 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandWrapper.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandWrapper.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bungee; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bungee; import team.unnamed.commandflow.CommandManager; import team.unnamed.commandflow.Namespace; diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeDefaultTranslationProvider.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeDefaultTranslationProvider.java index 4ce0bb32..e45be102 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeDefaultTranslationProvider.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeDefaultTranslationProvider.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bungee; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bungee; import team.unnamed.commandflow.translator.DefaultMapTranslationProvider; diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/MessageUtils.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/MessageUtils.java index 93538150..5744df0b 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/MessageUtils.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/MessageUtils.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bungee; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bungee; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer; diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/annotation/ProxiedPlayerOrSource.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/annotation/ProxiedPlayerOrSource.java index aae483fc..154ac597 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/annotation/ProxiedPlayerOrSource.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/annotation/ProxiedPlayerOrSource.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bungee.annotation; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bungee.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/BungeeModule.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/BungeeModule.java index 4a9406b5..8ad5b14d 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/BungeeModule.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/BungeeModule.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bungee.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bungee.factory; import team.unnamed.commandflow.annotated.part.AbstractModule; import team.unnamed.commandflow.annotated.part.Key; diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/CommandSenderPartFactory.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/CommandSenderPartFactory.java index a6b3c831..f1ee36db 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/CommandSenderPartFactory.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/CommandSenderPartFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bungee.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bungee.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.bungee.part.CommandSenderPart; diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/ProxiedPlayerPartFactory.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/ProxiedPlayerPartFactory.java index 1fc9f557..035cbdec 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/ProxiedPlayerPartFactory.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/ProxiedPlayerPartFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bungee.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bungee.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.bungee.annotation.ProxiedPlayerOrSource; diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/ProxiedPlayerSenderPartFactory.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/ProxiedPlayerSenderPartFactory.java index 1bf40125..76140988 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/ProxiedPlayerSenderPartFactory.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/ProxiedPlayerSenderPartFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bungee.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bungee.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.bungee.part.ProxiedPlayerSenderPart; diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/part/CommandSenderPart.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/part/CommandSenderPart.java index fbfcbaad..31306bca 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/part/CommandSenderPart.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/part/CommandSenderPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bungee.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bungee.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.bungee.BungeeCommandManager; diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/part/ProxiedPlayerPart.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/part/ProxiedPlayerPart.java index 1ba83dc8..e262e5fb 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/part/ProxiedPlayerPart.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/part/ProxiedPlayerPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bungee.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bungee.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.bungee.BungeeCommandManager; diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/part/ProxiedPlayerSenderPart.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/part/ProxiedPlayerSenderPart.java index d8b9f0c4..e6838d47 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/part/ProxiedPlayerSenderPart.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/part/ProxiedPlayerSenderPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.bungee.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.bungee.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.bungee.BungeeCommandManager; diff --git a/discord/build.gradle.kts b/discord/build.gradle.kts new file mode 100644 index 00000000..2d628308 --- /dev/null +++ b/discord/build.gradle.kts @@ -0,0 +1,12 @@ +plugins { + id("commandflow.publishing-conventions") +} + +repositories { + maven("https://jcenter.bintray.com/") +} + +dependencies { + api("net.dv8tion:JDA:4.2.0_208") + api(project(":commandflow-api")) +} \ No newline at end of file diff --git a/discord/pom.xml b/discord/pom.xml deleted file mode 100644 index 63d3c50c..00000000 --- a/discord/pom.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - 4.0.0 - - team.unnamed - commandflow - ${revision} - - commandflow-discord - jar - - - - jcenter - jcenter-bintray - https://jcenter.bintray.com - - - - - - net.dv8tion - JDA - 4.2.0_208 - - - team.unnamed - commandflow-api - ${project.version} - compile - - - - \ No newline at end of file diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/DiscordAuthorizer.java b/discord/src/main/java/team/unnamed/commandflow/discord/DiscordAuthorizer.java index 47aa732e..423c2e17 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/DiscordAuthorizer.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/DiscordAuthorizer.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.discord; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.discord; import team.unnamed.commandflow.Authorizer; import team.unnamed.commandflow.Namespace; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/DiscordCommandManager.java b/discord/src/main/java/team/unnamed/commandflow/discord/DiscordCommandManager.java index d4f29d87..4ac28bd5 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/DiscordCommandManager.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/DiscordCommandManager.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.discord; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.discord; import team.unnamed.commandflow.Authorizer; import team.unnamed.commandflow.CommandContext; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/DiscordDefaultTranslationProvider.java b/discord/src/main/java/team/unnamed/commandflow/discord/DiscordDefaultTranslationProvider.java index 31c33b31..187a05fd 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/DiscordDefaultTranslationProvider.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/DiscordDefaultTranslationProvider.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.discord; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.discord; import team.unnamed.commandflow.translator.DefaultMapTranslationProvider; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/MessageListener.java b/discord/src/main/java/team/unnamed/commandflow/discord/MessageListener.java index ad4d6d7b..f9375997 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/MessageListener.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/MessageListener.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.discord; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.discord; import team.unnamed.commandflow.CommandManager; import team.unnamed.commandflow.Namespace; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/factory/DiscordModule.java b/discord/src/main/java/team/unnamed/commandflow/discord/factory/DiscordModule.java index 9c4abe93..3e26e8e7 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/factory/DiscordModule.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/factory/DiscordModule.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.discord.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.discord.factory; import team.unnamed.commandflow.annotated.part.AbstractModule; import team.unnamed.commandflow.annotated.part.Key; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/factory/MemberPartFactory.java b/discord/src/main/java/team/unnamed/commandflow/discord/factory/MemberPartFactory.java index 5e827bf8..90e18768 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/factory/MemberPartFactory.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/factory/MemberPartFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.discord.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.discord.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.discord.part.MemberPart; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/factory/MemberSenderPartFactory.java b/discord/src/main/java/team/unnamed/commandflow/discord/factory/MemberSenderPartFactory.java index 71c09b7c..7c4162ee 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/factory/MemberSenderPartFactory.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/factory/MemberSenderPartFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.discord.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.discord.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.discord.part.MemberSenderPart; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/factory/MessagePartFactory.java b/discord/src/main/java/team/unnamed/commandflow/discord/factory/MessagePartFactory.java index 9673c10b..c9e4712f 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/factory/MessagePartFactory.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/factory/MessagePartFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.discord.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.discord.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.discord.part.MessagePart; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/factory/TextChannelPartFactory.java b/discord/src/main/java/team/unnamed/commandflow/discord/factory/TextChannelPartFactory.java index 0d4b94b2..e444d874 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/factory/TextChannelPartFactory.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/factory/TextChannelPartFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.discord.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.discord.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.discord.part.TextChannelPart; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/factory/UserPartFactory.java b/discord/src/main/java/team/unnamed/commandflow/discord/factory/UserPartFactory.java index 6245b5fc..f9f8ac0b 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/factory/UserPartFactory.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/factory/UserPartFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.discord.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.discord.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.discord.part.UserPart; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/factory/UserSenderPartFactory.java b/discord/src/main/java/team/unnamed/commandflow/discord/factory/UserSenderPartFactory.java index ffb5bcb4..b56cdc4d 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/factory/UserSenderPartFactory.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/factory/UserSenderPartFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.discord.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.discord.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.discord.part.UserSenderPart; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/part/MemberPart.java b/discord/src/main/java/team/unnamed/commandflow/discord/part/MemberPart.java index c7a54675..c4a972e8 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/part/MemberPart.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/part/MemberPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.discord.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.discord.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.discord.DiscordCommandManager; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/part/MemberSenderPart.java b/discord/src/main/java/team/unnamed/commandflow/discord/part/MemberSenderPart.java index 1b15fc91..a72e3a06 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/part/MemberSenderPart.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/part/MemberSenderPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.discord.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.discord.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.discord.DiscordCommandManager; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/part/MessagePart.java b/discord/src/main/java/team/unnamed/commandflow/discord/part/MessagePart.java index e7fcea19..ddc7cae7 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/part/MessagePart.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/part/MessagePart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.discord.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.discord.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.discord.DiscordCommandManager; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/part/TextChannelPart.java b/discord/src/main/java/team/unnamed/commandflow/discord/part/TextChannelPart.java index 1275c4bf..d92f3511 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/part/TextChannelPart.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/part/TextChannelPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.discord.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.discord.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.discord.DiscordCommandManager; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/part/UserPart.java b/discord/src/main/java/team/unnamed/commandflow/discord/part/UserPart.java index 0ed644cb..43dfd74c 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/part/UserPart.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/part/UserPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.discord.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.discord.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.discord.DiscordCommandManager; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/part/UserSenderPart.java b/discord/src/main/java/team/unnamed/commandflow/discord/part/UserSenderPart.java index 8645b852..ea6ab419 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/part/UserSenderPart.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/part/UserSenderPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.discord.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.discord.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.discord.DiscordCommandManager; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/utils/ArgumentsUtils.java b/discord/src/main/java/team/unnamed/commandflow/discord/utils/ArgumentsUtils.java index eac6e2db..28363def 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/utils/ArgumentsUtils.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/utils/ArgumentsUtils.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.discord.utils; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.discord.utils; public final class ArgumentsUtils { diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/utils/MessageUtils.java b/discord/src/main/java/team/unnamed/commandflow/discord/utils/MessageUtils.java index f76be656..97dd5306 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/utils/MessageUtils.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/utils/MessageUtils.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.discord.utils; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.discord.utils; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer; diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 00000000..88eb28f6 --- /dev/null +++ b/gradle.properties @@ -0,0 +1,6 @@ +group=team.unnamed +version=0.8.0-SNAPSHOT + +repositoryName=unnamedRepository +snapshotRepository=https\://repo.unnamed.team/repository/unnamed-snapshots/ +releaseRepository=https\://repo.unnamed.team/repository/unnamed-releases/ \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 00000000..29d27311 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists \ No newline at end of file diff --git a/gradlew b/gradlew new file mode 100644 index 00000000..fe1f4e62 --- /dev/null +++ b/gradlew @@ -0,0 +1,185 @@ +#!/usr/bin/env sh + +# +# Copyright 2015 the original author or authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MSYS* | MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin or MSYS, switch paths to Windows format before running java +if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=`expr $i + 1` + done + case $i in + 0) set -- ;; + 1) set -- "$args0" ;; + 2) set -- "$args0" "$args1" ;; + 3) set -- "$args0" "$args1" "$args2" ;; + 4) set -- "$args0" "$args1" "$args2" "$args3" ;; + 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=`save "$@"` + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +exec "$JAVACMD" "$@" \ No newline at end of file diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 00000000..477c8966 --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,89 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega \ No newline at end of file diff --git a/header.txt b/header.txt new file mode 100644 index 00000000..a2170b82 --- /dev/null +++ b/header.txt @@ -0,0 +1,21 @@ +This file is part of commandflow, licensed under the MIT license + +Copyright (c) 2020-2023 Unnamed Team + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/license.txt b/license.txt index 2c01d000..30d9b13d 100644 --- a/license.txt +++ b/license.txt @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020-2022 Gilberto Garcia +Copyright (c) 2020-2023 Unnamed Team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +SOFTWARE. \ No newline at end of file diff --git a/pom.xml b/pom.xml deleted file mode 100644 index 056b67f2..00000000 --- a/pom.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - 4.0.0 - - team.unnamed - commandflow - ${revision} - - api - bukkit - discord - bungee - velocity - brigadier - - - pom - - - - unnamed-snapshots - https://repo.unnamed.team/repository/unnamed-snapshots/ - - - unnamed-releases - https://repo.unnamed.team/repository/unnamed-releases/ - - - - - - unnamed-snapshots - https://repo.unnamed.team/repository/unnamed-snapshots/ - - - unnamed-releases - https://repo.unnamed.team/repository/unnamed-releases/ - - - - - UTF-8 - 0.6.0 - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.1 - - 8 - 8 - - - - - diff --git a/readme.md b/readme.md index 2afc39c0..8e2cb9f1 100644 --- a/readme.md +++ b/readme.md @@ -3,7 +3,7 @@ [![MIT License](https://img.shields.io/badge/license-MIT-blue)](license.txt) [![Discord](https://img.shields.io/discord/683899335405994062)](https://discord.gg/xbba2fy) -A flexible command framework which removes lots of boilerplate code used in commands +A flexible and platform-agnostic command framework for Java 8+ Check the [documentation](https://unnamed.team/docs/command-flow) for installation and usage information for this project diff --git a/settings.gradle.kts b/settings.gradle.kts new file mode 100644 index 00000000..dbb8e310 --- /dev/null +++ b/settings.gradle.kts @@ -0,0 +1,16 @@ +rootProject.name = "commandflow" + +includePrefixed("api") +includePrefixed("brigadier") +includePrefixed("bukkit") +includePrefixed("bungee") +includePrefixed("discord") +includePrefixed("velocity") + +fun includePrefixed(name: String) { + val artifactName = name.replace(':', '-') + val dirName = name.replace(':', '/') + + include("commandflow-$artifactName") + project(":commandflow-$artifactName").projectDir = file(dirName) +} \ No newline at end of file diff --git a/velocity/build.gradle.kts b/velocity/build.gradle.kts new file mode 100644 index 00000000..ac0b86eb --- /dev/null +++ b/velocity/build.gradle.kts @@ -0,0 +1,12 @@ +plugins { + id("commandflow.publishing-conventions") +} + +repositories { + maven("https://repo.papermc.io/repository/maven-public/") +} + +dependencies { + api(project(":commandflow-api")) + compileOnly("com.velocitypowered:velocity-api:3.1.2-SNAPSHOT") +} \ No newline at end of file diff --git a/velocity/pom.xml b/velocity/pom.xml deleted file mode 100644 index 4638be13..00000000 --- a/velocity/pom.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - 4.0.0 - - team.unnamed - commandflow - ${revision} - - commandflow-velocity - jar - - - - papermc - https://repo.papermc.io/repository/maven-public/ - - - - - - team.unnamed - commandflow-api - ${project.version} - compile - - - com.velocitypowered - velocity-api - 3.1.2-SNAPSHOT - provided - - - - \ No newline at end of file diff --git a/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityAuthorizer.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityAuthorizer.java index c2ea6783..b3ab515e 100644 --- a/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityAuthorizer.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityAuthorizer.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.velocity; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.velocity; import com.velocitypowered.api.command.CommandSource; import team.unnamed.commandflow.Authorizer; diff --git a/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandManager.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandManager.java index bad9e191..a6c48215 100644 --- a/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandManager.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandManager.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.velocity; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.velocity; import com.velocitypowered.api.command.CommandMeta; import com.velocitypowered.api.proxy.ProxyServer; diff --git a/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandWrapper.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandWrapper.java index 1bad017f..83ab4d56 100644 --- a/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandWrapper.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandWrapper.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.velocity; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.velocity; import com.velocitypowered.api.command.CommandSource; import com.velocitypowered.api.command.RawCommand; diff --git a/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityDefaultTranslationProvider.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityDefaultTranslationProvider.java index b1ed86f8..1997c37e 100644 --- a/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityDefaultTranslationProvider.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityDefaultTranslationProvider.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.velocity; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.velocity; import team.unnamed.commandflow.translator.DefaultMapTranslationProvider; diff --git a/velocity/src/main/java/team/unnamed/commandflow/velocity/annotation/PlayerOrSource.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/annotation/PlayerOrSource.java index 7fcd5df3..c5f90cf1 100644 --- a/velocity/src/main/java/team/unnamed/commandflow/velocity/annotation/PlayerOrSource.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/annotation/PlayerOrSource.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.velocity.annotation; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.velocity.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/CommandSourcePartFactory.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/CommandSourcePartFactory.java index cbf06c96..f3e3a714 100644 --- a/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/CommandSourcePartFactory.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/CommandSourcePartFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.velocity.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.velocity.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.part.CommandPart; diff --git a/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/PlayerPartFactory.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/PlayerPartFactory.java index dee55930..58907bfe 100644 --- a/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/PlayerPartFactory.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/PlayerPartFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.velocity.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.velocity.factory; import com.velocitypowered.api.proxy.ProxyServer; import team.unnamed.commandflow.annotated.part.PartFactory; diff --git a/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/PlayerSenderPartFactory.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/PlayerSenderPartFactory.java index 079f5d00..60f211d9 100644 --- a/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/PlayerSenderPartFactory.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/PlayerSenderPartFactory.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.velocity.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.velocity.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.part.CommandPart; diff --git a/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/VelocityModule.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/VelocityModule.java index 21372c37..aad93365 100644 --- a/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/VelocityModule.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/VelocityModule.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.velocity.factory; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.velocity.factory; import com.velocitypowered.api.command.CommandSource; import com.velocitypowered.api.proxy.Player; diff --git a/velocity/src/main/java/team/unnamed/commandflow/velocity/part/CommandSenderPart.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/part/CommandSenderPart.java index 2641b471..4c1164d9 100644 --- a/velocity/src/main/java/team/unnamed/commandflow/velocity/part/CommandSenderPart.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/part/CommandSenderPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.velocity.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.velocity.part; import com.velocitypowered.api.command.CommandSource; import team.unnamed.commandflow.CommandContext; diff --git a/velocity/src/main/java/team/unnamed/commandflow/velocity/part/PlayerPart.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/part/PlayerPart.java index b00a3018..ebbcf299 100644 --- a/velocity/src/main/java/team/unnamed/commandflow/velocity/part/PlayerPart.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/part/PlayerPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.velocity.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.velocity.part; import com.velocitypowered.api.command.CommandSource; import com.velocitypowered.api.proxy.Player; diff --git a/velocity/src/main/java/team/unnamed/commandflow/velocity/part/PlayerSenderPart.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/part/PlayerSenderPart.java index ebec0caf..6a26bace 100644 --- a/velocity/src/main/java/team/unnamed/commandflow/velocity/part/PlayerSenderPart.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/part/PlayerSenderPart.java @@ -1,4 +1,27 @@ -package team.unnamed.commandflow.velocity.part; +/* + * This file is part of commandflow, licensed under the MIT license + * + * Copyright (c) 2020-2023 Unnamed Team + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package team.unnamed.commandflow.velocity.part; import com.velocitypowered.api.command.CommandSource; import com.velocitypowered.api.proxy.Player; From 32a1cbde8b3bbbb60094fc40c5084d2a39d2b854 Mon Sep 17 00:00:00 2001 From: yusshu Date: Fri, 10 Nov 2023 20:48:54 -0500 Subject: [PATCH 08/31] ci: remove maven-publish.yml workflow, update build.yml workflow to use Gradle --- .github/workflows/build.yml | 24 ++++++++++++++--------- .github/workflows/maven-publish.yml | 30 ----------------------------- 2 files changed, 15 insertions(+), 39 deletions(-) delete mode 100644 .github/workflows/maven-publish.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d7463400..5c0eb9b5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: 'Maven Package' +name: 'build' on: [ 'push', 'pull_request' ] @@ -7,11 +7,17 @@ jobs: if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }} runs-on: ubuntu-latest steps: - - name: Checkout repo - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - name: Build with Maven - run: mvn -B package --file pom.xml \ No newline at end of file + - name: 'checkout repo' + uses: 'actions/checkout@v2' + - name: 'setup JDK 1.8' + uses: 'actions/setup-java@v1' + with: + java-version: 1.8 + - name: 'build' + run: './gradlew build' + - name: 'publish' + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + run: './gradlew publish' + env: + ORG_GRADLE_PROJECT_unnamedRepositoryUsername: '${{ secrets.REPO_USER }}' + ORG_GRADLE_PROJECT_unnamedRepositoryPassword: '${{ secrets.REPO_PASSWORD }}' \ No newline at end of file diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml deleted file mode 100644 index 65d1fe60..00000000 --- a/.github/workflows/maven-publish.yml +++ /dev/null @@ -1,30 +0,0 @@ -# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created -# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path - -name: Maven Package - -on: - release: - types: released - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - server-id: github # Value of the distributionManagement/repository/id field of the pom.xml - settings-path: ${{ github.workspace }} # location for the settings.xml file - - - name: Build with Maven - run: mvn -B package --file pom.xml - - - name: Publish to GitHub Packages Apache Maven - run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml - env: - GITHUB_TOKEN: ${{ github.token }} From 83f3fae44b507bcf0a8834dd28f6e721c8871b52 Mon Sep 17 00:00:00 2001 From: Damian G Date: Wed, 27 Dec 2023 20:27:28 -0600 Subject: [PATCH 09/31] Revert "ci: remove maven-publish.yml workflow, update build.yml workflow to use Gradle" This reverts commit 32a1cbde8b3bbbb60094fc40c5084d2a39d2b854. --- .github/workflows/build.yml | 24 +++++++++-------------- .github/workflows/maven-publish.yml | 30 +++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/maven-publish.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5c0eb9b5..d7463400 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: 'build' +name: 'Maven Package' on: [ 'push', 'pull_request' ] @@ -7,17 +7,11 @@ jobs: if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }} runs-on: ubuntu-latest steps: - - name: 'checkout repo' - uses: 'actions/checkout@v2' - - name: 'setup JDK 1.8' - uses: 'actions/setup-java@v1' - with: - java-version: 1.8 - - name: 'build' - run: './gradlew build' - - name: 'publish' - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} - run: './gradlew publish' - env: - ORG_GRADLE_PROJECT_unnamedRepositoryUsername: '${{ secrets.REPO_USER }}' - ORG_GRADLE_PROJECT_unnamedRepositoryPassword: '${{ secrets.REPO_PASSWORD }}' \ No newline at end of file + - name: Checkout repo + uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Maven + run: mvn -B package --file pom.xml \ No newline at end of file diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml new file mode 100644 index 00000000..65d1fe60 --- /dev/null +++ b/.github/workflows/maven-publish.yml @@ -0,0 +1,30 @@ +# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created +# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path + +name: Maven Package + +on: + release: + types: released + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + server-id: github # Value of the distributionManagement/repository/id field of the pom.xml + settings-path: ${{ github.workspace }} # location for the settings.xml file + + - name: Build with Maven + run: mvn -B package --file pom.xml + + - name: Publish to GitHub Packages Apache Maven + run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml + env: + GITHUB_TOKEN: ${{ github.token }} From c114fb04d92c7bbee5b511ed94076a548d1f6c88 Mon Sep 17 00:00:00 2001 From: Damian G Date: Wed, 27 Dec 2023 20:27:28 -0600 Subject: [PATCH 10/31] Revert "build: migrate to Gradle" This reverts commit 2d04a0bdd705e869ea75c1594084fe1b53441392. --- .gitignore | 3 - api/build.gradle.kts | 14 -- api/pom.xml | 54 +++++ .../team/unnamed/commandflow/Authorizer.java | 25 +-- .../unnamed/commandflow/CommandContext.java | 25 +-- .../unnamed/commandflow/CommandManager.java | 25 +-- .../unnamed/commandflow/ContextSnapshot.java | 25 +-- .../unnamed/commandflow/ErrorHandler.java | 25 +-- .../team/unnamed/commandflow/Namespace.java | 25 +-- .../unnamed/commandflow/NamespaceImpl.java | 25 +-- .../team/unnamed/commandflow/ParseResult.java | 25 +-- .../commandflow/SimpleCommandContext.java | 25 +-- .../commandflow/SimpleCommandManager.java | 25 +-- .../commandflow/SimpleErrorHandler.java | 25 +-- .../AnnotatedCommandTreeBuilder.java | 25 +-- .../AnnotatedCommandTreeBuilderImpl.java | 25 +-- .../commandflow/annotated/CommandClass.java | 25 +-- .../annotated/ReflectionInstanceCreator.java | 25 +-- .../ReflectionSubCommandHandler.java | 25 +-- .../annotated/SubCommandInstanceCreator.java | 25 +-- .../annotated/action/ReflectiveAction.java | 25 +-- .../annotated/action/ValueGetter.java | 25 +-- .../annotated/annotation/ArgOrSub.java | 25 +-- .../annotated/annotation/Command.java | 25 +-- .../annotated/annotation/ConsumeAll.java | 25 +-- .../annotated/annotation/Flag.java | 25 +-- .../annotated/annotation/Handler.java | 25 +-- .../annotated/annotation/Limit.java | 25 +-- .../annotated/annotation/Named.java | 25 +-- .../annotated/annotation/OptArg.java | 25 +-- .../annotated/annotation/ParentArg.java | 25 +-- .../annotated/annotation/Range.java | 25 +-- .../annotated/annotation/Required.java | 25 +-- .../annotated/annotation/Rewrites.java | 25 +-- .../annotated/annotation/Sender.java | 25 +-- .../annotated/annotation/Strict.java | 25 +-- .../annotation/SubCommandClasses.java | 25 +-- .../annotated/annotation/Suggestions.java | 25 +-- .../annotated/annotation/Switch.java | 25 +-- .../annotated/annotation/Text.java | 25 +-- .../annotated/annotation/Usage.java | 25 +-- .../builder/AnnotatedCommandBuilder.java | 25 +-- .../builder/AnnotatedCommandBuilderImpl.java | 25 +-- .../annotated/builder/Buildable.java | 25 +-- .../annotated/builder/CommandActionNode.java | 25 +-- .../builder/CommandBuilderNodesImpl.java | 25 +-- .../annotated/builder/CommandDataNode.java | 25 +-- .../builder/CommandModifiersNode.java | 25 +-- .../annotated/builder/CommandPartsNode.java | 25 +-- .../annotated/builder/SubCommandsNode.java | 25 +-- .../modifier/CommandModifierFactory.java | 25 +-- .../annotated/part/AbstractModule.java | 25 +-- .../annotated/part/DelegatePartModifier.java | 25 +-- .../commandflow/annotated/part/Key.java | 25 +-- .../commandflow/annotated/part/Module.java | 25 +-- .../annotated/part/PartFactory.java | 25 +-- .../annotated/part/PartInjector.java | 25 +-- .../annotated/part/PartModifier.java | 25 +-- .../annotated/part/SimplePartInjector.java | 25 +-- .../part/defaults/DefaultsModule.java | 25 +-- .../factory/ArgumentStackPartFactory.java | 25 +-- .../defaults/factory/BooleanPartFactory.java | 25 +-- .../part/defaults/factory/ContextFactory.java | 25 +-- .../defaults/factory/DoublePartFactory.java | 25 +-- .../defaults/factory/EnumPartFactory.java | 25 +-- .../defaults/factory/FloatPartFactory.java | 25 +-- .../defaults/factory/IntegerPartFactory.java | 25 +-- .../defaults/factory/LongPartFactory.java | 25 +-- .../defaults/factory/StringPartFactory.java | 25 +-- .../factory/StringTextPartFactory.java | 25 +-- .../defaults/factory/SwitchPartFactory.java | 25 +-- .../part/defaults/modifier/LimitModifier.java | 25 +-- .../defaults/modifier/OptionalModifier.java | 25 +-- .../defaults/modifier/RewritesModifier.java | 25 +-- .../modifier/SuggestionsModifier.java | 25 +-- .../defaults/modifier/ValueFlagModifier.java | 25 +-- .../unnamed/commandflow/command/Action.java | 25 +-- .../unnamed/commandflow/command/Command.java | 25 +-- .../commandflow/command/SimpleCommand.java | 25 +-- .../command/modifiers/CommandModifier.java | 25 +-- .../command/modifiers/CommandModifiers.java | 25 +-- .../modifiers/FallbackCommandModifiers.java | 25 +-- .../command/modifiers/ModifierPhase.java | 25 +-- .../command/modifiers/ModifierUtils.java | 25 +-- .../modifiers/SequentialCommandModifier.java | 25 +-- .../modifiers/SimpleCommandModifiers.java | 25 +-- .../exception/ArgumentException.java | 25 +-- .../exception/ArgumentParseException.java | 25 +-- .../exception/CommandException.java | 25 +-- .../commandflow/exception/CommandUsage.java | 25 +-- .../exception/InvalidSubCommandException.java | 25 +-- .../exception/NoMoreArgumentsException.java | 25 +-- .../exception/NoPermissionsException.java | 25 +-- .../exception/StopParseException.java | 25 +-- .../commandflow/executor/DefaultExecutor.java | 25 +-- .../commandflow/executor/Executor.java | 25 +-- .../commandflow/input/InputTokenizer.java | 25 +-- .../input/QuotedSpaceTokenizer.java | 25 +-- .../input/StringSpaceTokenizer.java | 25 +-- .../commandflow/part/ArgumentPart.java | 25 +-- .../unnamed/commandflow/part/CommandPart.java | 25 +-- .../team/unnamed/commandflow/part/Parts.java | 25 +-- .../commandflow/part/PartsWrapper.java | 25 +-- .../commandflow/part/SinglePartWrapper.java | 25 +-- .../part/defaults/ArgumentRewriterPart.java | 25 +-- .../part/defaults/ArgumentStackPart.java | 25 +-- .../part/defaults/BooleanPart.java | 25 +-- .../part/defaults/ContextPart.java | 25 +-- .../commandflow/part/defaults/DoublePart.java | 25 +-- .../commandflow/part/defaults/EmptyPart.java | 25 +-- .../commandflow/part/defaults/EnumPart.java | 25 +-- .../part/defaults/FirstMatchPart.java | 25 +-- .../commandflow/part/defaults/FloatPart.java | 25 +-- .../part/defaults/IntegerPart.java | 25 +-- .../part/defaults/LimitingPart.java | 25 +-- .../commandflow/part/defaults/LongPart.java | 25 +-- .../part/defaults/OptionalPart.java | 25 +-- .../part/defaults/PrimitivePart.java | 25 +-- .../part/defaults/SequentialCommandPart.java | 25 +-- .../commandflow/part/defaults/StringPart.java | 25 +-- .../part/defaults/SubCommandPart.java | 25 +-- .../defaults/SuggestionsModifierPart.java | 25 +-- .../commandflow/part/defaults/SwitchPart.java | 25 +-- .../part/defaults/ValueFlagPart.java | 25 +-- .../part/visitor/CommandPartVisitor.java | 25 +-- .../visitor/UnwrappedCommandPartVisitor.java | 25 +-- .../commandflow/stack/ArgumentStack.java | 25 +-- .../stack/SimpleArgumentStack.java | 25 +-- .../commandflow/stack/StackSnapshot.java | 25 +-- .../ComponentRendererTranslator.java | 25 +-- .../DefaultMapTranslationProvider.java | 25 +-- .../translator/DefaultTranslator.java | 25 +-- .../translator/TranslationProvider.java | 25 +-- .../commandflow/translator/Translator.java | 25 +-- .../usage/DefaultUsageBuilder.java | 25 +-- .../commandflow/usage/UsageBuilder.java | 25 +-- .../commandflow/InputTokenizerTest.java | 25 +-- .../commandflow/ParameterizedPartTest.java | 25 +-- .../annotated/CustomComponentParserTest.java | 25 +-- brigadier/build.gradle.kts | 17 -- brigadier/pom.xml | 57 ++++++ .../brigadier/BrigadierCommandManager.java | 25 +-- .../brigadier/BrigadierCommandWrapper.java | 25 +-- .../BrigadierDefaultTranslationProvider.java | 25 +-- .../brigadier/CommandBrigadierConverter.java | 25 +-- .../brigadier/MultipleHeadNode.java | 25 +-- .../brigadier/MultipleHeadNodeBuilder.java | 25 +-- .../brigadier/PermissionRequirement.java | 25 +-- buildSrc/build.gradle.kts | 11 -- buildSrc/settings.gradle.kts | 1 - .../commandflow.java-conventions.gradle.kts | 43 ---- ...mandflow.publishing-conventions.gradle.kts | 25 --- bukkit/build.gradle.kts | 12 -- bukkit/pom.xml | 35 ++++ .../commandflow/bukkit/BukkitAuthorizer.java | 25 +-- .../bukkit/BukkitCommandManager.java | 25 +-- .../bukkit/BukkitCommandWrapper.java | 25 +-- .../BukkitDefaultTranslationProvider.java | 25 +-- .../commandflow/bukkit/MessageUtils.java | 25 +-- .../commandflow/bukkit/annotation/Exact.java | 25 +-- .../bukkit/annotation/PlayerOrSource.java | 25 +-- .../bukkit/factory/BukkitModule.java | 25 +-- .../bukkit/factory/CommandSenderFactory.java | 25 +-- .../bukkit/factory/GameModeFactory.java | 25 +-- .../factory/OfflinePlayerPartFactory.java | 25 +-- .../bukkit/factory/PlayerPartFactory.java | 25 +-- .../bukkit/factory/PlayerSenderFactory.java | 25 +-- .../bukkit/factory/WorldFactory.java | 25 +-- .../commandflow/bukkit/part/BukkitParts.java | 25 +-- .../bukkit/part/CommandSenderPart.java | 25 +-- .../commandflow/bukkit/part/GameModePart.java | 25 +-- .../bukkit/part/OfflinePlayerPart.java | 25 +-- .../commandflow/bukkit/part/PlayerPart.java | 25 +-- .../bukkit/part/PlayerSenderPart.java | 25 +-- .../commandflow/bukkit/part/WorldPart.java | 25 +-- bungee/build.gradle.kts | 12 -- bungee/pom.xml | 36 ++++ .../commandflow/bungee/BungeeAuthorizer.java | 25 +-- .../bungee/BungeeCommandManager.java | 25 +-- .../bungee/BungeeCommandWrapper.java | 25 +-- .../BungeeDefaultTranslationProvider.java | 25 +-- .../commandflow/bungee/MessageUtils.java | 25 +-- .../annotation/ProxiedPlayerOrSource.java | 25 +-- .../bungee/factory/BungeeModule.java | 25 +-- .../factory/CommandSenderPartFactory.java | 25 +-- .../factory/ProxiedPlayerPartFactory.java | 25 +-- .../ProxiedPlayerSenderPartFactory.java | 25 +-- .../bungee/part/CommandSenderPart.java | 25 +-- .../bungee/part/ProxiedPlayerPart.java | 25 +-- .../bungee/part/ProxiedPlayerSenderPart.java | 25 +-- discord/build.gradle.kts | 12 -- discord/pom.xml | 36 ++++ .../discord/DiscordAuthorizer.java | 25 +-- .../discord/DiscordCommandManager.java | 25 +-- .../DiscordDefaultTranslationProvider.java | 25 +-- .../commandflow/discord/MessageListener.java | 25 +-- .../discord/factory/DiscordModule.java | 25 +-- .../discord/factory/MemberPartFactory.java | 25 +-- .../factory/MemberSenderPartFactory.java | 25 +-- .../discord/factory/MessagePartFactory.java | 25 +-- .../factory/TextChannelPartFactory.java | 25 +-- .../discord/factory/UserPartFactory.java | 25 +-- .../factory/UserSenderPartFactory.java | 25 +-- .../commandflow/discord/part/MemberPart.java | 25 +-- .../discord/part/MemberSenderPart.java | 25 +-- .../commandflow/discord/part/MessagePart.java | 25 +-- .../discord/part/TextChannelPart.java | 25 +-- .../commandflow/discord/part/UserPart.java | 25 +-- .../discord/part/UserSenderPart.java | 25 +-- .../discord/utils/ArgumentsUtils.java | 25 +-- .../discord/utils/MessageUtils.java | 25 +-- gradle.properties | 6 - gradle/wrapper/gradle-wrapper.properties | 5 - gradlew | 185 ------------------ gradlew.bat | 89 --------- header.txt | 21 -- license.txt | 4 +- pom.xml | 61 ++++++ readme.md | 2 +- settings.gradle.kts | 16 -- velocity/build.gradle.kts | 12 -- velocity/pom.xml | 36 ++++ .../velocity/VelocityAuthorizer.java | 25 +-- .../velocity/VelocityCommandManager.java | 25 +-- .../velocity/VelocityCommandWrapper.java | 25 +-- .../VelocityDefaultTranslationProvider.java | 25 +-- .../velocity/annotation/PlayerOrSource.java | 25 +-- .../factory/CommandSourcePartFactory.java | 25 +-- .../velocity/factory/PlayerPartFactory.java | 25 +-- .../factory/PlayerSenderPartFactory.java | 25 +-- .../velocity/factory/VelocityModule.java | 25 +-- .../velocity/part/CommandSenderPart.java | 25 +-- .../commandflow/velocity/part/PlayerPart.java | 25 +-- .../velocity/part/PlayerSenderPart.java | 25 +-- 234 files changed, 526 insertions(+), 5479 deletions(-) delete mode 100644 api/build.gradle.kts create mode 100644 api/pom.xml delete mode 100644 brigadier/build.gradle.kts create mode 100644 brigadier/pom.xml delete mode 100644 buildSrc/build.gradle.kts delete mode 100644 buildSrc/settings.gradle.kts delete mode 100644 buildSrc/src/main/kotlin/commandflow.java-conventions.gradle.kts delete mode 100644 buildSrc/src/main/kotlin/commandflow.publishing-conventions.gradle.kts delete mode 100644 bukkit/build.gradle.kts create mode 100644 bukkit/pom.xml delete mode 100644 bungee/build.gradle.kts create mode 100644 bungee/pom.xml delete mode 100644 discord/build.gradle.kts create mode 100644 discord/pom.xml delete mode 100644 gradle.properties delete mode 100644 gradle/wrapper/gradle-wrapper.properties delete mode 100644 gradlew delete mode 100644 gradlew.bat delete mode 100644 header.txt create mode 100644 pom.xml delete mode 100644 settings.gradle.kts delete mode 100644 velocity/build.gradle.kts create mode 100644 velocity/pom.xml diff --git a/.gitignore b/.gitignore index 0b5fc6ad..df8e4d2c 100644 --- a/.gitignore +++ b/.gitignore @@ -25,6 +25,3 @@ hs_err_pid* .idea/ target/ *.iml -.gradle -/*/build/ -/build/ \ No newline at end of file diff --git a/api/build.gradle.kts b/api/build.gradle.kts deleted file mode 100644 index 0e361501..00000000 --- a/api/build.gradle.kts +++ /dev/null @@ -1,14 +0,0 @@ -plugins { - id("commandflow.publishing-conventions") -} - -dependencies { - compileOnlyApi("org.jetbrains:annotations:24.0.1") - - api("net.kyori:adventure-api:4.9.1") { - exclude(group = "org.checkerframework", module = "checker-qual") - } - api("net.kyori:adventure-text-serializer-legacy:4.11.0") - api("net.kyori:adventure-text-serializer-gson:4.11.0") - api("net.kyori:adventure-text-serializer-plain:4.11.0") -} \ No newline at end of file diff --git a/api/pom.xml b/api/pom.xml new file mode 100644 index 00000000..6c73bb59 --- /dev/null +++ b/api/pom.xml @@ -0,0 +1,54 @@ + + + 4.0.0 + + team.unnamed + commandflow + ${revision} + + commandflow-api + jar + + + + net.kyori + adventure-api + 4.9.1 + compile + + + org.checkerframework + checker-qual + + + + + net.kyori + adventure-text-serializer-legacy + 4.11.0 + + + net.kyori + adventure-text-serializer-gson + 4.11.0 + + + net.kyori + adventure-text-serializer-plain + 4.11.0 + + + org.jetbrains + annotations + 24.0.1 + + + org.junit.jupiter + junit-jupiter-api + 5.9.2 + test + + + \ No newline at end of file diff --git a/api/src/main/java/team/unnamed/commandflow/Authorizer.java b/api/src/main/java/team/unnamed/commandflow/Authorizer.java index 1300b57f..a87ee1ad 100644 --- a/api/src/main/java/team/unnamed/commandflow/Authorizer.java +++ b/api/src/main/java/team/unnamed/commandflow/Authorizer.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow; +package team.unnamed.commandflow; public interface Authorizer { diff --git a/api/src/main/java/team/unnamed/commandflow/CommandContext.java b/api/src/main/java/team/unnamed/commandflow/CommandContext.java index 3ef95c2d..fecece2f 100644 --- a/api/src/main/java/team/unnamed/commandflow/CommandContext.java +++ b/api/src/main/java/team/unnamed/commandflow/CommandContext.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow; +package team.unnamed.commandflow; import team.unnamed.commandflow.command.Command; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/CommandManager.java b/api/src/main/java/team/unnamed/commandflow/CommandManager.java index e483c699..fa78772a 100644 --- a/api/src/main/java/team/unnamed/commandflow/CommandManager.java +++ b/api/src/main/java/team/unnamed/commandflow/CommandManager.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow; +package team.unnamed.commandflow; import team.unnamed.commandflow.command.Command; import team.unnamed.commandflow.command.modifiers.FallbackCommandModifiers; diff --git a/api/src/main/java/team/unnamed/commandflow/ContextSnapshot.java b/api/src/main/java/team/unnamed/commandflow/ContextSnapshot.java index fc41ad79..9f2b8f9f 100644 --- a/api/src/main/java/team/unnamed/commandflow/ContextSnapshot.java +++ b/api/src/main/java/team/unnamed/commandflow/ContextSnapshot.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow; +package team.unnamed.commandflow; import team.unnamed.commandflow.command.Command; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/ErrorHandler.java b/api/src/main/java/team/unnamed/commandflow/ErrorHandler.java index 3279a34d..92c91670 100644 --- a/api/src/main/java/team/unnamed/commandflow/ErrorHandler.java +++ b/api/src/main/java/team/unnamed/commandflow/ErrorHandler.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow; +package team.unnamed.commandflow; /** * This interface is used to handle errors that occur during the execution of a command, by the usage of error handlers diff --git a/api/src/main/java/team/unnamed/commandflow/Namespace.java b/api/src/main/java/team/unnamed/commandflow/Namespace.java index e7fc1441..cc0221c9 100644 --- a/api/src/main/java/team/unnamed/commandflow/Namespace.java +++ b/api/src/main/java/team/unnamed/commandflow/Namespace.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow; +package team.unnamed.commandflow; public interface Namespace { diff --git a/api/src/main/java/team/unnamed/commandflow/NamespaceImpl.java b/api/src/main/java/team/unnamed/commandflow/NamespaceImpl.java index 5e332ca2..cb507165 100644 --- a/api/src/main/java/team/unnamed/commandflow/NamespaceImpl.java +++ b/api/src/main/java/team/unnamed/commandflow/NamespaceImpl.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow; +package team.unnamed.commandflow; import java.util.Map; import java.util.Objects; diff --git a/api/src/main/java/team/unnamed/commandflow/ParseResult.java b/api/src/main/java/team/unnamed/commandflow/ParseResult.java index 29240ee6..671d2d18 100644 --- a/api/src/main/java/team/unnamed/commandflow/ParseResult.java +++ b/api/src/main/java/team/unnamed/commandflow/ParseResult.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow; +package team.unnamed.commandflow; import team.unnamed.commandflow.exception.CommandException; diff --git a/api/src/main/java/team/unnamed/commandflow/SimpleCommandContext.java b/api/src/main/java/team/unnamed/commandflow/SimpleCommandContext.java index dd11702a..24054906 100644 --- a/api/src/main/java/team/unnamed/commandflow/SimpleCommandContext.java +++ b/api/src/main/java/team/unnamed/commandflow/SimpleCommandContext.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow; +package team.unnamed.commandflow; import team.unnamed.commandflow.command.Command; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/SimpleCommandManager.java b/api/src/main/java/team/unnamed/commandflow/SimpleCommandManager.java index 42da63c1..5fbcdaf3 100644 --- a/api/src/main/java/team/unnamed/commandflow/SimpleCommandManager.java +++ b/api/src/main/java/team/unnamed/commandflow/SimpleCommandManager.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow; +package team.unnamed.commandflow; import team.unnamed.commandflow.command.Command; import team.unnamed.commandflow.command.modifiers.CommandModifiers; diff --git a/api/src/main/java/team/unnamed/commandflow/SimpleErrorHandler.java b/api/src/main/java/team/unnamed/commandflow/SimpleErrorHandler.java index 4ac5acd0..da288fc0 100644 --- a/api/src/main/java/team/unnamed/commandflow/SimpleErrorHandler.java +++ b/api/src/main/java/team/unnamed/commandflow/SimpleErrorHandler.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow; +package team.unnamed.commandflow; import java.util.HashMap; import java.util.Map; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilder.java b/api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilder.java index d65a4cbe..0858dd6b 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilder.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilder.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated; +package team.unnamed.commandflow.annotated; import team.unnamed.commandflow.annotated.builder.AnnotatedCommandBuilder; import team.unnamed.commandflow.annotated.part.PartInjector; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilderImpl.java b/api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilderImpl.java index 1d9d99e5..dbd45b16 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilderImpl.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/AnnotatedCommandTreeBuilderImpl.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated; +package team.unnamed.commandflow.annotated; import team.unnamed.commandflow.annotated.builder.AnnotatedCommandBuilder; import team.unnamed.commandflow.annotated.builder.CommandDataNode; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/CommandClass.java b/api/src/main/java/team/unnamed/commandflow/annotated/CommandClass.java index 7295eec4..d249e2b5 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/CommandClass.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/CommandClass.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated; +package team.unnamed.commandflow.annotated; /** * A marker interface for Commands based on annotations. diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/ReflectionInstanceCreator.java b/api/src/main/java/team/unnamed/commandflow/annotated/ReflectionInstanceCreator.java index 78fec5cf..20b0a67b 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/ReflectionInstanceCreator.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/ReflectionInstanceCreator.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated; +package team.unnamed.commandflow.annotated; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/ReflectionSubCommandHandler.java b/api/src/main/java/team/unnamed/commandflow/annotated/ReflectionSubCommandHandler.java index 10c43770..ee147e03 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/ReflectionSubCommandHandler.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/ReflectionSubCommandHandler.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated; +package team.unnamed.commandflow.annotated; import team.unnamed.commandflow.command.Command; import team.unnamed.commandflow.exception.ArgumentException; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/SubCommandInstanceCreator.java b/api/src/main/java/team/unnamed/commandflow/annotated/SubCommandInstanceCreator.java index f0d35b91..4066d6f4 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/SubCommandInstanceCreator.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/SubCommandInstanceCreator.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated; +package team.unnamed.commandflow.annotated; /** * An interface with the purpose of creating a {@link CommandClass} instance that is a sub commands class of another diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/action/ReflectiveAction.java b/api/src/main/java/team/unnamed/commandflow/annotated/action/ReflectiveAction.java index a6a54415..5ec81eb5 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/action/ReflectiveAction.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/action/ReflectiveAction.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.action; +package team.unnamed.commandflow.annotated.action; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.annotated.CommandClass; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/action/ValueGetter.java b/api/src/main/java/team/unnamed/commandflow/annotated/action/ValueGetter.java index 837c9df3..4ff3862e 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/action/ValueGetter.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/action/ValueGetter.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.action; +package team.unnamed.commandflow.annotated.action; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ArgOrSub.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ArgOrSub.java index 42ad65e9..8627c3dc 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ArgOrSub.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ArgOrSub.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Command.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Command.java index 1ae7cc30..10bb302f 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Command.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Command.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ConsumeAll.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ConsumeAll.java index dc1284b1..54d695ba 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ConsumeAll.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ConsumeAll.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Flag.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Flag.java index bbe25246..9768b733 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Flag.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Flag.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Handler.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Handler.java index 55d6281b..a45bf841 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Handler.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Handler.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Limit.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Limit.java index ef6e5bbf..f273669c 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Limit.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Limit.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Named.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Named.java index 02980c06..6a7b3722 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Named.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Named.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/OptArg.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/OptArg.java index aa354f7a..06303ca6 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/OptArg.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/OptArg.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import team.unnamed.commandflow.command.Command; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ParentArg.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ParentArg.java index 2403f11e..b23b44e3 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ParentArg.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/ParentArg.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Range.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Range.java index 111935c7..2a6fa028 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Range.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Range.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; public @interface Range { diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Required.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Required.java index 22751c0c..aa18ba1d 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Required.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Required.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Rewrites.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Rewrites.java index bf5b1abe..9d8983fd 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Rewrites.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Rewrites.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Sender.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Sender.java index b0935209..03c05304 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Sender.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Sender.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Strict.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Strict.java index d54a2278..3f482b55 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Strict.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Strict.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/SubCommandClasses.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/SubCommandClasses.java index 42b5104c..2397cd38 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/SubCommandClasses.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/SubCommandClasses.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import team.unnamed.commandflow.annotated.CommandClass; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Suggestions.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Suggestions.java index efbfa825..27855f98 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Suggestions.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Suggestions.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Switch.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Switch.java index b02e8b84..b5159b56 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Switch.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Switch.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Text.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Text.java index 27b2c52f..c3ade0b3 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Text.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Text.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Usage.java b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Usage.java index a24aa1d2..632bd16e 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Usage.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/annotation/Usage.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.annotation; +package team.unnamed.commandflow.annotated.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/builder/AnnotatedCommandBuilder.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/AnnotatedCommandBuilder.java index 38747554..46ef0774 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/builder/AnnotatedCommandBuilder.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/AnnotatedCommandBuilder.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.builder; +package team.unnamed.commandflow.annotated.builder; import team.unnamed.commandflow.annotated.part.PartInjector; import team.unnamed.commandflow.command.Action; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/builder/AnnotatedCommandBuilderImpl.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/AnnotatedCommandBuilderImpl.java index 0d33241b..d96d49d3 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/builder/AnnotatedCommandBuilderImpl.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/AnnotatedCommandBuilderImpl.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.builder; +package team.unnamed.commandflow.annotated.builder; import team.unnamed.commandflow.annotated.part.PartInjector; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/builder/Buildable.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/Buildable.java index cfb0d997..cc183796 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/builder/Buildable.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/Buildable.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.builder; +package team.unnamed.commandflow.annotated.builder; import team.unnamed.commandflow.command.Command; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandActionNode.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandActionNode.java index a6c9dc5b..97174617 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandActionNode.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandActionNode.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.builder; +package team.unnamed.commandflow.annotated.builder; import team.unnamed.commandflow.annotated.CommandClass; import team.unnamed.commandflow.command.Action; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandBuilderNodesImpl.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandBuilderNodesImpl.java index b449e636..f6b2edce 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandBuilderNodesImpl.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandBuilderNodesImpl.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.builder; +package team.unnamed.commandflow.annotated.builder; import team.unnamed.commandflow.annotated.CommandClass; import team.unnamed.commandflow.annotated.action.ReflectiveAction; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandDataNode.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandDataNode.java index 952d6a92..3adc2722 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandDataNode.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandDataNode.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.builder; +package team.unnamed.commandflow.annotated.builder; import net.kyori.adventure.text.Component; import org.jetbrains.annotations.NotNull; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandModifiersNode.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandModifiersNode.java index 65f80bf8..c6932dfe 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandModifiersNode.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandModifiersNode.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.builder; +package team.unnamed.commandflow.annotated.builder; import team.unnamed.commandflow.annotated.CommandClass; import team.unnamed.commandflow.command.modifiers.CommandModifier; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandPartsNode.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandPartsNode.java index c901d7dd..23a501bb 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandPartsNode.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/CommandPartsNode.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.builder; +package team.unnamed.commandflow.annotated.builder; import team.unnamed.commandflow.annotated.CommandClass; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/builder/SubCommandsNode.java b/api/src/main/java/team/unnamed/commandflow/annotated/builder/SubCommandsNode.java index 0be518a1..7e7dee63 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/builder/SubCommandsNode.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/builder/SubCommandsNode.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.builder; +package team.unnamed.commandflow.annotated.builder; import team.unnamed.commandflow.command.Command; import team.unnamed.commandflow.part.defaults.SubCommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/modifier/CommandModifierFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/modifier/CommandModifierFactory.java index 7360e6f3..6b0be280 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/modifier/CommandModifierFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/modifier/CommandModifierFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.modifier; +package team.unnamed.commandflow.annotated.modifier; import team.unnamed.commandflow.command.modifiers.CommandModifier; import team.unnamed.commandflow.command.modifiers.CommandModifiers; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/AbstractModule.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/AbstractModule.java index cf4595c2..8adb17cf 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/AbstractModule.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/AbstractModule.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.part; +package team.unnamed.commandflow.annotated.part; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/DelegatePartModifier.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/DelegatePartModifier.java index 27a65283..b684cf90 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/DelegatePartModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/DelegatePartModifier.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.part; +package team.unnamed.commandflow.annotated.part; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/Key.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/Key.java index 87e050c1..06a24b8a 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/Key.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/Key.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.part; +package team.unnamed.commandflow.annotated.part; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/Module.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/Module.java index cf73f4bb..6f61244c 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/Module.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/Module.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.part; +package team.unnamed.commandflow.annotated.part; /** * An aggregation of multiple bindings of {@linkplain PartModifier} or {@linkplain PartFactory}, allowing to automatically register diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/PartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/PartFactory.java index acee89fe..d516e382 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/PartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/PartFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.part; +package team.unnamed.commandflow.annotated.part; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/PartInjector.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/PartInjector.java index 24fc70cf..f3af3b12 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/PartInjector.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/PartInjector.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.part; +package team.unnamed.commandflow.annotated.part; import team.unnamed.commandflow.annotated.modifier.CommandModifierFactory; import team.unnamed.commandflow.command.modifiers.CommandModifier; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/PartModifier.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/PartModifier.java index 9982d0fc..cb21c946 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/PartModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/PartModifier.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.part; +package team.unnamed.commandflow.annotated.part; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/SimplePartInjector.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/SimplePartInjector.java index 7cbc5ee8..f44050f1 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/SimplePartInjector.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/SimplePartInjector.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.part; +package team.unnamed.commandflow.annotated.part; import team.unnamed.commandflow.annotated.modifier.CommandModifierFactory; import org.jetbrains.annotations.Nullable; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/DefaultsModule.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/DefaultsModule.java index 9d8e3414..7f0d8498 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/DefaultsModule.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/DefaultsModule.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.part.defaults; +package team.unnamed.commandflow.annotated.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.annotated.annotation.Flag; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/ArgumentStackPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/ArgumentStackPartFactory.java index a92bdfcf..3d3acb65 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/ArgumentStackPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/ArgumentStackPartFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.part.defaults.factory; +package team.unnamed.commandflow.annotated.part.defaults.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/BooleanPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/BooleanPartFactory.java index f90cdc65..df8c581f 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/BooleanPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/BooleanPartFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.part.defaults.factory; +package team.unnamed.commandflow.annotated.part.defaults.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/ContextFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/ContextFactory.java index df72e45e..a5fad38a 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/ContextFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/ContextFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.part.defaults.factory; +package team.unnamed.commandflow.annotated.part.defaults.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/DoublePartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/DoublePartFactory.java index 529b15a2..5ed772b4 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/DoublePartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/DoublePartFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.part.defaults.factory; +package team.unnamed.commandflow.annotated.part.defaults.factory; import team.unnamed.commandflow.annotated.annotation.Range; import team.unnamed.commandflow.annotated.part.PartFactory; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/EnumPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/EnumPartFactory.java index c09aaf32..3ecbba49 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/EnumPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/EnumPartFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.part.defaults.factory; +package team.unnamed.commandflow.annotated.part.defaults.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/FloatPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/FloatPartFactory.java index 64ecbc47..516c634f 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/FloatPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/FloatPartFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.part.defaults.factory; +package team.unnamed.commandflow.annotated.part.defaults.factory; import team.unnamed.commandflow.annotated.annotation.Range; import team.unnamed.commandflow.annotated.part.PartFactory; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/IntegerPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/IntegerPartFactory.java index 6b20ab83..c440b080 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/IntegerPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/IntegerPartFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.part.defaults.factory; +package team.unnamed.commandflow.annotated.part.defaults.factory; import team.unnamed.commandflow.annotated.annotation.Range; import team.unnamed.commandflow.annotated.part.PartFactory; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/LongPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/LongPartFactory.java index 35fccce5..d8e0cc8a 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/LongPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/LongPartFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.part.defaults.factory; +package team.unnamed.commandflow.annotated.part.defaults.factory; import team.unnamed.commandflow.annotated.annotation.Range; import team.unnamed.commandflow.annotated.part.PartFactory; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/StringPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/StringPartFactory.java index ccb813cf..5299b40b 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/StringPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/StringPartFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.part.defaults.factory; +package team.unnamed.commandflow.annotated.part.defaults.factory; import team.unnamed.commandflow.annotated.annotation.ConsumeAll; import team.unnamed.commandflow.annotated.part.PartFactory; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/StringTextPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/StringTextPartFactory.java index 12e1074a..93d665a2 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/StringTextPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/StringTextPartFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.part.defaults.factory; +package team.unnamed.commandflow.annotated.part.defaults.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/SwitchPartFactory.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/SwitchPartFactory.java index 888c7e6f..8c955b2b 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/SwitchPartFactory.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/factory/SwitchPartFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.part.defaults.factory; +package team.unnamed.commandflow.annotated.part.defaults.factory; import team.unnamed.commandflow.annotated.annotation.Switch; import team.unnamed.commandflow.annotated.part.PartFactory; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/LimitModifier.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/LimitModifier.java index 19036112..f7da159d 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/LimitModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/LimitModifier.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.part.defaults.modifier; +package team.unnamed.commandflow.annotated.part.defaults.modifier; import team.unnamed.commandflow.annotated.annotation.Limit; import team.unnamed.commandflow.annotated.part.PartModifier; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/OptionalModifier.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/OptionalModifier.java index 6454209c..cf0e239e 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/OptionalModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/OptionalModifier.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.part.defaults.modifier; +package team.unnamed.commandflow.annotated.part.defaults.modifier; import team.unnamed.commandflow.annotated.annotation.OptArg; import team.unnamed.commandflow.annotated.annotation.Strict; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/RewritesModifier.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/RewritesModifier.java index e89bef0e..4f2d12c9 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/RewritesModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/RewritesModifier.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.part.defaults.modifier; +package team.unnamed.commandflow.annotated.part.defaults.modifier; import team.unnamed.commandflow.annotated.annotation.Rewrites; import team.unnamed.commandflow.annotated.part.PartModifier; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/SuggestionsModifier.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/SuggestionsModifier.java index aa2b5004..731dedc7 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/SuggestionsModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/SuggestionsModifier.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.part.defaults.modifier; +package team.unnamed.commandflow.annotated.part.defaults.modifier; import team.unnamed.commandflow.annotated.annotation.Suggestions; import team.unnamed.commandflow.annotated.part.PartModifier; diff --git a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/ValueFlagModifier.java b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/ValueFlagModifier.java index 100d980d..d98c2d49 100644 --- a/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/ValueFlagModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/annotated/part/defaults/modifier/ValueFlagModifier.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated.part.defaults.modifier; +package team.unnamed.commandflow.annotated.part.defaults.modifier; import team.unnamed.commandflow.annotated.annotation.Flag; import team.unnamed.commandflow.annotated.part.PartModifier; diff --git a/api/src/main/java/team/unnamed/commandflow/command/Action.java b/api/src/main/java/team/unnamed/commandflow/command/Action.java index 01fce12c..9123b67e 100644 --- a/api/src/main/java/team/unnamed/commandflow/command/Action.java +++ b/api/src/main/java/team/unnamed/commandflow/command/Action.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.command; +package team.unnamed.commandflow.command; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.CommandManager; diff --git a/api/src/main/java/team/unnamed/commandflow/command/Command.java b/api/src/main/java/team/unnamed/commandflow/command/Command.java index 184c5e21..33dd66fe 100644 --- a/api/src/main/java/team/unnamed/commandflow/command/Command.java +++ b/api/src/main/java/team/unnamed/commandflow/command/Command.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.command; +package team.unnamed.commandflow.command; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.command.modifiers.CommandModifiers; diff --git a/api/src/main/java/team/unnamed/commandflow/command/SimpleCommand.java b/api/src/main/java/team/unnamed/commandflow/command/SimpleCommand.java index d1ef2d78..3f1c3cb2 100644 --- a/api/src/main/java/team/unnamed/commandflow/command/SimpleCommand.java +++ b/api/src/main/java/team/unnamed/commandflow/command/SimpleCommand.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.command; +package team.unnamed.commandflow.command; import team.unnamed.commandflow.command.modifiers.CommandModifiers; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/command/modifiers/CommandModifier.java b/api/src/main/java/team/unnamed/commandflow/command/modifiers/CommandModifier.java index 04d5fa49..a171bee9 100644 --- a/api/src/main/java/team/unnamed/commandflow/command/modifiers/CommandModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/command/modifiers/CommandModifier.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.command.modifiers; +package team.unnamed.commandflow.command.modifiers; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.stack.ArgumentStack; diff --git a/api/src/main/java/team/unnamed/commandflow/command/modifiers/CommandModifiers.java b/api/src/main/java/team/unnamed/commandflow/command/modifiers/CommandModifiers.java index f3b069f9..2c4a4802 100644 --- a/api/src/main/java/team/unnamed/commandflow/command/modifiers/CommandModifiers.java +++ b/api/src/main/java/team/unnamed/commandflow/command/modifiers/CommandModifiers.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.command.modifiers; +package team.unnamed.commandflow.command.modifiers; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.stack.ArgumentStack; diff --git a/api/src/main/java/team/unnamed/commandflow/command/modifiers/FallbackCommandModifiers.java b/api/src/main/java/team/unnamed/commandflow/command/modifiers/FallbackCommandModifiers.java index 36237bf4..297ef20e 100644 --- a/api/src/main/java/team/unnamed/commandflow/command/modifiers/FallbackCommandModifiers.java +++ b/api/src/main/java/team/unnamed/commandflow/command/modifiers/FallbackCommandModifiers.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.command.modifiers; +package team.unnamed.commandflow.command.modifiers; import java.util.HashMap; import java.util.LinkedList; diff --git a/api/src/main/java/team/unnamed/commandflow/command/modifiers/ModifierPhase.java b/api/src/main/java/team/unnamed/commandflow/command/modifiers/ModifierPhase.java index 78ccfa5f..2cb503d7 100644 --- a/api/src/main/java/team/unnamed/commandflow/command/modifiers/ModifierPhase.java +++ b/api/src/main/java/team/unnamed/commandflow/command/modifiers/ModifierPhase.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.command.modifiers; +package team.unnamed.commandflow.command.modifiers; /** * This enum represents the different phases in which a modifier may be applied. diff --git a/api/src/main/java/team/unnamed/commandflow/command/modifiers/ModifierUtils.java b/api/src/main/java/team/unnamed/commandflow/command/modifiers/ModifierUtils.java index 6f9aef13..fc287a42 100644 --- a/api/src/main/java/team/unnamed/commandflow/command/modifiers/ModifierUtils.java +++ b/api/src/main/java/team/unnamed/commandflow/command/modifiers/ModifierUtils.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.command.modifiers; +package team.unnamed.commandflow.command.modifiers; import java.util.LinkedList; import java.util.Map; diff --git a/api/src/main/java/team/unnamed/commandflow/command/modifiers/SequentialCommandModifier.java b/api/src/main/java/team/unnamed/commandflow/command/modifiers/SequentialCommandModifier.java index 2adf44d9..98ddd0e1 100644 --- a/api/src/main/java/team/unnamed/commandflow/command/modifiers/SequentialCommandModifier.java +++ b/api/src/main/java/team/unnamed/commandflow/command/modifiers/SequentialCommandModifier.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.command.modifiers; +package team.unnamed.commandflow.command.modifiers; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.stack.ArgumentStack; diff --git a/api/src/main/java/team/unnamed/commandflow/command/modifiers/SimpleCommandModifiers.java b/api/src/main/java/team/unnamed/commandflow/command/modifiers/SimpleCommandModifiers.java index eaef2fd5..92f8b4eb 100644 --- a/api/src/main/java/team/unnamed/commandflow/command/modifiers/SimpleCommandModifiers.java +++ b/api/src/main/java/team/unnamed/commandflow/command/modifiers/SimpleCommandModifiers.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.command.modifiers; +package team.unnamed.commandflow.command.modifiers; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.stack.ArgumentStack; diff --git a/api/src/main/java/team/unnamed/commandflow/exception/ArgumentException.java b/api/src/main/java/team/unnamed/commandflow/exception/ArgumentException.java index ba752c4f..a2e6c812 100644 --- a/api/src/main/java/team/unnamed/commandflow/exception/ArgumentException.java +++ b/api/src/main/java/team/unnamed/commandflow/exception/ArgumentException.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.exception; +package team.unnamed.commandflow.exception; import team.unnamed.commandflow.command.Command; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/exception/ArgumentParseException.java b/api/src/main/java/team/unnamed/commandflow/exception/ArgumentParseException.java index 7398685b..645421c7 100644 --- a/api/src/main/java/team/unnamed/commandflow/exception/ArgumentParseException.java +++ b/api/src/main/java/team/unnamed/commandflow/exception/ArgumentParseException.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.exception; +package team.unnamed.commandflow.exception; import net.kyori.adventure.text.Component; diff --git a/api/src/main/java/team/unnamed/commandflow/exception/CommandException.java b/api/src/main/java/team/unnamed/commandflow/exception/CommandException.java index 96f22d81..af8c1bbc 100644 --- a/api/src/main/java/team/unnamed/commandflow/exception/CommandException.java +++ b/api/src/main/java/team/unnamed/commandflow/exception/CommandException.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.exception; +package team.unnamed.commandflow.exception; import team.unnamed.commandflow.command.Command; import net.kyori.adventure.text.Component; diff --git a/api/src/main/java/team/unnamed/commandflow/exception/CommandUsage.java b/api/src/main/java/team/unnamed/commandflow/exception/CommandUsage.java index fac0421c..c263eaab 100644 --- a/api/src/main/java/team/unnamed/commandflow/exception/CommandUsage.java +++ b/api/src/main/java/team/unnamed/commandflow/exception/CommandUsage.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.exception; +package team.unnamed.commandflow.exception; import net.kyori.adventure.text.Component; diff --git a/api/src/main/java/team/unnamed/commandflow/exception/InvalidSubCommandException.java b/api/src/main/java/team/unnamed/commandflow/exception/InvalidSubCommandException.java index e5624457..d70cc639 100644 --- a/api/src/main/java/team/unnamed/commandflow/exception/InvalidSubCommandException.java +++ b/api/src/main/java/team/unnamed/commandflow/exception/InvalidSubCommandException.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.exception; +package team.unnamed.commandflow.exception; import net.kyori.adventure.text.Component; diff --git a/api/src/main/java/team/unnamed/commandflow/exception/NoMoreArgumentsException.java b/api/src/main/java/team/unnamed/commandflow/exception/NoMoreArgumentsException.java index 35557cf1..69c79978 100644 --- a/api/src/main/java/team/unnamed/commandflow/exception/NoMoreArgumentsException.java +++ b/api/src/main/java/team/unnamed/commandflow/exception/NoMoreArgumentsException.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.exception; +package team.unnamed.commandflow.exception; import net.kyori.adventure.text.Component; diff --git a/api/src/main/java/team/unnamed/commandflow/exception/NoPermissionsException.java b/api/src/main/java/team/unnamed/commandflow/exception/NoPermissionsException.java index d291fcbd..8aa9cecd 100644 --- a/api/src/main/java/team/unnamed/commandflow/exception/NoPermissionsException.java +++ b/api/src/main/java/team/unnamed/commandflow/exception/NoPermissionsException.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.exception; +package team.unnamed.commandflow.exception; import net.kyori.adventure.text.Component; diff --git a/api/src/main/java/team/unnamed/commandflow/exception/StopParseException.java b/api/src/main/java/team/unnamed/commandflow/exception/StopParseException.java index da6be0c8..14a333a0 100644 --- a/api/src/main/java/team/unnamed/commandflow/exception/StopParseException.java +++ b/api/src/main/java/team/unnamed/commandflow/exception/StopParseException.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.exception; +package team.unnamed.commandflow.exception; /** * Thrown when we should stop parsing the command, without doing any further processing. diff --git a/api/src/main/java/team/unnamed/commandflow/executor/DefaultExecutor.java b/api/src/main/java/team/unnamed/commandflow/executor/DefaultExecutor.java index 58fce3f6..b7ba7b65 100644 --- a/api/src/main/java/team/unnamed/commandflow/executor/DefaultExecutor.java +++ b/api/src/main/java/team/unnamed/commandflow/executor/DefaultExecutor.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.executor; +package team.unnamed.commandflow.executor; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.command.Command; diff --git a/api/src/main/java/team/unnamed/commandflow/executor/Executor.java b/api/src/main/java/team/unnamed/commandflow/executor/Executor.java index 5800de64..cf427ccb 100644 --- a/api/src/main/java/team/unnamed/commandflow/executor/Executor.java +++ b/api/src/main/java/team/unnamed/commandflow/executor/Executor.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.executor; +package team.unnamed.commandflow.executor; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.command.Action; diff --git a/api/src/main/java/team/unnamed/commandflow/input/InputTokenizer.java b/api/src/main/java/team/unnamed/commandflow/input/InputTokenizer.java index b5a5d71d..c4fddc30 100644 --- a/api/src/main/java/team/unnamed/commandflow/input/InputTokenizer.java +++ b/api/src/main/java/team/unnamed/commandflow/input/InputTokenizer.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.input; +package team.unnamed.commandflow.input; import java.util.List; diff --git a/api/src/main/java/team/unnamed/commandflow/input/QuotedSpaceTokenizer.java b/api/src/main/java/team/unnamed/commandflow/input/QuotedSpaceTokenizer.java index 99fd0e67..ede9b6cf 100644 --- a/api/src/main/java/team/unnamed/commandflow/input/QuotedSpaceTokenizer.java +++ b/api/src/main/java/team/unnamed/commandflow/input/QuotedSpaceTokenizer.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.input; +package team.unnamed.commandflow.input; import java.util.ArrayList; import java.util.List; diff --git a/api/src/main/java/team/unnamed/commandflow/input/StringSpaceTokenizer.java b/api/src/main/java/team/unnamed/commandflow/input/StringSpaceTokenizer.java index 7617ec24..1a0a0dbd 100644 --- a/api/src/main/java/team/unnamed/commandflow/input/StringSpaceTokenizer.java +++ b/api/src/main/java/team/unnamed/commandflow/input/StringSpaceTokenizer.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.input; +package team.unnamed.commandflow.input; import java.util.ArrayList; import java.util.Arrays; diff --git a/api/src/main/java/team/unnamed/commandflow/part/ArgumentPart.java b/api/src/main/java/team/unnamed/commandflow/part/ArgumentPart.java index f08aafb8..f9f22305 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/ArgumentPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/ArgumentPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part; +package team.unnamed.commandflow.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/CommandPart.java b/api/src/main/java/team/unnamed/commandflow/part/CommandPart.java index c16b8818..5fda9877 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/CommandPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/CommandPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part; +package team.unnamed.commandflow.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/Parts.java b/api/src/main/java/team/unnamed/commandflow/part/Parts.java index 135350c9..4bd4a8b9 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/Parts.java +++ b/api/src/main/java/team/unnamed/commandflow/part/Parts.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part; +package team.unnamed.commandflow.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.command.Command; diff --git a/api/src/main/java/team/unnamed/commandflow/part/PartsWrapper.java b/api/src/main/java/team/unnamed/commandflow/part/PartsWrapper.java index 1a37918a..fcc4bbb7 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/PartsWrapper.java +++ b/api/src/main/java/team/unnamed/commandflow/part/PartsWrapper.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part; +package team.unnamed.commandflow.part; import team.unnamed.commandflow.part.visitor.CommandPartVisitor; diff --git a/api/src/main/java/team/unnamed/commandflow/part/SinglePartWrapper.java b/api/src/main/java/team/unnamed/commandflow/part/SinglePartWrapper.java index 5c3a788e..ba856ed1 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/SinglePartWrapper.java +++ b/api/src/main/java/team/unnamed/commandflow/part/SinglePartWrapper.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part; +package team.unnamed.commandflow.part; import team.unnamed.commandflow.part.visitor.CommandPartVisitor; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/ArgumentRewriterPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/ArgumentRewriterPart.java index 947e9702..ad7f25fb 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/ArgumentRewriterPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/ArgumentRewriterPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/ArgumentStackPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/ArgumentStackPart.java index 72187a64..593c3dc0 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/ArgumentStackPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/ArgumentStackPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/BooleanPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/BooleanPart.java index 4939eaa6..19d1cee8 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/BooleanPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/BooleanPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/ContextPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/ContextPart.java index d55b8544..f3fbc314 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/ContextPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/ContextPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/DoublePart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/DoublePart.java index 6e1eca9e..73e7b1e4 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/DoublePart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/DoublePart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/EmptyPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/EmptyPart.java index c52a1a9a..38773493 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/EmptyPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/EmptyPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/EnumPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/EnumPart.java index facf1c46..58a8a32c 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/EnumPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/EnumPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/FirstMatchPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/FirstMatchPart.java index 036e14bc..87d8d385 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/FirstMatchPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/FirstMatchPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.ContextSnapshot; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/FloatPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/FloatPart.java index 46bd6e71..1fd04119 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/FloatPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/FloatPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/IntegerPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/IntegerPart.java index 26f6de0e..a00b7b8a 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/IntegerPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/IntegerPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/LimitingPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/LimitingPart.java index 437898eb..217e0233 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/LimitingPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/LimitingPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/LongPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/LongPart.java index 1b896074..7c1eb5fd 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/LongPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/LongPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/OptionalPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/OptionalPart.java index 5eaabb27..360327be 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/OptionalPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/OptionalPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.ContextSnapshot; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/PrimitivePart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/PrimitivePart.java index 93fdc1c8..accf4041 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/PrimitivePart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/PrimitivePart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.part.ArgumentPart; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/SequentialCommandPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/SequentialCommandPart.java index d3d13d5b..883fd918 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/SequentialCommandPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/SequentialCommandPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/StringPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/StringPart.java index 378c2680..703daa5a 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/StringPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/StringPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/SubCommandPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/SubCommandPart.java index 31250e77..ddda2c9d 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/SubCommandPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/SubCommandPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.Authorizer; import team.unnamed.commandflow.CommandContext; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/SuggestionsModifierPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/SuggestionsModifierPart.java index 7c4bf8e8..d78b8c03 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/SuggestionsModifierPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/SuggestionsModifierPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/SwitchPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/SwitchPart.java index 8a14c93e..c74eeb66 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/SwitchPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/SwitchPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/api/src/main/java/team/unnamed/commandflow/part/defaults/ValueFlagPart.java b/api/src/main/java/team/unnamed/commandflow/part/defaults/ValueFlagPart.java index 227e764f..760831c2 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/defaults/ValueFlagPart.java +++ b/api/src/main/java/team/unnamed/commandflow/part/defaults/ValueFlagPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part.defaults; +package team.unnamed.commandflow.part.defaults; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.ContextSnapshot; diff --git a/api/src/main/java/team/unnamed/commandflow/part/visitor/CommandPartVisitor.java b/api/src/main/java/team/unnamed/commandflow/part/visitor/CommandPartVisitor.java index c0d9b643..3063d340 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/visitor/CommandPartVisitor.java +++ b/api/src/main/java/team/unnamed/commandflow/part/visitor/CommandPartVisitor.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part.visitor; +package team.unnamed.commandflow.part.visitor; import team.unnamed.commandflow.part.ArgumentPart; import team.unnamed.commandflow.part.CommandPart; diff --git a/api/src/main/java/team/unnamed/commandflow/part/visitor/UnwrappedCommandPartVisitor.java b/api/src/main/java/team/unnamed/commandflow/part/visitor/UnwrappedCommandPartVisitor.java index c84ddced..f4253394 100644 --- a/api/src/main/java/team/unnamed/commandflow/part/visitor/UnwrappedCommandPartVisitor.java +++ b/api/src/main/java/team/unnamed/commandflow/part/visitor/UnwrappedCommandPartVisitor.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.part.visitor; +package team.unnamed.commandflow.part.visitor; import team.unnamed.commandflow.part.PartsWrapper; import team.unnamed.commandflow.part.defaults.FirstMatchPart; diff --git a/api/src/main/java/team/unnamed/commandflow/stack/ArgumentStack.java b/api/src/main/java/team/unnamed/commandflow/stack/ArgumentStack.java index bd7e8fd7..9e2ecd91 100644 --- a/api/src/main/java/team/unnamed/commandflow/stack/ArgumentStack.java +++ b/api/src/main/java/team/unnamed/commandflow/stack/ArgumentStack.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.stack; +package team.unnamed.commandflow.stack; import team.unnamed.commandflow.exception.ArgumentParseException; import team.unnamed.commandflow.exception.NoMoreArgumentsException; diff --git a/api/src/main/java/team/unnamed/commandflow/stack/SimpleArgumentStack.java b/api/src/main/java/team/unnamed/commandflow/stack/SimpleArgumentStack.java index e7df0ab9..15449196 100644 --- a/api/src/main/java/team/unnamed/commandflow/stack/SimpleArgumentStack.java +++ b/api/src/main/java/team/unnamed/commandflow/stack/SimpleArgumentStack.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.stack; +package team.unnamed.commandflow.stack; import team.unnamed.commandflow.exception.ArgumentParseException; import team.unnamed.commandflow.exception.NoMoreArgumentsException; diff --git a/api/src/main/java/team/unnamed/commandflow/stack/StackSnapshot.java b/api/src/main/java/team/unnamed/commandflow/stack/StackSnapshot.java index b639d1fb..fb36e939 100644 --- a/api/src/main/java/team/unnamed/commandflow/stack/StackSnapshot.java +++ b/api/src/main/java/team/unnamed/commandflow/stack/StackSnapshot.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.stack; +package team.unnamed.commandflow.stack; import java.util.ArrayList; import java.util.List; diff --git a/api/src/main/java/team/unnamed/commandflow/translator/ComponentRendererTranslator.java b/api/src/main/java/team/unnamed/commandflow/translator/ComponentRendererTranslator.java index 0eb8d2be..1c2e16ce 100644 --- a/api/src/main/java/team/unnamed/commandflow/translator/ComponentRendererTranslator.java +++ b/api/src/main/java/team/unnamed/commandflow/translator/ComponentRendererTranslator.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.translator; +package team.unnamed.commandflow.translator; import team.unnamed.commandflow.Namespace; import net.kyori.adventure.text.Component; diff --git a/api/src/main/java/team/unnamed/commandflow/translator/DefaultMapTranslationProvider.java b/api/src/main/java/team/unnamed/commandflow/translator/DefaultMapTranslationProvider.java index 5401a17b..a80ee159 100644 --- a/api/src/main/java/team/unnamed/commandflow/translator/DefaultMapTranslationProvider.java +++ b/api/src/main/java/team/unnamed/commandflow/translator/DefaultMapTranslationProvider.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.translator; +package team.unnamed.commandflow.translator; import team.unnamed.commandflow.Namespace; diff --git a/api/src/main/java/team/unnamed/commandflow/translator/DefaultTranslator.java b/api/src/main/java/team/unnamed/commandflow/translator/DefaultTranslator.java index fe5db63c..c2df6207 100644 --- a/api/src/main/java/team/unnamed/commandflow/translator/DefaultTranslator.java +++ b/api/src/main/java/team/unnamed/commandflow/translator/DefaultTranslator.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.translator; +package team.unnamed.commandflow.translator; import team.unnamed.commandflow.Namespace; import net.kyori.adventure.text.Component; diff --git a/api/src/main/java/team/unnamed/commandflow/translator/TranslationProvider.java b/api/src/main/java/team/unnamed/commandflow/translator/TranslationProvider.java index 9bf7930d..f2c8e363 100644 --- a/api/src/main/java/team/unnamed/commandflow/translator/TranslationProvider.java +++ b/api/src/main/java/team/unnamed/commandflow/translator/TranslationProvider.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.translator; +package team.unnamed.commandflow.translator; import team.unnamed.commandflow.Namespace; diff --git a/api/src/main/java/team/unnamed/commandflow/translator/Translator.java b/api/src/main/java/team/unnamed/commandflow/translator/Translator.java index b7ce0883..80cbd0f6 100644 --- a/api/src/main/java/team/unnamed/commandflow/translator/Translator.java +++ b/api/src/main/java/team/unnamed/commandflow/translator/Translator.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.translator; +package team.unnamed.commandflow.translator; import team.unnamed.commandflow.Namespace; import net.kyori.adventure.text.Component; diff --git a/api/src/main/java/team/unnamed/commandflow/usage/DefaultUsageBuilder.java b/api/src/main/java/team/unnamed/commandflow/usage/DefaultUsageBuilder.java index 34912e08..902dd65a 100644 --- a/api/src/main/java/team/unnamed/commandflow/usage/DefaultUsageBuilder.java +++ b/api/src/main/java/team/unnamed/commandflow/usage/DefaultUsageBuilder.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.usage; +package team.unnamed.commandflow.usage; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.command.Command; diff --git a/api/src/main/java/team/unnamed/commandflow/usage/UsageBuilder.java b/api/src/main/java/team/unnamed/commandflow/usage/UsageBuilder.java index fc0103ff..5d50575f 100644 --- a/api/src/main/java/team/unnamed/commandflow/usage/UsageBuilder.java +++ b/api/src/main/java/team/unnamed/commandflow/usage/UsageBuilder.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.usage; +package team.unnamed.commandflow.usage; import team.unnamed.commandflow.CommandContext; import net.kyori.adventure.text.Component; diff --git a/api/src/test/java/team/unnamed/commandflow/InputTokenizerTest.java b/api/src/test/java/team/unnamed/commandflow/InputTokenizerTest.java index b3db278a..1434d8e8 100644 --- a/api/src/test/java/team/unnamed/commandflow/InputTokenizerTest.java +++ b/api/src/test/java/team/unnamed/commandflow/InputTokenizerTest.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow; +package team.unnamed.commandflow; import team.unnamed.commandflow.input.InputTokenizer; import team.unnamed.commandflow.input.QuotedSpaceTokenizer; diff --git a/api/src/test/java/team/unnamed/commandflow/ParameterizedPartTest.java b/api/src/test/java/team/unnamed/commandflow/ParameterizedPartTest.java index 02e79fa8..e0eb2d43 100644 --- a/api/src/test/java/team/unnamed/commandflow/ParameterizedPartTest.java +++ b/api/src/test/java/team/unnamed/commandflow/ParameterizedPartTest.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow; +package team.unnamed.commandflow; import team.unnamed.commandflow.annotated.AnnotatedCommandTreeBuilder; import team.unnamed.commandflow.annotated.CommandClass; diff --git a/api/src/test/java/team/unnamed/commandflow/annotated/CustomComponentParserTest.java b/api/src/test/java/team/unnamed/commandflow/annotated/CustomComponentParserTest.java index ac3a6946..92f33089 100644 --- a/api/src/test/java/team/unnamed/commandflow/annotated/CustomComponentParserTest.java +++ b/api/src/test/java/team/unnamed/commandflow/annotated/CustomComponentParserTest.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.annotated; +package team.unnamed.commandflow.annotated; import team.unnamed.commandflow.annotated.annotation.Command; import team.unnamed.commandflow.annotated.annotation.Usage; diff --git a/brigadier/build.gradle.kts b/brigadier/build.gradle.kts deleted file mode 100644 index 86a1d097..00000000 --- a/brigadier/build.gradle.kts +++ /dev/null @@ -1,17 +0,0 @@ -plugins { - id("commandflow.publishing-conventions") -} - -repositories { - maven("https://libraries.minecraft.net/") - maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") -} - -dependencies { - api(project(":commandflow-api")) - api(project(":commandflow-bukkit")) { - exclude(group = "org.spigotmc", module = "spigot-api") - } - compileOnly("org.spigotmc:spigot-api:1.13.2-R0.1-SNAPSHOT") - api("me.lucko:commodore:1.10") -} \ No newline at end of file diff --git a/brigadier/pom.xml b/brigadier/pom.xml new file mode 100644 index 00000000..023df43b --- /dev/null +++ b/brigadier/pom.xml @@ -0,0 +1,57 @@ + + + 4.0.0 + + team.unnamed + commandflow + ${revision} + + commandflow-brigadier + jar + + + + minecraft-repo + https://libraries.minecraft.net/ + + + spigotmc-repo + https://hub.spigotmc.org/nexus/content/repositories/snapshots/ + + + + + + team.unnamed + commandflow-api + ${revision} + compile + + + team.unnamed + commandflow-bukkit + ${project.version} + compile + + + org.spigotmc + spigot-api + + + + + org.spigotmc + spigot-api + 1.13.2-R0.1-SNAPSHOT + provided + + + me.lucko + commodore + 1.10 + compile + + + diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandManager.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandManager.java index fe1f549e..0e883b3f 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandManager.java +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandManager.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.brigadier; +package team.unnamed.commandflow.brigadier; import com.mojang.brigadier.exceptions.CommandSyntaxException; import com.mojang.brigadier.tree.LiteralCommandNode; diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandWrapper.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandWrapper.java index cc2bee96..0586732d 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandWrapper.java +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandWrapper.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.brigadier; +package team.unnamed.commandflow.brigadier; import team.unnamed.commandflow.CommandManager; import team.unnamed.commandflow.bukkit.BukkitCommandWrapper; diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierDefaultTranslationProvider.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierDefaultTranslationProvider.java index a9c085cf..e360053f 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierDefaultTranslationProvider.java +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierDefaultTranslationProvider.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.brigadier; +package team.unnamed.commandflow.brigadier; import team.unnamed.commandflow.bukkit.BukkitDefaultTranslationProvider; diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java index 65dba2e0..154df04b 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.brigadier; +package team.unnamed.commandflow.brigadier; import com.mojang.brigadier.arguments.ArgumentType; import com.mojang.brigadier.arguments.BoolArgumentType; diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNode.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNode.java index dc53d791..98c0c670 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNode.java +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNode.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.brigadier; +package team.unnamed.commandflow.brigadier; import com.mojang.brigadier.builder.ArgumentBuilder; import com.mojang.brigadier.builder.LiteralArgumentBuilder; diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNodeBuilder.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNodeBuilder.java index 32ec5907..5cb93c01 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNodeBuilder.java +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNodeBuilder.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.brigadier; +package team.unnamed.commandflow.brigadier; import com.mojang.brigadier.Command; import com.mojang.brigadier.RedirectModifier; diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/PermissionRequirement.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/PermissionRequirement.java index c36004fe..21fb4687 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/PermissionRequirement.java +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/PermissionRequirement.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.brigadier; +package team.unnamed.commandflow.brigadier; import team.unnamed.commandflow.Authorizer; import team.unnamed.commandflow.Namespace; diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts deleted file mode 100644 index d2f88c4e..00000000 --- a/buildSrc/build.gradle.kts +++ /dev/null @@ -1,11 +0,0 @@ -plugins { - `kotlin-dsl` -} - -repositories { - gradlePluginPortal() -} - -dependencies { - implementation("gradle.plugin.org.cadixdev.gradle:licenser:0.6.1") -} \ No newline at end of file diff --git a/buildSrc/settings.gradle.kts b/buildSrc/settings.gradle.kts deleted file mode 100644 index 3f87d39f..00000000 --- a/buildSrc/settings.gradle.kts +++ /dev/null @@ -1 +0,0 @@ -rootProject.name = "buildSrc" \ No newline at end of file diff --git a/buildSrc/src/main/kotlin/commandflow.java-conventions.gradle.kts b/buildSrc/src/main/kotlin/commandflow.java-conventions.gradle.kts deleted file mode 100644 index 0beb1cda..00000000 --- a/buildSrc/src/main/kotlin/commandflow.java-conventions.gradle.kts +++ /dev/null @@ -1,43 +0,0 @@ -plugins { - `java-library` - id("org.cadixdev.licenser") -} - -repositories { - mavenLocal() - mavenCentral() -} - -dependencies { - testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2") - testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.2") -} - -java { - withJavadocJar() - withSourcesJar() - toolchain { - languageVersion.set(JavaLanguageVersion.of(8)) - } -} - -license { - header.set(rootProject.resources.text.fromFile("header.txt")) - include("**/*.java") - newLine.set(false) -} - -tasks { - compileJava { - options.encoding = "UTF-8" - } - compileTestJava { - options.encoding = "UTF-8" - } - javadoc { - isFailOnError = false - } - test { - useJUnitPlatform() - } -} \ No newline at end of file diff --git a/buildSrc/src/main/kotlin/commandflow.publishing-conventions.gradle.kts b/buildSrc/src/main/kotlin/commandflow.publishing-conventions.gradle.kts deleted file mode 100644 index df3d6d17..00000000 --- a/buildSrc/src/main/kotlin/commandflow.publishing-conventions.gradle.kts +++ /dev/null @@ -1,25 +0,0 @@ -plugins { - id("commandflow.java-conventions") - `maven-publish` -} - -val repositoryName: String by project -val snapshotRepository: String by project -val releaseRepository: String by project - -publishing { - repositories { - maven { - val snapshot = project.version.toString().endsWith("-SNAPSHOT") - - name = repositoryName - url = if (snapshot) { uri(snapshotRepository) } else { uri(releaseRepository) } - credentials(PasswordCredentials::class) - } - } - publications { - create("maven") { - from(getComponents().getByName("java")) - } - } -} \ No newline at end of file diff --git a/bukkit/build.gradle.kts b/bukkit/build.gradle.kts deleted file mode 100644 index 604b24f7..00000000 --- a/bukkit/build.gradle.kts +++ /dev/null @@ -1,12 +0,0 @@ -plugins { - id("commandflow.publishing-conventions") -} - -repositories { - maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") -} - -dependencies { - api(project(":commandflow-api")) - compileOnly("org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT") -} \ No newline at end of file diff --git a/bukkit/pom.xml b/bukkit/pom.xml new file mode 100644 index 00000000..4a038003 --- /dev/null +++ b/bukkit/pom.xml @@ -0,0 +1,35 @@ + + + 4.0.0 + + team.unnamed + commandflow + ${revision} + + commandflow-bukkit + jar + + + + spigotmc-repo + https://hub.spigotmc.org/nexus/content/repositories/snapshots/ + + + + + + org.spigotmc + spigot-api + 1.8.8-R0.1-SNAPSHOT + provided + + + team.unnamed + commandflow-api + ${project.version} + compile + + + diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitAuthorizer.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitAuthorizer.java index e2c29911..cd58a50e 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitAuthorizer.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitAuthorizer.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bukkit; +package team.unnamed.commandflow.bukkit; import team.unnamed.commandflow.Authorizer; import team.unnamed.commandflow.Namespace; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandManager.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandManager.java index 2962579c..b5937caf 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandManager.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandManager.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bukkit; +package team.unnamed.commandflow.bukkit; import team.unnamed.commandflow.Authorizer; import team.unnamed.commandflow.CommandContext; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandWrapper.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandWrapper.java index 8d845319..9067b734 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandWrapper.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandWrapper.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bukkit; +package team.unnamed.commandflow.bukkit; import team.unnamed.commandflow.Authorizer; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitDefaultTranslationProvider.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitDefaultTranslationProvider.java index f5e12001..c2930765 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitDefaultTranslationProvider.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitDefaultTranslationProvider.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bukkit; +package team.unnamed.commandflow.bukkit; import team.unnamed.commandflow.translator.DefaultMapTranslationProvider; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/MessageUtils.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/MessageUtils.java index 496db599..8010ea5d 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/MessageUtils.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/MessageUtils.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bukkit; +package team.unnamed.commandflow.bukkit; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/Exact.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/Exact.java index 5f3877e5..e73924ee 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/Exact.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/Exact.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bukkit.annotation; +package team.unnamed.commandflow.bukkit.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/PlayerOrSource.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/PlayerOrSource.java index 21337176..942d93de 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/PlayerOrSource.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/PlayerOrSource.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bukkit.annotation; +package team.unnamed.commandflow.bukkit.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/BukkitModule.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/BukkitModule.java index 0c91acfd..19050450 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/BukkitModule.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/BukkitModule.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bukkit.factory; +package team.unnamed.commandflow.bukkit.factory; import team.unnamed.commandflow.annotated.part.AbstractModule; import team.unnamed.commandflow.annotated.part.Key; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/CommandSenderFactory.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/CommandSenderFactory.java index 7dd786a4..d76bba0e 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/CommandSenderFactory.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/CommandSenderFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bukkit.factory; +package team.unnamed.commandflow.bukkit.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.bukkit.part.CommandSenderPart; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/GameModeFactory.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/GameModeFactory.java index 385cb922..1c937ee6 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/GameModeFactory.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/GameModeFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bukkit.factory; +package team.unnamed.commandflow.bukkit.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.bukkit.part.GameModePart; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/OfflinePlayerPartFactory.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/OfflinePlayerPartFactory.java index a88476b9..db9a76c7 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/OfflinePlayerPartFactory.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/OfflinePlayerPartFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bukkit.factory; +package team.unnamed.commandflow.bukkit.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.bukkit.annotation.PlayerOrSource; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerPartFactory.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerPartFactory.java index cf4ba8d3..8bbbbbea 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerPartFactory.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerPartFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bukkit.factory; +package team.unnamed.commandflow.bukkit.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.bukkit.annotation.Exact; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerSenderFactory.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerSenderFactory.java index bba1a376..e92430c1 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerSenderFactory.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerSenderFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bukkit.factory; +package team.unnamed.commandflow.bukkit.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.bukkit.part.PlayerSenderPart; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/WorldFactory.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/WorldFactory.java index 2fa39cc1..6b47acbb 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/WorldFactory.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/WorldFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bukkit.factory; +package team.unnamed.commandflow.bukkit.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.bukkit.part.WorldPart; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/BukkitParts.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/BukkitParts.java index 3e9c6f5d..577984c1 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/BukkitParts.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/BukkitParts.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bukkit.part; +package team.unnamed.commandflow.bukkit.part; import team.unnamed.commandflow.part.CommandPart; import team.unnamed.commandflow.part.ArgumentPart; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/CommandSenderPart.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/CommandSenderPart.java index ce7feb6c..2d64ee8b 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/CommandSenderPart.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/CommandSenderPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bukkit.part; +package team.unnamed.commandflow.bukkit.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.bukkit.BukkitCommandManager; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/GameModePart.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/GameModePart.java index 2df8f132..39b97830 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/GameModePart.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/GameModePart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bukkit.part; +package team.unnamed.commandflow.bukkit.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/OfflinePlayerPart.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/OfflinePlayerPart.java index 8075d22d..e5eea592 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/OfflinePlayerPart.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/OfflinePlayerPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bukkit.part; +package team.unnamed.commandflow.bukkit.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.bukkit.BukkitCommandManager; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerPart.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerPart.java index 9f3ad18c..40b7bf44 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerPart.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bukkit.part; +package team.unnamed.commandflow.bukkit.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.bukkit.BukkitCommandManager; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerSenderPart.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerSenderPart.java index f2bb983c..7483d25e 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerSenderPart.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerSenderPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bukkit.part; +package team.unnamed.commandflow.bukkit.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.bukkit.BukkitCommandManager; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/WorldPart.java b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/WorldPart.java index 1ad74b83..7bc16b13 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/WorldPart.java +++ b/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/WorldPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bukkit.part; +package team.unnamed.commandflow.bukkit.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.exception.ArgumentParseException; diff --git a/bungee/build.gradle.kts b/bungee/build.gradle.kts deleted file mode 100644 index c9c6bfc7..00000000 --- a/bungee/build.gradle.kts +++ /dev/null @@ -1,12 +0,0 @@ -plugins { - id("commandflow.publishing-conventions") -} - -repositories { - maven("https://oss.sonatype.org/content/repositories/snapshots/") -} - -dependencies { - api(project(":commandflow-api")) - compileOnly("net.md-5:bungeecord-api:1.15-SNAPSHOT") -} \ No newline at end of file diff --git a/bungee/pom.xml b/bungee/pom.xml new file mode 100644 index 00000000..fb30eea1 --- /dev/null +++ b/bungee/pom.xml @@ -0,0 +1,36 @@ + + + 4.0.0 + + team.unnamed + commandflow + ${revision} + + commandflow-bungee + jar + + + + bungeecord-repo + https://oss.sonatype.org/content/repositories/snapshots + + + + + + team.unnamed + commandflow-api + ${project.version} + compile + + + net.md-5 + bungeecord-api + 1.15-SNAPSHOT + provided + + + + \ No newline at end of file diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeAuthorizer.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeAuthorizer.java index bbc83c09..f1397a83 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeAuthorizer.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeAuthorizer.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bungee; +package team.unnamed.commandflow.bungee; import team.unnamed.commandflow.Authorizer; import team.unnamed.commandflow.Namespace; diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandManager.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandManager.java index 923fc78b..c90a6125 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandManager.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandManager.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bungee; +package team.unnamed.commandflow.bungee; import team.unnamed.commandflow.Authorizer; import team.unnamed.commandflow.CommandContext; diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandWrapper.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandWrapper.java index 67fc735a..4af1d693 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandWrapper.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandWrapper.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bungee; +package team.unnamed.commandflow.bungee; import team.unnamed.commandflow.CommandManager; import team.unnamed.commandflow.Namespace; diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeDefaultTranslationProvider.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeDefaultTranslationProvider.java index e45be102..4ce0bb32 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeDefaultTranslationProvider.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeDefaultTranslationProvider.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bungee; +package team.unnamed.commandflow.bungee; import team.unnamed.commandflow.translator.DefaultMapTranslationProvider; diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/MessageUtils.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/MessageUtils.java index 5744df0b..93538150 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/MessageUtils.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/MessageUtils.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bungee; +package team.unnamed.commandflow.bungee; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer; diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/annotation/ProxiedPlayerOrSource.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/annotation/ProxiedPlayerOrSource.java index 154ac597..aae483fc 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/annotation/ProxiedPlayerOrSource.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/annotation/ProxiedPlayerOrSource.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bungee.annotation; +package team.unnamed.commandflow.bungee.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/BungeeModule.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/BungeeModule.java index 8ad5b14d..4a9406b5 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/BungeeModule.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/BungeeModule.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bungee.factory; +package team.unnamed.commandflow.bungee.factory; import team.unnamed.commandflow.annotated.part.AbstractModule; import team.unnamed.commandflow.annotated.part.Key; diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/CommandSenderPartFactory.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/CommandSenderPartFactory.java index f1ee36db..a6b3c831 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/CommandSenderPartFactory.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/CommandSenderPartFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bungee.factory; +package team.unnamed.commandflow.bungee.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.bungee.part.CommandSenderPart; diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/ProxiedPlayerPartFactory.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/ProxiedPlayerPartFactory.java index 035cbdec..1fc9f557 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/ProxiedPlayerPartFactory.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/ProxiedPlayerPartFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bungee.factory; +package team.unnamed.commandflow.bungee.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.bungee.annotation.ProxiedPlayerOrSource; diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/ProxiedPlayerSenderPartFactory.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/ProxiedPlayerSenderPartFactory.java index 76140988..1bf40125 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/ProxiedPlayerSenderPartFactory.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/factory/ProxiedPlayerSenderPartFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bungee.factory; +package team.unnamed.commandflow.bungee.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.bungee.part.ProxiedPlayerSenderPart; diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/part/CommandSenderPart.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/part/CommandSenderPart.java index 31306bca..fbfcbaad 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/part/CommandSenderPart.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/part/CommandSenderPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bungee.part; +package team.unnamed.commandflow.bungee.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.bungee.BungeeCommandManager; diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/part/ProxiedPlayerPart.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/part/ProxiedPlayerPart.java index e262e5fb..1ba83dc8 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/part/ProxiedPlayerPart.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/part/ProxiedPlayerPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bungee.part; +package team.unnamed.commandflow.bungee.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.bungee.BungeeCommandManager; diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/part/ProxiedPlayerSenderPart.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/part/ProxiedPlayerSenderPart.java index e6838d47..d8b9f0c4 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/part/ProxiedPlayerSenderPart.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/part/ProxiedPlayerSenderPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.bungee.part; +package team.unnamed.commandflow.bungee.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.bungee.BungeeCommandManager; diff --git a/discord/build.gradle.kts b/discord/build.gradle.kts deleted file mode 100644 index 2d628308..00000000 --- a/discord/build.gradle.kts +++ /dev/null @@ -1,12 +0,0 @@ -plugins { - id("commandflow.publishing-conventions") -} - -repositories { - maven("https://jcenter.bintray.com/") -} - -dependencies { - api("net.dv8tion:JDA:4.2.0_208") - api(project(":commandflow-api")) -} \ No newline at end of file diff --git a/discord/pom.xml b/discord/pom.xml new file mode 100644 index 00000000..63d3c50c --- /dev/null +++ b/discord/pom.xml @@ -0,0 +1,36 @@ + + + 4.0.0 + + team.unnamed + commandflow + ${revision} + + commandflow-discord + jar + + + + jcenter + jcenter-bintray + https://jcenter.bintray.com + + + + + + net.dv8tion + JDA + 4.2.0_208 + + + team.unnamed + commandflow-api + ${project.version} + compile + + + + \ No newline at end of file diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/DiscordAuthorizer.java b/discord/src/main/java/team/unnamed/commandflow/discord/DiscordAuthorizer.java index 423c2e17..47aa732e 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/DiscordAuthorizer.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/DiscordAuthorizer.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.discord; +package team.unnamed.commandflow.discord; import team.unnamed.commandflow.Authorizer; import team.unnamed.commandflow.Namespace; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/DiscordCommandManager.java b/discord/src/main/java/team/unnamed/commandflow/discord/DiscordCommandManager.java index 4ac28bd5..d4f29d87 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/DiscordCommandManager.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/DiscordCommandManager.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.discord; +package team.unnamed.commandflow.discord; import team.unnamed.commandflow.Authorizer; import team.unnamed.commandflow.CommandContext; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/DiscordDefaultTranslationProvider.java b/discord/src/main/java/team/unnamed/commandflow/discord/DiscordDefaultTranslationProvider.java index 187a05fd..31c33b31 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/DiscordDefaultTranslationProvider.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/DiscordDefaultTranslationProvider.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.discord; +package team.unnamed.commandflow.discord; import team.unnamed.commandflow.translator.DefaultMapTranslationProvider; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/MessageListener.java b/discord/src/main/java/team/unnamed/commandflow/discord/MessageListener.java index f9375997..ad4d6d7b 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/MessageListener.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/MessageListener.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.discord; +package team.unnamed.commandflow.discord; import team.unnamed.commandflow.CommandManager; import team.unnamed.commandflow.Namespace; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/factory/DiscordModule.java b/discord/src/main/java/team/unnamed/commandflow/discord/factory/DiscordModule.java index 3e26e8e7..9c4abe93 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/factory/DiscordModule.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/factory/DiscordModule.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.discord.factory; +package team.unnamed.commandflow.discord.factory; import team.unnamed.commandflow.annotated.part.AbstractModule; import team.unnamed.commandflow.annotated.part.Key; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/factory/MemberPartFactory.java b/discord/src/main/java/team/unnamed/commandflow/discord/factory/MemberPartFactory.java index 90e18768..5e827bf8 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/factory/MemberPartFactory.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/factory/MemberPartFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.discord.factory; +package team.unnamed.commandflow.discord.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.discord.part.MemberPart; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/factory/MemberSenderPartFactory.java b/discord/src/main/java/team/unnamed/commandflow/discord/factory/MemberSenderPartFactory.java index 7c4162ee..71c09b7c 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/factory/MemberSenderPartFactory.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/factory/MemberSenderPartFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.discord.factory; +package team.unnamed.commandflow.discord.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.discord.part.MemberSenderPart; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/factory/MessagePartFactory.java b/discord/src/main/java/team/unnamed/commandflow/discord/factory/MessagePartFactory.java index c9e4712f..9673c10b 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/factory/MessagePartFactory.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/factory/MessagePartFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.discord.factory; +package team.unnamed.commandflow.discord.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.discord.part.MessagePart; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/factory/TextChannelPartFactory.java b/discord/src/main/java/team/unnamed/commandflow/discord/factory/TextChannelPartFactory.java index e444d874..0d4b94b2 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/factory/TextChannelPartFactory.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/factory/TextChannelPartFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.discord.factory; +package team.unnamed.commandflow.discord.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.discord.part.TextChannelPart; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/factory/UserPartFactory.java b/discord/src/main/java/team/unnamed/commandflow/discord/factory/UserPartFactory.java index f9f8ac0b..6245b5fc 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/factory/UserPartFactory.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/factory/UserPartFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.discord.factory; +package team.unnamed.commandflow.discord.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.discord.part.UserPart; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/factory/UserSenderPartFactory.java b/discord/src/main/java/team/unnamed/commandflow/discord/factory/UserSenderPartFactory.java index b56cdc4d..ffb5bcb4 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/factory/UserSenderPartFactory.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/factory/UserSenderPartFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.discord.factory; +package team.unnamed.commandflow.discord.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.discord.part.UserSenderPart; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/part/MemberPart.java b/discord/src/main/java/team/unnamed/commandflow/discord/part/MemberPart.java index c4a972e8..c7a54675 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/part/MemberPart.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/part/MemberPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.discord.part; +package team.unnamed.commandflow.discord.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.discord.DiscordCommandManager; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/part/MemberSenderPart.java b/discord/src/main/java/team/unnamed/commandflow/discord/part/MemberSenderPart.java index a72e3a06..1b15fc91 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/part/MemberSenderPart.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/part/MemberSenderPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.discord.part; +package team.unnamed.commandflow.discord.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.discord.DiscordCommandManager; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/part/MessagePart.java b/discord/src/main/java/team/unnamed/commandflow/discord/part/MessagePart.java index ddc7cae7..e7fcea19 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/part/MessagePart.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/part/MessagePart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.discord.part; +package team.unnamed.commandflow.discord.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.discord.DiscordCommandManager; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/part/TextChannelPart.java b/discord/src/main/java/team/unnamed/commandflow/discord/part/TextChannelPart.java index d92f3511..1275c4bf 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/part/TextChannelPart.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/part/TextChannelPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.discord.part; +package team.unnamed.commandflow.discord.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.discord.DiscordCommandManager; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/part/UserPart.java b/discord/src/main/java/team/unnamed/commandflow/discord/part/UserPart.java index 43dfd74c..0ed644cb 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/part/UserPart.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/part/UserPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.discord.part; +package team.unnamed.commandflow.discord.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.discord.DiscordCommandManager; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/part/UserSenderPart.java b/discord/src/main/java/team/unnamed/commandflow/discord/part/UserSenderPart.java index ea6ab419..8645b852 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/part/UserSenderPart.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/part/UserSenderPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.discord.part; +package team.unnamed.commandflow.discord.part; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.discord.DiscordCommandManager; diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/utils/ArgumentsUtils.java b/discord/src/main/java/team/unnamed/commandflow/discord/utils/ArgumentsUtils.java index 28363def..eac6e2db 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/utils/ArgumentsUtils.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/utils/ArgumentsUtils.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.discord.utils; +package team.unnamed.commandflow.discord.utils; public final class ArgumentsUtils { diff --git a/discord/src/main/java/team/unnamed/commandflow/discord/utils/MessageUtils.java b/discord/src/main/java/team/unnamed/commandflow/discord/utils/MessageUtils.java index 97dd5306..f76be656 100644 --- a/discord/src/main/java/team/unnamed/commandflow/discord/utils/MessageUtils.java +++ b/discord/src/main/java/team/unnamed/commandflow/discord/utils/MessageUtils.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.discord.utils; +package team.unnamed.commandflow.discord.utils; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer; diff --git a/gradle.properties b/gradle.properties deleted file mode 100644 index 88eb28f6..00000000 --- a/gradle.properties +++ /dev/null @@ -1,6 +0,0 @@ -group=team.unnamed -version=0.8.0-SNAPSHOT - -repositoryName=unnamedRepository -snapshotRepository=https\://repo.unnamed.team/repository/unnamed-snapshots/ -releaseRepository=https\://repo.unnamed.team/repository/unnamed-releases/ \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index 29d27311..00000000 --- a/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,5 +0,0 @@ -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists \ No newline at end of file diff --git a/gradlew b/gradlew deleted file mode 100644 index fe1f4e62..00000000 --- a/gradlew +++ /dev/null @@ -1,185 +0,0 @@ -#!/usr/bin/env sh - -# -# Copyright 2015 the original author or authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -############################################################################## -## -## Gradle start up script for UN*X -## -############################################################################## - -# Attempt to set APP_HOME -# Resolve links: $0 may be a link -PRG="$0" -# Need this for relative symlinks. -while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG=`dirname "$PRG"`"/$link" - fi -done -SAVED="`pwd`" -cd "`dirname \"$PRG\"`/" >/dev/null -APP_HOME="`pwd -P`" -cd "$SAVED" >/dev/null - -APP_NAME="Gradle" -APP_BASE_NAME=`basename "$0"` - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" - -warn () { - echo "$*" -} - -die () { - echo - echo "$*" - echo - exit 1 -} - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -nonstop=false -case "`uname`" in - CYGWIN* ) - cygwin=true - ;; - Darwin* ) - darwin=true - ;; - MSYS* | MINGW* ) - msys=true - ;; - NONSTOP* ) - nonstop=true - ;; -esac - -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar - - -# Determine the Java command to use to start the JVM. -if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." - fi -else - JAVACMD="java" - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi - -# Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" - fi -fi - -# For Darwin, add options to specify how the application appears in the dock -if $darwin; then - GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" -fi - -# For Cygwin or MSYS, switch paths to Windows format before running java -if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then - APP_HOME=`cygpath --path --mixed "$APP_HOME"` - CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - - JAVACMD=`cygpath --unix "$JAVACMD"` - - # We build the pattern for arguments to be converted via cygpath - ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` - SEP="" - for dir in $ROOTDIRSRAW ; do - ROOTDIRS="$ROOTDIRS$SEP$dir" - SEP="|" - done - OURCYGPATTERN="(^($ROOTDIRS))" - # Add a user-defined pattern to the cygpath arguments - if [ "$GRADLE_CYGPATTERN" != "" ] ; then - OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" - fi - # Now convert the arguments - kludge to limit ourselves to /bin/sh - i=0 - for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option - - if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition - eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` - else - eval `echo args$i`="\"$arg\"" - fi - i=`expr $i + 1` - done - case $i in - 0) set -- ;; - 1) set -- "$args0" ;; - 2) set -- "$args0" "$args1" ;; - 3) set -- "$args0" "$args1" "$args2" ;; - 4) set -- "$args0" "$args1" "$args2" "$args3" ;; - 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; - esac -fi - -# Escape application args -save () { - for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done - echo " " -} -APP_ARGS=`save "$@"` - -# Collect all arguments for the java command, following the shell quoting and substitution rules -eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" - -exec "$JAVACMD" "$@" \ No newline at end of file diff --git a/gradlew.bat b/gradlew.bat deleted file mode 100644 index 477c8966..00000000 --- a/gradlew.bat +++ /dev/null @@ -1,89 +0,0 @@ -@rem -@rem Copyright 2015 the original author or authors. -@rem -@rem Licensed under the Apache License, Version 2.0 (the "License"); -@rem you may not use this file except in compliance with the License. -@rem You may obtain a copy of the License at -@rem -@rem https://www.apache.org/licenses/LICENSE-2.0 -@rem -@rem Unless required by applicable law or agreed to in writing, software -@rem distributed under the License is distributed on an "AS IS" BASIS, -@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@rem See the License for the specific language governing permissions and -@rem limitations under the License. -@rem - -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Resolve any "." and ".." in APP_HOME to make it shorter. -for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto execute - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto execute - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega \ No newline at end of file diff --git a/header.txt b/header.txt deleted file mode 100644 index a2170b82..00000000 --- a/header.txt +++ /dev/null @@ -1,21 +0,0 @@ -This file is part of commandflow, licensed under the MIT license - -Copyright (c) 2020-2023 Unnamed Team - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/license.txt b/license.txt index 30d9b13d..2c01d000 100644 --- a/license.txt +++ b/license.txt @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020-2023 Unnamed Team +Copyright (c) 2020-2022 Gilberto Garcia Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file +SOFTWARE. diff --git a/pom.xml b/pom.xml new file mode 100644 index 00000000..056b67f2 --- /dev/null +++ b/pom.xml @@ -0,0 +1,61 @@ + + + 4.0.0 + + team.unnamed + commandflow + ${revision} + + api + bukkit + discord + bungee + velocity + brigadier + + + pom + + + + unnamed-snapshots + https://repo.unnamed.team/repository/unnamed-snapshots/ + + + unnamed-releases + https://repo.unnamed.team/repository/unnamed-releases/ + + + + + + unnamed-snapshots + https://repo.unnamed.team/repository/unnamed-snapshots/ + + + unnamed-releases + https://repo.unnamed.team/repository/unnamed-releases/ + + + + + UTF-8 + 0.6.0 + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + 8 + 8 + + + + + diff --git a/readme.md b/readme.md index 8e2cb9f1..2afc39c0 100644 --- a/readme.md +++ b/readme.md @@ -3,7 +3,7 @@ [![MIT License](https://img.shields.io/badge/license-MIT-blue)](license.txt) [![Discord](https://img.shields.io/discord/683899335405994062)](https://discord.gg/xbba2fy) -A flexible and platform-agnostic command framework for Java 8+ +A flexible command framework which removes lots of boilerplate code used in commands Check the [documentation](https://unnamed.team/docs/command-flow) for installation and usage information for this project diff --git a/settings.gradle.kts b/settings.gradle.kts deleted file mode 100644 index dbb8e310..00000000 --- a/settings.gradle.kts +++ /dev/null @@ -1,16 +0,0 @@ -rootProject.name = "commandflow" - -includePrefixed("api") -includePrefixed("brigadier") -includePrefixed("bukkit") -includePrefixed("bungee") -includePrefixed("discord") -includePrefixed("velocity") - -fun includePrefixed(name: String) { - val artifactName = name.replace(':', '-') - val dirName = name.replace(':', '/') - - include("commandflow-$artifactName") - project(":commandflow-$artifactName").projectDir = file(dirName) -} \ No newline at end of file diff --git a/velocity/build.gradle.kts b/velocity/build.gradle.kts deleted file mode 100644 index ac0b86eb..00000000 --- a/velocity/build.gradle.kts +++ /dev/null @@ -1,12 +0,0 @@ -plugins { - id("commandflow.publishing-conventions") -} - -repositories { - maven("https://repo.papermc.io/repository/maven-public/") -} - -dependencies { - api(project(":commandflow-api")) - compileOnly("com.velocitypowered:velocity-api:3.1.2-SNAPSHOT") -} \ No newline at end of file diff --git a/velocity/pom.xml b/velocity/pom.xml new file mode 100644 index 00000000..4638be13 --- /dev/null +++ b/velocity/pom.xml @@ -0,0 +1,36 @@ + + + 4.0.0 + + team.unnamed + commandflow + ${revision} + + commandflow-velocity + jar + + + + papermc + https://repo.papermc.io/repository/maven-public/ + + + + + + team.unnamed + commandflow-api + ${project.version} + compile + + + com.velocitypowered + velocity-api + 3.1.2-SNAPSHOT + provided + + + + \ No newline at end of file diff --git a/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityAuthorizer.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityAuthorizer.java index b3ab515e..c2ea6783 100644 --- a/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityAuthorizer.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityAuthorizer.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.velocity; +package team.unnamed.commandflow.velocity; import com.velocitypowered.api.command.CommandSource; import team.unnamed.commandflow.Authorizer; diff --git a/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandManager.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandManager.java index a6c48215..bad9e191 100644 --- a/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandManager.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandManager.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.velocity; +package team.unnamed.commandflow.velocity; import com.velocitypowered.api.command.CommandMeta; import com.velocitypowered.api.proxy.ProxyServer; diff --git a/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandWrapper.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandWrapper.java index 83ab4d56..1bad017f 100644 --- a/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandWrapper.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandWrapper.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.velocity; +package team.unnamed.commandflow.velocity; import com.velocitypowered.api.command.CommandSource; import com.velocitypowered.api.command.RawCommand; diff --git a/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityDefaultTranslationProvider.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityDefaultTranslationProvider.java index 1997c37e..b1ed86f8 100644 --- a/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityDefaultTranslationProvider.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityDefaultTranslationProvider.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.velocity; +package team.unnamed.commandflow.velocity; import team.unnamed.commandflow.translator.DefaultMapTranslationProvider; diff --git a/velocity/src/main/java/team/unnamed/commandflow/velocity/annotation/PlayerOrSource.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/annotation/PlayerOrSource.java index c5f90cf1..7fcd5df3 100644 --- a/velocity/src/main/java/team/unnamed/commandflow/velocity/annotation/PlayerOrSource.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/annotation/PlayerOrSource.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.velocity.annotation; +package team.unnamed.commandflow.velocity.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/CommandSourcePartFactory.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/CommandSourcePartFactory.java index f3e3a714..cbf06c96 100644 --- a/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/CommandSourcePartFactory.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/CommandSourcePartFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.velocity.factory; +package team.unnamed.commandflow.velocity.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.part.CommandPart; diff --git a/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/PlayerPartFactory.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/PlayerPartFactory.java index 58907bfe..dee55930 100644 --- a/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/PlayerPartFactory.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/PlayerPartFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.velocity.factory; +package team.unnamed.commandflow.velocity.factory; import com.velocitypowered.api.proxy.ProxyServer; import team.unnamed.commandflow.annotated.part.PartFactory; diff --git a/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/PlayerSenderPartFactory.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/PlayerSenderPartFactory.java index 60f211d9..079f5d00 100644 --- a/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/PlayerSenderPartFactory.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/PlayerSenderPartFactory.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.velocity.factory; +package team.unnamed.commandflow.velocity.factory; import team.unnamed.commandflow.annotated.part.PartFactory; import team.unnamed.commandflow.part.CommandPart; diff --git a/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/VelocityModule.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/VelocityModule.java index aad93365..21372c37 100644 --- a/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/VelocityModule.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/factory/VelocityModule.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.velocity.factory; +package team.unnamed.commandflow.velocity.factory; import com.velocitypowered.api.command.CommandSource; import com.velocitypowered.api.proxy.Player; diff --git a/velocity/src/main/java/team/unnamed/commandflow/velocity/part/CommandSenderPart.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/part/CommandSenderPart.java index 4c1164d9..2641b471 100644 --- a/velocity/src/main/java/team/unnamed/commandflow/velocity/part/CommandSenderPart.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/part/CommandSenderPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.velocity.part; +package team.unnamed.commandflow.velocity.part; import com.velocitypowered.api.command.CommandSource; import team.unnamed.commandflow.CommandContext; diff --git a/velocity/src/main/java/team/unnamed/commandflow/velocity/part/PlayerPart.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/part/PlayerPart.java index ebbcf299..b00a3018 100644 --- a/velocity/src/main/java/team/unnamed/commandflow/velocity/part/PlayerPart.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/part/PlayerPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.velocity.part; +package team.unnamed.commandflow.velocity.part; import com.velocitypowered.api.command.CommandSource; import com.velocitypowered.api.proxy.Player; diff --git a/velocity/src/main/java/team/unnamed/commandflow/velocity/part/PlayerSenderPart.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/part/PlayerSenderPart.java index 6a26bace..ebec0caf 100644 --- a/velocity/src/main/java/team/unnamed/commandflow/velocity/part/PlayerSenderPart.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/part/PlayerSenderPart.java @@ -1,27 +1,4 @@ -/* - * This file is part of commandflow, licensed under the MIT license - * - * Copyright (c) 2020-2023 Unnamed Team - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package team.unnamed.commandflow.velocity.part; +package team.unnamed.commandflow.velocity.part; import com.velocitypowered.api.command.CommandSource; import com.velocitypowered.api.proxy.Player; From fa993d01b7a1916417bca037435b885b60377acb Mon Sep 17 00:00:00 2001 From: Damian G Date: Fri, 29 Dec 2023 17:30:57 -0600 Subject: [PATCH 11/31] feat: Make the bukkit module modular. Temporarily disable the compilation of brigadier module. --- bukkit/commandmap/pom.xml | 22 ++++ .../java}/bukkit/BukkitCommandWrapper.java | 32 ++---- .../java/bukkit/BukkitMapCommandManager.java | 74 +++++++++++++ bukkit/common/pom.xml | 14 +++ .../commandflow/bukkit/BukkitAuthorizer.java | 2 +- .../bukkit/BukkitCommandManager.java | 100 +++++++++--------- .../bukkit/BukkitCommonConstants.java | 6 ++ .../BukkitDefaultTranslationProvider.java | 0 .../commandflow/bukkit/annotation/Exact.java | 0 .../bukkit/annotation/PlayerOrSource.java | 0 .../bukkit/factory/BukkitModule.java | 0 .../bukkit/factory/CommandSenderFactory.java | 0 .../bukkit/factory/GameModeFactory.java | 0 .../factory/OfflinePlayerPartFactory.java | 0 .../bukkit/factory/PlayerPartFactory.java | 0 .../bukkit/factory/PlayerSenderFactory.java | 0 .../bukkit/factory/WorldFactory.java | 0 .../commandflow/bukkit/part/BukkitParts.java | 0 .../bukkit/part/CommandSenderPart.java | 4 +- .../commandflow/bukkit/part/GameModePart.java | 0 .../bukkit/part/OfflinePlayerPart.java | 4 +- .../commandflow/bukkit/part/PlayerPart.java | 4 +- .../bukkit/part/PlayerSenderPart.java | 4 +- .../commandflow/bukkit/part/WorldPart.java | 0 .../bukkit/sender/DefaultMessageSender.java | 14 +++ .../bukkit/sender/MessageSender.java | 8 ++ .../bukkit/sender}/MessageUtils.java | 2 +- bukkit/paper/.gitignore | 38 +++++++ bukkit/paper/pom.xml | 41 +++++++ .../bukkit/paper/PaperMessageSender.java | 12 +++ bukkit/pom.xml | 14 ++- pom.xml | 6 +- 32 files changed, 311 insertions(+), 90 deletions(-) create mode 100644 bukkit/commandmap/pom.xml rename bukkit/{src/main/java/team/unnamed/commandflow => commandmap/src/main/java}/bukkit/BukkitCommandWrapper.java (73%) create mode 100644 bukkit/commandmap/src/main/java/bukkit/BukkitMapCommandManager.java create mode 100644 bukkit/common/pom.xml rename bukkit/{ => common}/src/main/java/team/unnamed/commandflow/bukkit/BukkitAuthorizer.java (91%) rename bukkit/{ => common}/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandManager.java (74%) create mode 100644 bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommonConstants.java rename bukkit/{ => common}/src/main/java/team/unnamed/commandflow/bukkit/BukkitDefaultTranslationProvider.java (100%) rename bukkit/{ => common}/src/main/java/team/unnamed/commandflow/bukkit/annotation/Exact.java (100%) rename bukkit/{ => common}/src/main/java/team/unnamed/commandflow/bukkit/annotation/PlayerOrSource.java (100%) rename bukkit/{ => common}/src/main/java/team/unnamed/commandflow/bukkit/factory/BukkitModule.java (100%) rename bukkit/{ => common}/src/main/java/team/unnamed/commandflow/bukkit/factory/CommandSenderFactory.java (100%) rename bukkit/{ => common}/src/main/java/team/unnamed/commandflow/bukkit/factory/GameModeFactory.java (100%) rename bukkit/{ => common}/src/main/java/team/unnamed/commandflow/bukkit/factory/OfflinePlayerPartFactory.java (100%) rename bukkit/{ => common}/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerPartFactory.java (100%) rename bukkit/{ => common}/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerSenderFactory.java (100%) rename bukkit/{ => common}/src/main/java/team/unnamed/commandflow/bukkit/factory/WorldFactory.java (100%) rename bukkit/{ => common}/src/main/java/team/unnamed/commandflow/bukkit/part/BukkitParts.java (100%) rename bukkit/{ => common}/src/main/java/team/unnamed/commandflow/bukkit/part/CommandSenderPart.java (92%) rename bukkit/{ => common}/src/main/java/team/unnamed/commandflow/bukkit/part/GameModePart.java (100%) rename bukkit/{ => common}/src/main/java/team/unnamed/commandflow/bukkit/part/OfflinePlayerPart.java (96%) rename bukkit/{ => common}/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerPart.java (96%) rename bukkit/{ => common}/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerSenderPart.java (93%) rename bukkit/{ => common}/src/main/java/team/unnamed/commandflow/bukkit/part/WorldPart.java (100%) create mode 100644 bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/sender/DefaultMessageSender.java create mode 100644 bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/sender/MessageSender.java rename bukkit/{src/main/java/team/unnamed/commandflow/bukkit => common/src/main/java/team/unnamed/commandflow/bukkit/sender}/MessageUtils.java (95%) create mode 100644 bukkit/paper/.gitignore create mode 100644 bukkit/paper/pom.xml create mode 100644 bukkit/paper/src/main/java/team/unnamed/commandflow/bukkit/paper/PaperMessageSender.java diff --git a/bukkit/commandmap/pom.xml b/bukkit/commandmap/pom.xml new file mode 100644 index 00000000..108427b8 --- /dev/null +++ b/bukkit/commandmap/pom.xml @@ -0,0 +1,22 @@ + + + 4.0.0 + + team.unnamed + commandflow-bukkit + ${revision} + ../pom.xml + + + commandflow-bukkit-commandmap + + + + team.unnamed + commandflow-bukkit-common + ${project.version} + + + \ No newline at end of file diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandWrapper.java b/bukkit/commandmap/src/main/java/bukkit/BukkitCommandWrapper.java similarity index 73% rename from bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandWrapper.java rename to bukkit/commandmap/src/main/java/bukkit/BukkitCommandWrapper.java index 9067b734..fd63c0d1 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandWrapper.java +++ b/bukkit/commandmap/src/main/java/bukkit/BukkitCommandWrapper.java @@ -1,16 +1,15 @@ -package team.unnamed.commandflow.bukkit; +package bukkit; import team.unnamed.commandflow.Authorizer; import team.unnamed.commandflow.CommandContext; -import team.unnamed.commandflow.CommandManager; import team.unnamed.commandflow.Namespace; import team.unnamed.commandflow.SimpleCommandContext; +import team.unnamed.commandflow.bukkit.BukkitCommandManager; import team.unnamed.commandflow.exception.CommandException; import team.unnamed.commandflow.translator.Translator; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer; -import net.md_5.bungee.api.chat.BaseComponent; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.jetbrains.annotations.NotNull; @@ -20,12 +19,12 @@ import java.util.List; public class BukkitCommandWrapper extends Command { - protected final CommandManager commandManager; + protected final BukkitCommandManager commandManager; protected final Component permissionMessage; protected final Translator translator; public BukkitCommandWrapper(team.unnamed.commandflow.command.Command command, - CommandManager dispatcher, + BukkitCommandManager dispatcher, Translator translator) { super(command.getName()); @@ -60,7 +59,7 @@ public boolean execute(CommandSender commandSender, String label, String[] args) Namespace namespace = Namespace.create(); - namespace.setObject(CommandSender.class, BukkitCommandManager.SENDER_NAMESPACE, commandSender); + namespace.setObject(CommandSender.class, BukkitMapCommandManager.SENDER_NAMESPACE, commandSender); namespace.setObject(String.class, "label", label); @@ -89,7 +88,7 @@ public List tabComplete(CommandSender sender, String alias, String[] arg argumentLine.add(0, alias); Namespace namespace = Namespace.create(); - namespace.setObject(CommandSender.class, BukkitCommandManager.SENDER_NAMESPACE, sender); + namespace.setObject(CommandSender.class, BukkitMapCommandManager.SENDER_NAMESPACE, sender); return commandManager.getSuggestions(namespace, argumentLine); } @@ -98,12 +97,11 @@ public List tabComplete(CommandSender sender, String alias, String[] arg public boolean testPermission(@NotNull CommandSender target) { if (!testPermissionSilent(target)) { Namespace namespace = Namespace.create(); - namespace.setObject(CommandSender.class, BukkitCommandManager.SENDER_NAMESPACE, target); + namespace.setObject(CommandSender.class, BukkitMapCommandManager.SENDER_NAMESPACE, target); Component translatedPermissionMessage = translator.translate(permissionMessage, namespace); - BaseComponent[] components = MessageUtils.kyoriToBungee(translatedPermissionMessage); - MessageUtils.sendMessage(target, components); + commandManager.getMessageSender().sendMessage(target, translatedPermissionMessage); return false; } @@ -117,20 +115,8 @@ public boolean testPermissionSilent(CommandSender target) { Authorizer authorizer = commandManager.getAuthorizer(); Namespace namespace = Namespace.create(); - namespace.setObject(CommandSender.class, BukkitCommandManager.SENDER_NAMESPACE, target); + namespace.setObject(CommandSender.class, BukkitMapCommandManager.SENDER_NAMESPACE, target); return authorizer.isAuthorized(namespace, getPermission()); } - - protected static void sendMessageToSender(CommandException exception, Namespace namespace) { - CommandManager commandManager = namespace.getObject(CommandManager.class, "commandManager"); - CommandSender sender = namespace.getObject(CommandSender.class, BukkitCommandManager.SENDER_NAMESPACE); - - Component component = exception.getMessageComponent(); - Component translatedComponent = commandManager.getTranslator().translate(component, namespace); - - BaseComponent[] components = MessageUtils.kyoriToBungee(translatedComponent); - - MessageUtils.sendMessage(sender, components); - } } diff --git a/bukkit/commandmap/src/main/java/bukkit/BukkitMapCommandManager.java b/bukkit/commandmap/src/main/java/bukkit/BukkitMapCommandManager.java new file mode 100644 index 00000000..3477cc92 --- /dev/null +++ b/bukkit/commandmap/src/main/java/bukkit/BukkitMapCommandManager.java @@ -0,0 +1,74 @@ +package bukkit; + +import team.unnamed.commandflow.CommandManager; +import team.unnamed.commandflow.SimpleCommandManager; +import team.unnamed.commandflow.bukkit.BukkitAuthorizer; +import team.unnamed.commandflow.bukkit.BukkitCommandManager; +import team.unnamed.commandflow.bukkit.BukkitDefaultTranslationProvider; +import team.unnamed.commandflow.command.Command; +import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer; +import org.bukkit.Bukkit; +import org.bukkit.command.CommandMap; + +import java.lang.reflect.Field; +import java.util.HashMap; +import java.util.Map; +import java.util.logging.Level; + +public class BukkitMapCommandManager extends BukkitCommandManager { + + public static final String SENDER_NAMESPACE = "SENDER"; + + protected CommandMap bukkitCommandMap; + protected final String fallbackPrefix; + + protected final Map wrapperMap; + + public BukkitMapCommandManager(CommandManager delegate, String fallbackPrefix) { + super(delegate); + this.fallbackPrefix = fallbackPrefix; + wrapperMap = new HashMap<>(); + + try { + Field commandMapField = Bukkit.getServer().getClass().getDeclaredField("commandMap"); + commandMapField.setAccessible(true); + + bukkitCommandMap = (CommandMap) commandMapField.get(Bukkit.getServer()); + } catch (NoSuchFieldException | IllegalAccessException ex) { + Bukkit.getLogger().log(Level.SEVERE, "Failed to get command map: ", ex); + } + + } + + public BukkitMapCommandManager(String fallbackPrefix) { + this(new SimpleCommandManager(), fallbackPrefix); + + setAuthorizer(new BukkitAuthorizer()); + getTranslator().setProvider(new BukkitDefaultTranslationProvider()); + getTranslator().setConverterFunction(LegacyComponentSerializer.legacyAmpersand()::deserialize); + } + + @Override + protected void _register(Command command) { + BukkitCommandWrapper bukkitCommand = new BukkitCommandWrapper(command, + this, getTranslator()); + + for (String alias : command.getAliases()) { + registerCommand(fallbackPrefix + ":" + alias, command); + } + + registerCommand(fallbackPrefix + ":" + command.getName(), command); + + wrapperMap.put(command.getName(), bukkitCommand); + bukkitCommandMap.register(fallbackPrefix, bukkitCommand); + } + + @Override + protected void _unregister(Command command) { + BukkitCommandWrapper wrapper = wrapperMap.get(command.getName()); + if (wrapper != null) { + wrapper.unregister(bukkitCommandMap); + } + } + +} diff --git a/bukkit/common/pom.xml b/bukkit/common/pom.xml new file mode 100644 index 00000000..4a244989 --- /dev/null +++ b/bukkit/common/pom.xml @@ -0,0 +1,14 @@ + + + 4.0.0 + + team.unnamed + commandflow-bukkit + ${revision} + ../pom.xml + + + commandflow-bukkit-common + \ No newline at end of file diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitAuthorizer.java b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/BukkitAuthorizer.java similarity index 91% rename from bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitAuthorizer.java rename to bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/BukkitAuthorizer.java index cd58a50e..3d5a8840 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitAuthorizer.java +++ b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/BukkitAuthorizer.java @@ -12,7 +12,7 @@ public boolean isAuthorized(Namespace namespace, String permission) { return true; } - CommandSender sender = namespace.getObject(CommandSender.class, BukkitCommandManager.SENDER_NAMESPACE); + CommandSender sender = namespace.getObject(CommandSender.class, BukkitCommonConstants.SENDER_NAMESPACE); return sender.hasPermission(permission); } diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandManager.java b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandManager.java similarity index 74% rename from bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandManager.java rename to bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandManager.java index b5937caf..822e0745 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandManager.java +++ b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommandManager.java @@ -1,12 +1,16 @@ package team.unnamed.commandflow.bukkit; +import net.kyori.adventure.text.Component; +import net.md_5.bungee.api.chat.BaseComponent; +import org.bukkit.command.CommandSender; import team.unnamed.commandflow.Authorizer; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.CommandManager; import team.unnamed.commandflow.ErrorHandler; import team.unnamed.commandflow.Namespace; import team.unnamed.commandflow.ParseResult; -import team.unnamed.commandflow.SimpleCommandManager; +import team.unnamed.commandflow.bukkit.sender.DefaultMessageSender; +import team.unnamed.commandflow.bukkit.sender.MessageSender; import team.unnamed.commandflow.command.Command; import team.unnamed.commandflow.command.modifiers.FallbackCommandModifiers; import team.unnamed.commandflow.exception.ArgumentException; @@ -20,41 +24,20 @@ import team.unnamed.commandflow.input.InputTokenizer; import team.unnamed.commandflow.translator.Translator; import team.unnamed.commandflow.usage.UsageBuilder; -import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer; -import org.bukkit.Bukkit; -import org.bukkit.command.CommandMap; -import java.lang.reflect.Field; -import java.util.HashMap; import java.util.List; -import java.util.Map; import java.util.Optional; import java.util.Set; -import java.util.logging.Level; -public class BukkitCommandManager implements CommandManager { - - public static final String SENDER_NAMESPACE = "SENDER"; +import static team.unnamed.commandflow.bukkit.BukkitCommonConstants.COMMAND_MANAGER_NAMESPACE; +public abstract class BukkitCommandManager implements CommandManager { protected CommandManager manager; - protected CommandMap bukkitCommandMap; - protected final String fallbackPrefix; - - protected final Map wrapperMap; + private MessageSender messageSender; - public BukkitCommandManager(CommandManager delegate, String fallbackPrefix) { + public BukkitCommandManager(CommandManager delegate) { this.manager = delegate; - this.fallbackPrefix = fallbackPrefix; - wrapperMap = new HashMap<>(); - - try { - Field commandMapField = Bukkit.getServer().getClass().getDeclaredField("commandMap"); - commandMapField.setAccessible(true); - - bukkitCommandMap = (CommandMap) commandMapField.get(Bukkit.getServer()); - } catch (NoSuchFieldException | IllegalAccessException ex) { - Bukkit.getLogger().log(Level.SEVERE, "Failed to get command map: ", ex); - } + this.messageSender = new DefaultMessageSender(); this.getErrorHandler().addExceptionHandler(CommandUsage.class, (namespace, ex) -> { CommandException exceptionToSend = ex; @@ -62,13 +45,13 @@ public BukkitCommandManager(CommandManager delegate, String fallbackPrefix) { exceptionToSend = (ArgumentParseException) ex.getCause(); } - BukkitCommandWrapper.sendMessageToSender(exceptionToSend, namespace); + sendMessageToSender(exceptionToSend, namespace); return true; }); ErrorHandler.ErrorConsumer commonArgumentExceptionConsumer = (namespace, ex) -> { - BukkitCommandWrapper.sendMessageToSender(ex, namespace); + sendMessageToSender(ex, namespace); return false; }; @@ -77,7 +60,7 @@ public BukkitCommandManager(CommandManager delegate, String fallbackPrefix) { this.getErrorHandler().addExceptionHandler(ArgumentParseException.class, commonArgumentExceptionConsumer); this.getErrorHandler().addExceptionHandler(NoMoreArgumentsException.class, commonArgumentExceptionConsumer); this.getErrorHandler().addExceptionHandler(NoPermissionsException.class, (namespace, throwable) -> { - BukkitCommandWrapper.sendMessageToSender(throwable, namespace); + sendMessageToSender(throwable, namespace); return true; }); @@ -91,7 +74,7 @@ public BukkitCommandManager(CommandManager delegate, String fallbackPrefix) { exceptionToSend = throwable.getCause(); } - BukkitCommandWrapper.sendMessageToSender(throwable, namespace); + sendMessageToSender(throwable, namespace); String label = namespace.getObject(String.class, "label"); throw new org.bukkit.command.CommandException("An unexpected exception occurred while executing the command " + label, exceptionToSend); @@ -105,28 +88,14 @@ public BukkitCommandManager(CommandManager delegate, String fallbackPrefix) { }); } - public BukkitCommandManager(String fallbackPrefix) { - this(new SimpleCommandManager(), fallbackPrefix); + protected abstract void _register(Command command); - setAuthorizer(new BukkitAuthorizer()); - getTranslator().setProvider(new BukkitDefaultTranslationProvider()); - getTranslator().setConverterFunction(LegacyComponentSerializer.legacyAmpersand()::deserialize); - } + protected abstract void _unregister(Command command); public void registerCommand(Command command) { manager.registerCommand(command); - BukkitCommandWrapper bukkitCommand = new BukkitCommandWrapper(command, - this, getTranslator()); - - for (String alias : command.getAliases()) { - registerCommand(fallbackPrefix + ":" + alias, command); - } - - registerCommand(fallbackPrefix + ":" + command.getName(), command); - - wrapperMap.put(command.getName(), bukkitCommand); - bukkitCommandMap.register(fallbackPrefix, bukkitCommand); + _register(command); } @Override @@ -144,12 +113,10 @@ public void registerCommands(List commandList) { public void unregisterCommand(Command command) { manager.unregisterCommand(command); - BukkitCommandWrapper wrapper = wrapperMap.get(command.getName()); - if (wrapper != null) { - wrapper.unregister(bukkitCommandMap); - } + _unregister(command); } + @Override public void unregisterCommands(List commands) { for (Command command : commands) { @@ -241,6 +208,14 @@ public FallbackCommandModifiers getCommandModifiers() { return manager.getCommandModifiers(); } + public MessageSender getMessageSender() { + return this.messageSender; + } + + public void setMessageSender(MessageSender messageSender) { + this.messageSender = messageSender; + } + @Override public Optional getCommand(String commandName) { return manager.getCommand(commandName); @@ -248,6 +223,8 @@ public Optional getCommand(String commandName) { @Override public boolean execute(Namespace accessor, List arguments) throws CommandException { + accessor.setObject(BukkitCommandManager.class, COMMAND_MANAGER_NAMESPACE, this); + return manager.execute(accessor, arguments); } @@ -258,27 +235,46 @@ public List getSuggestions(Namespace accessor, List arguments) { @Override public boolean execute(Namespace accessor, String line) throws CommandException { + accessor.setObject(BukkitCommandManager.class, COMMAND_MANAGER_NAMESPACE, this); + return manager.execute(accessor, line); } @Override public List getSuggestions(Namespace accessor, String line) { + accessor.setObject(BukkitCommandManager.class, COMMAND_MANAGER_NAMESPACE, this); + return manager.getSuggestions(accessor, line); } @Override public boolean execute(CommandContext commandContext) throws CommandException { + commandContext.setObject(BukkitCommandManager.class, COMMAND_MANAGER_NAMESPACE, this); + return manager.execute(commandContext); } @Override public ParseResult parse(Namespace accessor, List arguments) throws CommandException { + accessor.setObject(BukkitCommandManager.class, COMMAND_MANAGER_NAMESPACE, this); + return manager.parse(accessor, arguments); } @Override public ParseResult parse(Namespace accessor, String line) throws CommandException { + accessor.setObject(BukkitCommandManager.class, COMMAND_MANAGER_NAMESPACE, this); + return manager.parse(accessor, line); } + public static void sendMessageToSender(CommandException exception, Namespace namespace) { + BukkitCommandManager commandManager = namespace.getObject(BukkitCommandManager.class, COMMAND_MANAGER_NAMESPACE); // should be, lol + CommandSender sender = namespace.getObject(CommandSender.class, BukkitCommonConstants.SENDER_NAMESPACE); + + Component component = exception.getMessageComponent(); + Component translatedComponent = commandManager.getTranslator().translate(component, namespace); + + commandManager.getMessageSender().sendMessage(sender, translatedComponent); + } } diff --git a/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommonConstants.java b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommonConstants.java new file mode 100644 index 00000000..28afd484 --- /dev/null +++ b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/BukkitCommonConstants.java @@ -0,0 +1,6 @@ +package team.unnamed.commandflow.bukkit; + +public final class BukkitCommonConstants { + public static final String SENDER_NAMESPACE = "sender"; + public static final String COMMAND_MANAGER_NAMESPACE = "commandManager"; +} diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitDefaultTranslationProvider.java b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/BukkitDefaultTranslationProvider.java similarity index 100% rename from bukkit/src/main/java/team/unnamed/commandflow/bukkit/BukkitDefaultTranslationProvider.java rename to bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/BukkitDefaultTranslationProvider.java diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/Exact.java b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/annotation/Exact.java similarity index 100% rename from bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/Exact.java rename to bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/annotation/Exact.java diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/PlayerOrSource.java b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/annotation/PlayerOrSource.java similarity index 100% rename from bukkit/src/main/java/team/unnamed/commandflow/bukkit/annotation/PlayerOrSource.java rename to bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/annotation/PlayerOrSource.java diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/BukkitModule.java b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/factory/BukkitModule.java similarity index 100% rename from bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/BukkitModule.java rename to bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/factory/BukkitModule.java diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/CommandSenderFactory.java b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/factory/CommandSenderFactory.java similarity index 100% rename from bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/CommandSenderFactory.java rename to bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/factory/CommandSenderFactory.java diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/GameModeFactory.java b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/factory/GameModeFactory.java similarity index 100% rename from bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/GameModeFactory.java rename to bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/factory/GameModeFactory.java diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/OfflinePlayerPartFactory.java b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/factory/OfflinePlayerPartFactory.java similarity index 100% rename from bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/OfflinePlayerPartFactory.java rename to bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/factory/OfflinePlayerPartFactory.java diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerPartFactory.java b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerPartFactory.java similarity index 100% rename from bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerPartFactory.java rename to bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerPartFactory.java diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerSenderFactory.java b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerSenderFactory.java similarity index 100% rename from bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerSenderFactory.java rename to bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/factory/PlayerSenderFactory.java diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/WorldFactory.java b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/factory/WorldFactory.java similarity index 100% rename from bukkit/src/main/java/team/unnamed/commandflow/bukkit/factory/WorldFactory.java rename to bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/factory/WorldFactory.java diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/BukkitParts.java b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/part/BukkitParts.java similarity index 100% rename from bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/BukkitParts.java rename to bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/part/BukkitParts.java diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/CommandSenderPart.java b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/part/CommandSenderPart.java similarity index 92% rename from bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/CommandSenderPart.java rename to bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/part/CommandSenderPart.java index 2d64ee8b..9da3ae60 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/CommandSenderPart.java +++ b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/part/CommandSenderPart.java @@ -1,7 +1,7 @@ package team.unnamed.commandflow.bukkit.part; import team.unnamed.commandflow.CommandContext; -import team.unnamed.commandflow.bukkit.BukkitCommandManager; +import team.unnamed.commandflow.bukkit.BukkitCommonConstants; import team.unnamed.commandflow.exception.ArgumentParseException; import team.unnamed.commandflow.exception.CommandException; import team.unnamed.commandflow.part.CommandPart; @@ -26,7 +26,7 @@ public String getName() { @Override public void parse(CommandContext context, ArgumentStack stack, CommandPart parent) throws ArgumentParseException { - CommandSender sender = context.getObject(CommandSender.class, BukkitCommandManager.SENDER_NAMESPACE); + CommandSender sender = context.getObject(CommandSender.class, BukkitCommonConstants.SENDER_NAMESPACE); if (sender != null) { context.setValue(this, sender); diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/GameModePart.java b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/part/GameModePart.java similarity index 100% rename from bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/GameModePart.java rename to bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/part/GameModePart.java diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/OfflinePlayerPart.java b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/part/OfflinePlayerPart.java similarity index 96% rename from bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/OfflinePlayerPart.java rename to bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/part/OfflinePlayerPart.java index e5eea592..d3343d34 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/OfflinePlayerPart.java +++ b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/part/OfflinePlayerPart.java @@ -1,7 +1,7 @@ package team.unnamed.commandflow.bukkit.part; import team.unnamed.commandflow.CommandContext; -import team.unnamed.commandflow.bukkit.BukkitCommandManager; +import team.unnamed.commandflow.bukkit.BukkitCommonConstants; import team.unnamed.commandflow.exception.ArgumentParseException; import team.unnamed.commandflow.part.ArgumentPart; import team.unnamed.commandflow.part.CommandPart; @@ -64,7 +64,7 @@ public List parseValue(CommandContext context, Argument } private Player tryGetSender(CommandContext context) { - CommandSender sender = context.getObject(CommandSender.class, BukkitCommandManager.SENDER_NAMESPACE); + CommandSender sender = context.getObject(CommandSender.class, BukkitCommonConstants.SENDER_NAMESPACE); if (sender instanceof Player) { return (Player) sender; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerPart.java b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerPart.java similarity index 96% rename from bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerPart.java rename to bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerPart.java index 40b7bf44..7a9b1b6d 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerPart.java +++ b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerPart.java @@ -1,7 +1,7 @@ package team.unnamed.commandflow.bukkit.part; import team.unnamed.commandflow.CommandContext; -import team.unnamed.commandflow.bukkit.BukkitCommandManager; +import team.unnamed.commandflow.bukkit.BukkitCommonConstants; import team.unnamed.commandflow.exception.ArgumentParseException; import team.unnamed.commandflow.part.ArgumentPart; import team.unnamed.commandflow.part.CommandPart; @@ -78,7 +78,7 @@ public List parseValue(CommandContext context, ArgumentStack stack, Comm } private Player tryGetSender(CommandContext context) { - CommandSender sender = context.getObject(CommandSender.class, BukkitCommandManager.SENDER_NAMESPACE); + CommandSender sender = context.getObject(CommandSender.class, BukkitCommonConstants.SENDER_NAMESPACE); if (sender instanceof Player) { return (Player) sender; diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerSenderPart.java b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerSenderPart.java similarity index 93% rename from bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerSenderPart.java rename to bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerSenderPart.java index 7483d25e..565fccfe 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerSenderPart.java +++ b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/part/PlayerSenderPart.java @@ -1,7 +1,7 @@ package team.unnamed.commandflow.bukkit.part; import team.unnamed.commandflow.CommandContext; -import team.unnamed.commandflow.bukkit.BukkitCommandManager; +import team.unnamed.commandflow.bukkit.BukkitCommonConstants; import team.unnamed.commandflow.exception.ArgumentParseException; import team.unnamed.commandflow.exception.CommandException; import team.unnamed.commandflow.part.CommandPart; @@ -27,7 +27,7 @@ public String getName() { @Override public void parse(CommandContext context, ArgumentStack stack, CommandPart parent) throws ArgumentParseException { - CommandSender sender = context.getObject(CommandSender.class, BukkitCommandManager.SENDER_NAMESPACE); + CommandSender sender = context.getObject(CommandSender.class, BukkitCommonConstants.SENDER_NAMESPACE); if (sender != null) { if (sender instanceof Player) { diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/WorldPart.java b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/part/WorldPart.java similarity index 100% rename from bukkit/src/main/java/team/unnamed/commandflow/bukkit/part/WorldPart.java rename to bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/part/WorldPart.java diff --git a/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/sender/DefaultMessageSender.java b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/sender/DefaultMessageSender.java new file mode 100644 index 00000000..85f45cfa --- /dev/null +++ b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/sender/DefaultMessageSender.java @@ -0,0 +1,14 @@ +package team.unnamed.commandflow.bukkit.sender; + +import net.kyori.adventure.text.Component; +import net.md_5.bungee.api.chat.BaseComponent; +import org.bukkit.command.CommandSender; + +public class DefaultMessageSender implements MessageSender { + @Override + public void sendMessage(CommandSender sender, Component component) { + BaseComponent[] components = MessageUtils.kyoriToBungee(component); + + MessageUtils.sendMessage(sender, components); + } +} diff --git a/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/sender/MessageSender.java b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/sender/MessageSender.java new file mode 100644 index 00000000..407bde54 --- /dev/null +++ b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/sender/MessageSender.java @@ -0,0 +1,8 @@ +package team.unnamed.commandflow.bukkit.sender; + +import net.kyori.adventure.text.Component; +import org.bukkit.command.CommandSender; + +public interface MessageSender { + void sendMessage(CommandSender sender, Component component); +} diff --git a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/MessageUtils.java b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/sender/MessageUtils.java similarity index 95% rename from bukkit/src/main/java/team/unnamed/commandflow/bukkit/MessageUtils.java rename to bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/sender/MessageUtils.java index 8010ea5d..9e32f9c1 100644 --- a/bukkit/src/main/java/team/unnamed/commandflow/bukkit/MessageUtils.java +++ b/bukkit/common/src/main/java/team/unnamed/commandflow/bukkit/sender/MessageUtils.java @@ -1,4 +1,4 @@ -package team.unnamed.commandflow.bukkit; +package team.unnamed.commandflow.bukkit.sender; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer; diff --git a/bukkit/paper/.gitignore b/bukkit/paper/.gitignore new file mode 100644 index 00000000..5ff6309b --- /dev/null +++ b/bukkit/paper/.gitignore @@ -0,0 +1,38 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### IntelliJ IDEA ### +.idea/modules.xml +.idea/jarRepositories.xml +.idea/compiler.xml +.idea/libraries/ +*.iws +*.iml +*.ipr + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store \ No newline at end of file diff --git a/bukkit/paper/pom.xml b/bukkit/paper/pom.xml new file mode 100644 index 00000000..049663bc --- /dev/null +++ b/bukkit/paper/pom.xml @@ -0,0 +1,41 @@ + + + 4.0.0 + + team.unnamed + commandflow-bukkit + ${revision} + ../pom.xml + + + commandflow-bukkit-paper + + + 17 + 17 + + + + + papermc + https://repo.papermc.io/repository/maven-public/ + + + + + + io.papermc.paper + paper-api + 1.18.2-R0.1-SNAPSHOT + provided + + + team.unnamed + commandflow-bukkit-common + ${project.version} + + + + \ No newline at end of file diff --git a/bukkit/paper/src/main/java/team/unnamed/commandflow/bukkit/paper/PaperMessageSender.java b/bukkit/paper/src/main/java/team/unnamed/commandflow/bukkit/paper/PaperMessageSender.java new file mode 100644 index 00000000..abb5c631 --- /dev/null +++ b/bukkit/paper/src/main/java/team/unnamed/commandflow/bukkit/paper/PaperMessageSender.java @@ -0,0 +1,12 @@ +package team.unnamed.commandflow.bukkit.paper; + +import net.kyori.adventure.text.Component; +import org.bukkit.command.CommandSender; +import team.unnamed.commandflow.bukkit.sender.MessageSender; + +public class PaperMessageSender implements MessageSender { + @Override + public void sendMessage(CommandSender sender, Component component) { + sender.sendMessage(component); + } +} diff --git a/bukkit/pom.xml b/bukkit/pom.xml index 4a038003..61b646ee 100644 --- a/bukkit/pom.xml +++ b/bukkit/pom.xml @@ -9,7 +9,17 @@ ${revision} commandflow-bukkit - jar + pom + + + commandmap + common + paper + + + + UTF-8 + @@ -32,4 +42,4 @@ compile - + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 056b67f2..9b69da8e 100644 --- a/pom.xml +++ b/pom.xml @@ -9,11 +9,11 @@ ${revision} api - bukkit discord bungee velocity - brigadier + + bukkit pom @@ -42,7 +42,7 @@ UTF-8 - 0.6.0 + 0.7.0 From 1cea1ba02276b0a553432ed4b0c6a586264f79eb Mon Sep 17 00:00:00 2001 From: Damian G Date: Fri, 29 Dec 2023 17:47:18 -0600 Subject: [PATCH 12/31] ci: Make the publishing into maven repo automatic. --- .github/workflows/maven-publish.yml | 47 ++++++++++++++--------------- 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 65d1fe60..3775d24d 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -1,30 +1,29 @@ # This workflow will build a package using Maven and then publish it to GitHub packages when a release is created # For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path -name: Maven Package +name: Maven Package to Unnamed Repo and github packages on: - release: - types: released - + release: + types: [created] jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - server-id: github # Value of the distributionManagement/repository/id field of the pom.xml - settings-path: ${{ github.workspace }} # location for the settings.xml file - - - name: Build with Maven - run: mvn -B package --file pom.xml - - - name: Publish to GitHub Packages Apache Maven - run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml - env: - GITHUB_TOKEN: ${{ github.token }} + publish: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v4 + - name: Set up Java for publishing to unnamed repo + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + server-id: unnamed-releases + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD + - name: Publish to unnamed repo + run: mvn --batch-mode deploy + env: + MAVEN_USERNAME: ${{ secrets.USERNAME }} + MAVEN_PASSWORD: ${{ secrets.TOKEN }} \ No newline at end of file From cc1c2a20021ce9e1ccdc80e9d84a80dd18b734e8 Mon Sep 17 00:00:00 2001 From: Damian G Date: Fri, 29 Dec 2023 17:50:31 -0600 Subject: [PATCH 13/31] ci: Change version for automatic compiling to java 17 --- .github/workflows/build.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d7463400..d54d248a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,11 +7,10 @@ jobs: if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }} runs-on: ubuntu-latest steps: - - name: Checkout repo - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v3 with: - java-version: 1.8 + java-version: '17' + distribution: 'temurin' - name: Build with Maven run: mvn -B package --file pom.xml \ No newline at end of file From c6c2f0d1cad0c2ebfb1a96b9c03a52158f2add93 Mon Sep 17 00:00:00 2001 From: Damian G Date: Fri, 29 Dec 2023 17:55:34 -0600 Subject: [PATCH 14/31] build: Remove encoding property from commandflow-bukkit --- bukkit/pom.xml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bukkit/pom.xml b/bukkit/pom.xml index 61b646ee..49d003ff 100644 --- a/bukkit/pom.xml +++ b/bukkit/pom.xml @@ -17,10 +17,6 @@ paper - - UTF-8 - - spigotmc-repo From a50d639210101c07c3c8efec7ae8c134d95ab068 Mon Sep 17 00:00:00 2001 From: Damian G Date: Fri, 29 Dec 2023 23:03:16 -0600 Subject: [PATCH 15/31] build: Fix parent not being able to update. --- api/pom.xml | 1 + brigadier/pom.xml | 1 + bukkit/pom.xml | 2 ++ bungee/pom.xml | 1 + discord/pom.xml | 1 + velocity/pom.xml | 1 + 6 files changed, 7 insertions(+) diff --git a/api/pom.xml b/api/pom.xml index 6c73bb59..1f749263 100644 --- a/api/pom.xml +++ b/api/pom.xml @@ -7,6 +7,7 @@ team.unnamed commandflow ${revision} + ../pom.xml commandflow-api jar diff --git a/brigadier/pom.xml b/brigadier/pom.xml index 023df43b..8d90fb40 100644 --- a/brigadier/pom.xml +++ b/brigadier/pom.xml @@ -7,6 +7,7 @@ team.unnamed commandflow ${revision} + ../pom.xml commandflow-brigadier jar diff --git a/bukkit/pom.xml b/bukkit/pom.xml index 49d003ff..997df93b 100644 --- a/bukkit/pom.xml +++ b/bukkit/pom.xml @@ -7,7 +7,9 @@ team.unnamed commandflow ${revision} + ../pom.xml + commandflow-bukkit pom diff --git a/bungee/pom.xml b/bungee/pom.xml index fb30eea1..53e3e006 100644 --- a/bungee/pom.xml +++ b/bungee/pom.xml @@ -8,6 +8,7 @@ commandflow ${revision} + commandflow-bungee jar diff --git a/discord/pom.xml b/discord/pom.xml index 63d3c50c..5068163a 100644 --- a/discord/pom.xml +++ b/discord/pom.xml @@ -7,6 +7,7 @@ team.unnamed commandflow ${revision} + ../pom.xml commandflow-discord jar diff --git a/velocity/pom.xml b/velocity/pom.xml index 4638be13..927a722e 100644 --- a/velocity/pom.xml +++ b/velocity/pom.xml @@ -7,6 +7,7 @@ team.unnamed commandflow ${revision} + ../pom.xml commandflow-velocity jar From ba24753d845cb2929d08ea55f5d58c90e4a11839 Mon Sep 17 00:00:00 2001 From: Damian G Date: Mon, 1 Jan 2024 19:46:02 -0600 Subject: [PATCH 16/31] feat: Add module to register commands using plugin.yml instead of CommandMap. --- bukkit/plugin/pom.xml | 23 +++++++ .../BukkitCommandExecutor.java | 60 ++++++++++++++++++ .../BukkitPluginCommandManager.java | 62 +++++++++++++++++++ .../DefaultBukkitCommandExecutor.java | 17 +++++ bukkit/pom.xml | 1 + 5 files changed, 163 insertions(+) create mode 100644 bukkit/plugin/pom.xml create mode 100644 bukkit/plugin/src/main/java/team.unnamed.commandflow.bukkit/BukkitCommandExecutor.java create mode 100644 bukkit/plugin/src/main/java/team.unnamed.commandflow.bukkit/BukkitPluginCommandManager.java create mode 100644 bukkit/plugin/src/main/java/team.unnamed.commandflow.bukkit/DefaultBukkitCommandExecutor.java diff --git a/bukkit/plugin/pom.xml b/bukkit/plugin/pom.xml new file mode 100644 index 00000000..423c8a6b --- /dev/null +++ b/bukkit/plugin/pom.xml @@ -0,0 +1,23 @@ + + + 4.0.0 + + team.unnamed + commandflow-bukkit + ${revision} + ../pom.xml + + + commandflow-bukkit-plugin + + + + team.unnamed + commandflow-bukkit-common + ${project.version} + + + + \ No newline at end of file diff --git a/bukkit/plugin/src/main/java/team.unnamed.commandflow.bukkit/BukkitCommandExecutor.java b/bukkit/plugin/src/main/java/team.unnamed.commandflow.bukkit/BukkitCommandExecutor.java new file mode 100644 index 00000000..d78d180e --- /dev/null +++ b/bukkit/plugin/src/main/java/team.unnamed.commandflow.bukkit/BukkitCommandExecutor.java @@ -0,0 +1,60 @@ +package team.unnamed.commandflow.bukkit; + +import org.bukkit.command.Command; +import org.bukkit.command.CommandExecutor; +import org.bukkit.command.CommandSender; +import org.bukkit.command.TabCompleter; +import team.unnamed.commandflow.CommandManager; +import team.unnamed.commandflow.Namespace; +import team.unnamed.commandflow.exception.CommandException; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +public interface BukkitCommandExecutor extends CommandExecutor, TabCompleter { + @Override + default boolean onCommand(CommandSender sender, Command command, String label, String[] args) { + List argumentLine = new ArrayList<>(); + + argumentLine.add(label); + argumentLine.addAll(Arrays.asList(args)); + + Namespace namespace = Namespace.create(); + + namespace.setObject(CommandSender.class, BukkitCommonConstants.SENDER_NAMESPACE, sender); + namespace.setObject(String.class, "label", label); + + try { + return commandManager().execute(namespace, argumentLine); + } catch (CommandException e) { + Throwable exceptionToSend = e; + + Throwable cause = e.getCause(); + + if (cause instanceof org.bukkit.command.CommandException) { + throw (org.bukkit.command.CommandException) cause; + } + + if (cause != null) { + exceptionToSend = cause; + } + + throw new org.bukkit.command.CommandException("An unexpected exception occurred while executing the command " + label, exceptionToSend); + } + } + + @Override + default List onTabComplete(CommandSender sender, Command command, String alias, String[] args) { + List argumentLine = new ArrayList<>(Arrays.asList(args)); + argumentLine.add(0, alias); + + Namespace namespace = Namespace.create(); + namespace.setObject(CommandSender.class, BukkitCommonConstants.SENDER_NAMESPACE, sender); + + return commandManager().getSuggestions(namespace, argumentLine); + } + + CommandManager commandManager(); + +} diff --git a/bukkit/plugin/src/main/java/team.unnamed.commandflow.bukkit/BukkitPluginCommandManager.java b/bukkit/plugin/src/main/java/team.unnamed.commandflow.bukkit/BukkitPluginCommandManager.java new file mode 100644 index 00000000..8cafcd0c --- /dev/null +++ b/bukkit/plugin/src/main/java/team.unnamed.commandflow.bukkit/BukkitPluginCommandManager.java @@ -0,0 +1,62 @@ +package team.unnamed.commandflow.bukkit; + +import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer; +import org.bukkit.Bukkit; +import org.bukkit.command.CommandMap; +import org.bukkit.command.PluginCommand; +import org.bukkit.plugin.Plugin; +import org.bukkit.plugin.java.JavaPlugin; +import org.jetbrains.annotations.NotNull; +import team.unnamed.commandflow.CommandManager; +import team.unnamed.commandflow.SimpleCommandManager; +import team.unnamed.commandflow.command.Command; + +public class BukkitPluginCommandManager extends BukkitCommandManager { + + protected final String fallbackPrefix; + + protected BukkitCommandExecutor commandExecutor; + + public BukkitPluginCommandManager(CommandManager delegate, @NotNull BukkitCommandExecutor commandExecutor, String fallbackPrefix) { + super(delegate); + this.fallbackPrefix = fallbackPrefix; + this.commandExecutor = commandExecutor; + } + + public BukkitPluginCommandManager(String fallbackPrefix) { + //noinspection DataFlowIssue + this(new SimpleCommandManager(), null, fallbackPrefix); + + commandExecutor = new DefaultBukkitCommandExecutor(this); + setAuthorizer(new BukkitAuthorizer()); + getTranslator().setProvider(new BukkitDefaultTranslationProvider()); + getTranslator().setConverterFunction(LegacyComponentSerializer.legacyAmpersand()::deserialize); + } + + @Override + protected void _register(Command command) { + PluginCommand pluginCommand = Bukkit.getPluginCommand(command.getName()); + + if (pluginCommand != null) { + pluginCommand.setExecutor(commandExecutor); + pluginCommand.setTabCompleter(commandExecutor); + } + + for (String alias : command.getAliases()) { + registerCommand(fallbackPrefix + ":" + alias, command); + } + + registerCommand(fallbackPrefix + ":" + command.getName(), command); + } + + @Override + protected void _unregister(Command command) { + PluginCommand pluginCommand = Bukkit.getPluginCommand(command.getName()); + + if (pluginCommand != null) { + pluginCommand.setExecutor(null); + pluginCommand.setTabCompleter(null); + } + } + +} diff --git a/bukkit/plugin/src/main/java/team.unnamed.commandflow.bukkit/DefaultBukkitCommandExecutor.java b/bukkit/plugin/src/main/java/team.unnamed.commandflow.bukkit/DefaultBukkitCommandExecutor.java new file mode 100644 index 00000000..01cd9399 --- /dev/null +++ b/bukkit/plugin/src/main/java/team.unnamed.commandflow.bukkit/DefaultBukkitCommandExecutor.java @@ -0,0 +1,17 @@ +package team.unnamed.commandflow.bukkit; + +import team.unnamed.commandflow.CommandManager; + +public class DefaultBukkitCommandExecutor implements BukkitCommandExecutor { + + private final CommandManager commandManager; + + public DefaultBukkitCommandExecutor(CommandManager commandManager) { + this.commandManager = commandManager; + } + + @Override + public CommandManager commandManager() { + return commandManager; + } +} diff --git a/bukkit/pom.xml b/bukkit/pom.xml index 997df93b..f1b4e6f7 100644 --- a/bukkit/pom.xml +++ b/bukkit/pom.xml @@ -17,6 +17,7 @@ commandmap common paper + plugin From d7f8b9da39f268a8004dd3702c3a209237eb58f0 Mon Sep 17 00:00:00 2001 From: Damian G Date: Tue, 2 Jan 2024 18:33:26 -0600 Subject: [PATCH 17/31] feat: Add default name for namespace objects. Thanks pixel. --- .../team/unnamed/commandflow/Namespace.java | 38 +++++++++++++++---- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/api/src/main/java/team/unnamed/commandflow/Namespace.java b/api/src/main/java/team/unnamed/commandflow/Namespace.java index cc0221c9..a8908315 100644 --- a/api/src/main/java/team/unnamed/commandflow/Namespace.java +++ b/api/src/main/java/team/unnamed/commandflow/Namespace.java @@ -2,28 +2,52 @@ public interface Namespace { + String DEFAULT_NAMESPACE_NAME = "__"; + /** * Gets an injected object from the backing Map * * @param clazz The class type of the Object to get - * @param name The name of the Object to get - * @param The type of the Object to get - * + * @param name The name of the Object to get + * @param The type of the Object to get * @return A nullable instance of T contained in the backing map with the specified name */ T getObject(Class clazz, String name); + /** + * Gets an injected object from the backing Map, with the default namespace name. + * + * @param clazz The class type of the Object to get + * @param The type of the Object to get + * @return A nullable instance of T contained in the backing map with the default namespace name + */ + default T getObject(Class clazz) { + return getObject(clazz, DEFAULT_NAMESPACE_NAME); + } + /** * Sets an Object of Type T with a specified name into the backing Map - * If an object with the same name and type is already on the map, it will be override + * If an object with the same name and type is already on the map, it will be overridden * - * @param clazz The class type of the Object to set - * @param name The name of the object to set + * @param clazz The class type of the Object to set + * @param name The name of the object to set * @param object The Object to set into the backing map - * @param The Type of the object to set + * @param The Type of the object to set */ void setObject(Class clazz, String name, T object); + /** + * Sets an Object of Type T with the default name into the backing Map + * If an object with the same type and without a specified name is already on the map, it will be overridden + * + * @param clazz The class type of the Object to set + * @param object The Object to set into the backing map + * @param The Type of the object to set + */ + default void setObject(Class clazz, T object) { + setObject(clazz, DEFAULT_NAMESPACE_NAME, object); + } + static Namespace create() { return new NamespaceImpl(); } From 427931863866a8579a84106f129f0ff0328bc503 Mon Sep 17 00:00:00 2001 From: Damian G Date: Tue, 2 Jan 2024 18:48:28 -0600 Subject: [PATCH 18/31] feat: Add mappings for brigadier. Work in progress. --- .../BrigadierCommandNodeMappings.java | 28 +++++++++++ .../BrigadierCommandNodeMappingsImpl.java | 49 +++++++++++++++++++ .../mappings/CommandNodeMapping.java | 8 +++ 3 files changed, 85 insertions(+) create mode 100644 brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappings.java create mode 100644 brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappingsImpl.java create mode 100644 brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/CommandNodeMapping.java diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappings.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappings.java new file mode 100644 index 00000000..0053324c --- /dev/null +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappings.java @@ -0,0 +1,28 @@ +package team.unnamed.commandflow.brigadier.mappings; + +import java.lang.reflect.Type; +import java.util.Optional; + +public interface BrigadierCommandNodeMappings { + default Optional> getMapping(Class type) { + return getMapping(type); + } + + Optional> getMapping(Type type); + + Builder toBuilder(); + + static Builder builder() { + return new BrigadierCommandNodeMappingsImpl.Builder<>(); + } + + interface Builder { + default Builder addMapping(Class type, CommandNodeMapping mapping) { + return addMapping(type, mapping); + } + + Builder addMapping(Type type, CommandNodeMapping mapping); + + BrigadierCommandNodeMappings build(); + } +} diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappingsImpl.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappingsImpl.java new file mode 100644 index 00000000..9ca7b818 --- /dev/null +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappingsImpl.java @@ -0,0 +1,49 @@ +package team.unnamed.commandflow.brigadier.mappings; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.Map; +import java.util.Optional; + +final class BrigadierCommandNodeMappingsImpl implements BrigadierCommandNodeMappings { + + private final Map> mappingMap; + + BrigadierCommandNodeMappingsImpl(Map> mappingMap) { + this.mappingMap = mappingMap; + } + + @Override + public Optional> getMapping(Type type) { + return Optional.ofNullable(mappingMap.get(type)); + } + + @Override + public BrigadierCommandNodeMappings.Builder toBuilder() { + return new Builder<>(mappingMap); + } + + final static class Builder implements BrigadierCommandNodeMappings.Builder { + + private final Map> mappingMap; + + Builder() { + mappingMap = new HashMap<>(); + } + + Builder(Map> mappingMap) { + this.mappingMap = new HashMap<>(mappingMap); + } + + @Override + public BrigadierCommandNodeMappings.Builder addMapping(Type type, CommandNodeMapping mapping) { + mappingMap.put(type, mapping); + return this; + } + + @Override + public BrigadierCommandNodeMappings build() { + return new BrigadierCommandNodeMappingsImpl<>(mappingMap); + } + } +} diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/CommandNodeMapping.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/CommandNodeMapping.java new file mode 100644 index 00000000..2d0663d5 --- /dev/null +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/CommandNodeMapping.java @@ -0,0 +1,8 @@ +package team.unnamed.commandflow.brigadier.mappings; + +import com.mojang.brigadier.tree.CommandNode; +import team.unnamed.commandflow.part.ArgumentPart; + +public interface CommandNodeMapping { + CommandNode convert(ArgumentPart argumentPart); +} From 63c7213263e1125daeed0f276cecd26ac4591ad8 Mon Sep 17 00:00:00 2001 From: Damian G Date: Tue, 2 Jan 2024 21:22:16 -0600 Subject: [PATCH 19/31] fix: Change sender namespace name to lowercase. --- .../src/main/java/bukkit/BukkitMapCommandManager.java | 2 -- .../team/unnamed/commandflow/bungee/BungeeCommandManager.java | 2 +- .../unnamed/commandflow/velocity/VelocityCommandManager.java | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bukkit/commandmap/src/main/java/bukkit/BukkitMapCommandManager.java b/bukkit/commandmap/src/main/java/bukkit/BukkitMapCommandManager.java index 3477cc92..71891f8f 100644 --- a/bukkit/commandmap/src/main/java/bukkit/BukkitMapCommandManager.java +++ b/bukkit/commandmap/src/main/java/bukkit/BukkitMapCommandManager.java @@ -17,8 +17,6 @@ public class BukkitMapCommandManager extends BukkitCommandManager { - public static final String SENDER_NAMESPACE = "SENDER"; - protected CommandMap bukkitCommandMap; protected final String fallbackPrefix; diff --git a/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandManager.java b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandManager.java index c90a6125..45744791 100644 --- a/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandManager.java +++ b/bungee/src/main/java/team/unnamed/commandflow/bungee/BungeeCommandManager.java @@ -30,7 +30,7 @@ public class BungeeCommandManager implements CommandManager { - public static final String SENDER_NAMESPACE = "SENDER"; + public static final String SENDER_NAMESPACE = "sender"; protected final CommandManager commandManager; protected final Plugin plugin; diff --git a/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandManager.java b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandManager.java index bad9e191..0d76fa53 100644 --- a/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandManager.java +++ b/velocity/src/main/java/team/unnamed/commandflow/velocity/VelocityCommandManager.java @@ -27,7 +27,7 @@ public class VelocityCommandManager implements CommandManager { - public static final String SENDER_NAMESPACE = "SENDER"; + public static final String SENDER_NAMESPACE = "sender"; protected final ProxyServer proxyServer; protected final CommandManager commandManager; From 0bcad4f25dddac150cec9246e778f776baca282a Mon Sep 17 00:00:00 2001 From: Damian G Date: Tue, 2 Jan 2024 21:52:53 -0600 Subject: [PATCH 20/31] docs: Add javadocs for every new class. --- .../mappings/BrigadierCommandNodeMappings.java | 17 +++++++++++++++++ .../brigadier/mappings/CommandNodeMapping.java | 9 +++++++++ 2 files changed, 26 insertions(+) diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappings.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappings.java index 0053324c..b990ee85 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappings.java +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappings.java @@ -4,12 +4,29 @@ import java.util.Optional; public interface BrigadierCommandNodeMappings { + /** + * Obtains the {@link CommandNodeMapping} for the specified type. + * + * @param type The type to get a conversion mapping for. + * @return A {@link CommandNodeMapping}, if it exists, suitable for converting a {@linkplain team.unnamed.commandflow.part.ArgumentPart} of the specified type. + */ default Optional> getMapping(Class type) { return getMapping(type); } + /** + * Obtains the {@link CommandNodeMapping} for the specified type. + * + * @param type The type to get a conversion mapping for. + * @return A {@link CommandNodeMapping}, if it exists, suitable for converting a {@linkplain team.unnamed.commandflow.part.ArgumentPart} of the specified type. + */ Optional> getMapping(Type type); + /** + * Converts this Mappings instance into a builder, allowing for more mappings to be added. + * + * @return A new builder for a {@linkplain BrigadierCommandNodeMappings} instance, with the mappings of this instance already added. + */ Builder toBuilder(); static Builder builder() { diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/CommandNodeMapping.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/CommandNodeMapping.java index 2d0663d5..c7dbf824 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/CommandNodeMapping.java +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/CommandNodeMapping.java @@ -3,6 +3,15 @@ import com.mojang.brigadier.tree.CommandNode; import team.unnamed.commandflow.part.ArgumentPart; +/** + * Represents the mapping between a command-flow's {@link ArgumentPart} type into a brigadier's {@link CommandNode}. + * @param The type of the command executor. + */ public interface CommandNodeMapping { + /** + * Converts a specified {@link team.unnamed.commandflow.part.CommandPart} into a {@link CommandNode}. + * @param argumentPart The {@linkplain ArgumentPart} to convert. + * @return A non null {@linkplain CommandNode} + */ CommandNode convert(ArgumentPart argumentPart); } From e79bf0b6ba91e8f372fd523952913a2000e1ecad Mon Sep 17 00:00:00 2001 From: Damian G Date: Tue, 2 Jan 2024 21:53:08 -0600 Subject: [PATCH 21/31] feat: Add mappings for common argument part types. --- .../mappings/defaults/BooleanMapping.java | 14 +++++++ .../mappings/defaults/DoubleMapping.java | 15 +++++++ .../mappings/defaults/GeneralMapping.java | 42 +++++++++++++++++++ .../mappings/defaults/IntegerMapping.java | 15 +++++++ .../mappings/defaults/LongMapping.java | 15 +++++++ .../mappings/defaults/StringMapping.java | 21 ++++++++++ 6 files changed, 122 insertions(+) create mode 100644 brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/BooleanMapping.java create mode 100644 brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/DoubleMapping.java create mode 100644 brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/GeneralMapping.java create mode 100644 brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/IntegerMapping.java create mode 100644 brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/LongMapping.java create mode 100644 brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/StringMapping.java diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/BooleanMapping.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/BooleanMapping.java new file mode 100644 index 00000000..ac6cce66 --- /dev/null +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/BooleanMapping.java @@ -0,0 +1,14 @@ +package team.unnamed.commandflow.brigadier.mappings.defaults; + +import com.mojang.brigadier.arguments.BoolArgumentType; +import com.mojang.brigadier.builder.RequiredArgumentBuilder; +import com.mojang.brigadier.tree.CommandNode; +import team.unnamed.commandflow.brigadier.mappings.CommandNodeMapping; +import team.unnamed.commandflow.part.ArgumentPart; + +public class BooleanMapping implements CommandNodeMapping { + @Override + public CommandNode convert(ArgumentPart part) { + return RequiredArgumentBuilder.argument(part.getName(), BoolArgumentType.bool()).build(); + } +} diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/DoubleMapping.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/DoubleMapping.java new file mode 100644 index 00000000..1c59c97b --- /dev/null +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/DoubleMapping.java @@ -0,0 +1,15 @@ +package team.unnamed.commandflow.brigadier.mappings.defaults; + +import com.mojang.brigadier.arguments.DoubleArgumentType; +import com.mojang.brigadier.arguments.IntegerArgumentType; +import com.mojang.brigadier.builder.RequiredArgumentBuilder; +import com.mojang.brigadier.tree.CommandNode; +import team.unnamed.commandflow.brigadier.mappings.CommandNodeMapping; +import team.unnamed.commandflow.part.ArgumentPart; + +public class DoubleMapping implements CommandNodeMapping { + @Override + public CommandNode convert(ArgumentPart part) { + return RequiredArgumentBuilder.argument(part.getName(), DoubleArgumentType.doubleArg()).build(); + } +} diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/GeneralMapping.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/GeneralMapping.java new file mode 100644 index 00000000..61055033 --- /dev/null +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/GeneralMapping.java @@ -0,0 +1,42 @@ +package team.unnamed.commandflow.brigadier.mappings.defaults; + +import com.mojang.brigadier.arguments.StringArgumentType; +import com.mojang.brigadier.builder.RequiredArgumentBuilder; +import com.mojang.brigadier.tree.CommandNode; +import org.bukkit.command.CommandSender; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.Namespace; +import team.unnamed.commandflow.SimpleCommandContext; +import team.unnamed.commandflow.brigadier.mappings.CommandNodeMapping; +import team.unnamed.commandflow.part.ArgumentPart; +import team.unnamed.commandflow.stack.SimpleArgumentStack; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +public class GeneralMapping implements CommandNodeMapping { + @Override + public CommandNode convert(ArgumentPart part) { + return RequiredArgumentBuilder.argument(part.getName(), StringArgumentType.word()) + .suggests((context, builder) -> { + T sender = context.getSource(); + + Namespace namespace = Namespace.create(); + //noinspection unchecked + namespace.setObject((Class) sender.getClass(), "sender", sender); + + CommandContext commandContext = new SimpleCommandContext(namespace, new ArrayList<>()); + + List suggestions = part.getSuggestions(commandContext, new SimpleArgumentStack(Collections.singletonList(""))); + + if (suggestions != null) { + for (String suggestion : suggestions) { + builder.suggest(suggestion); + } + } + + return builder.buildFuture(); + }).build(); + } +} diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/IntegerMapping.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/IntegerMapping.java new file mode 100644 index 00000000..7bbbb93d --- /dev/null +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/IntegerMapping.java @@ -0,0 +1,15 @@ +package team.unnamed.commandflow.brigadier.mappings.defaults; + +import com.mojang.brigadier.arguments.BoolArgumentType; +import com.mojang.brigadier.arguments.IntegerArgumentType; +import com.mojang.brigadier.builder.RequiredArgumentBuilder; +import com.mojang.brigadier.tree.CommandNode; +import team.unnamed.commandflow.brigadier.mappings.CommandNodeMapping; +import team.unnamed.commandflow.part.ArgumentPart; + +public class IntegerMapping implements CommandNodeMapping { + @Override + public CommandNode convert(ArgumentPart part) { + return RequiredArgumentBuilder.argument(part.getName(), IntegerArgumentType.integer()).build(); + } +} diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/LongMapping.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/LongMapping.java new file mode 100644 index 00000000..9d0cc559 --- /dev/null +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/LongMapping.java @@ -0,0 +1,15 @@ +package team.unnamed.commandflow.brigadier.mappings.defaults; + +import com.mojang.brigadier.arguments.DoubleArgumentType; +import com.mojang.brigadier.arguments.LongArgumentType; +import com.mojang.brigadier.builder.RequiredArgumentBuilder; +import com.mojang.brigadier.tree.CommandNode; +import team.unnamed.commandflow.brigadier.mappings.CommandNodeMapping; +import team.unnamed.commandflow.part.ArgumentPart; + +public class LongMapping implements CommandNodeMapping { + @Override + public CommandNode convert(ArgumentPart part) { + return RequiredArgumentBuilder.argument(part.getName(), LongArgumentType.longArg()).build(); + } +} diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/StringMapping.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/StringMapping.java new file mode 100644 index 00000000..95c17925 --- /dev/null +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/StringMapping.java @@ -0,0 +1,21 @@ +package team.unnamed.commandflow.brigadier.mappings.defaults; + +import com.mojang.brigadier.arguments.StringArgumentType; +import com.mojang.brigadier.builder.RequiredArgumentBuilder; +import com.mojang.brigadier.tree.CommandNode; +import team.unnamed.commandflow.brigadier.mappings.CommandNodeMapping; +import team.unnamed.commandflow.part.ArgumentPart; +import team.unnamed.commandflow.part.defaults.StringPart; + +public class StringMapping implements CommandNodeMapping { + @Override + public CommandNode convert(ArgumentPart part) { + StringPart stringPart = (StringPart) part; + + if (stringPart.isConsumeAll()) { + return RequiredArgumentBuilder.argument(part.getName(), StringArgumentType.greedyString()).build(); + } else { + return RequiredArgumentBuilder.argument(part.getName(), StringArgumentType.word()).build(); + } + } +} From e9bef0aa3123519acfe4ad947f571ada57d9b107 Mon Sep 17 00:00:00 2001 From: Damian G Date: Tue, 2 Jan 2024 22:20:33 -0600 Subject: [PATCH 22/31] refactor: Convert the CommandBrigadierConverter into a converter for all platforms. --- .../brigadier/CommandBrigadierConverter.java | 235 +++++++----------- .../brigadier/PermissionRequirement.java | 16 +- 2 files changed, 103 insertions(+), 148 deletions(-) diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java index 154df04b..6cc13388 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java @@ -1,106 +1,104 @@ package team.unnamed.commandflow.brigadier; -import com.mojang.brigadier.arguments.ArgumentType; -import com.mojang.brigadier.arguments.BoolArgumentType; -import com.mojang.brigadier.arguments.DoubleArgumentType; -import com.mojang.brigadier.arguments.IntegerArgumentType; -import com.mojang.brigadier.arguments.LongArgumentType; +import com.mojang.brigadier.CommandDispatcher; import com.mojang.brigadier.arguments.StringArgumentType; import com.mojang.brigadier.builder.ArgumentBuilder; import com.mojang.brigadier.builder.LiteralArgumentBuilder; import com.mojang.brigadier.builder.RequiredArgumentBuilder; import com.mojang.brigadier.tree.CommandNode; import com.mojang.brigadier.tree.LiteralCommandNode; +import me.lucko.commodore.Commodore; + +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.Listener; +import org.bukkit.event.player.PlayerCommandSendEvent; import team.unnamed.commandflow.Authorizer; -import team.unnamed.commandflow.CommandContext; -import team.unnamed.commandflow.Namespace; -import team.unnamed.commandflow.SimpleCommandContext; -import team.unnamed.commandflow.bukkit.BukkitCommandManager; -import team.unnamed.commandflow.bukkit.part.OfflinePlayerPart; -import team.unnamed.commandflow.bukkit.part.PlayerPart; +import team.unnamed.commandflow.brigadier.mappings.BrigadierCommandNodeMappings; import team.unnamed.commandflow.command.Command; import team.unnamed.commandflow.part.ArgumentPart; import team.unnamed.commandflow.part.CommandPart; import team.unnamed.commandflow.part.PartsWrapper; import team.unnamed.commandflow.part.SinglePartWrapper; -import team.unnamed.commandflow.part.defaults.BooleanPart; -import team.unnamed.commandflow.part.defaults.DoublePart; import team.unnamed.commandflow.part.defaults.FirstMatchPart; -import team.unnamed.commandflow.part.defaults.IntegerPart; -import team.unnamed.commandflow.part.defaults.LongPart; import team.unnamed.commandflow.part.defaults.OptionalPart; -import team.unnamed.commandflow.part.defaults.StringPart; import team.unnamed.commandflow.part.defaults.SubCommandPart; import team.unnamed.commandflow.part.defaults.SwitchPart; import team.unnamed.commandflow.part.defaults.ValueFlagPart; import team.unnamed.commandflow.part.visitor.CommandPartVisitor; -import team.unnamed.commandflow.stack.SimpleArgumentStack; -import me.lucko.commodore.Commodore; -import me.lucko.commodore.MinecraftArgumentTypes; -import org.bukkit.Bukkit; -import org.bukkit.NamespacedKey; -import org.bukkit.command.CommandSender; -import org.bukkit.entity.Player; -import org.bukkit.event.EventHandler; -import org.bukkit.event.Listener; -import org.bukkit.event.player.PlayerCommandSendEvent; -import org.bukkit.plugin.Plugin; -import java.lang.reflect.Constructor; import java.util.ArrayList; import java.util.Collection; -import java.util.Collections; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.ListIterator; import java.util.Set; +import java.util.function.Function; import java.util.function.Predicate; import java.util.stream.Collectors; -public class CommandBrigadierConverter { +public class CommandBrigadierConverter { + + private final CommandDispatcher brigadierDispatcher; + private final BrigadierCommandNodeMappings commandNodeMappings; + private final Authorizer authorizer; - private final Commodore commodore; + private final Function senderMapping; - public CommandBrigadierConverter(Commodore commodore) { - this.commodore = commodore; + public CommandBrigadierConverter(CommandDispatcher dispatcher, + Function senderMapping, + BrigadierCommandNodeMappings commandNodeMappings, + Authorizer authorizer) { + this.commandNodeMappings = commandNodeMappings; + this.brigadierDispatcher = dispatcher; + this.senderMapping = senderMapping; + this.authorizer = authorizer; } - public List> registerCommand(Command command, Plugin plugin, BrigadierCommandWrapper bukkitCommand) { - List> nodes = getCommodoreCommand(command, bukkitCommand.getCommandManager().getAuthorizer()); + public List> registerCommand(Command command) { + List> nodes = getBrigadierCommand(command, authorizer); - nodes.forEach(commodore::register); + nodes.forEach(this::register); - Bukkit.getPluginManager().registerEvents(new CommandDataSendListener(bukkitCommand, bukkitCommand::testPermissionSilent), plugin); + // Bukkit.getPluginManager().registerEvents(new CommandDataSendListener(bukkitCommand, bukkitCommand::testPermissionSilent), plugin); return nodes; } - public void unregisterCommand(List> nodes) { - Collection> rootNodes = commodore.getDispatcher().getRoot().getChildren(); + private void register(LiteralCommandNode node) { + brigadierDispatcher.getRoot().getChildren().removeIf(tCommandNode -> + tCommandNode.getName().equals(node.getName()) + ); // remove the original + + brigadierDispatcher.getRoot().addChild(node); // register + } + + public void unregisterCommand(List> nodes) { + Collection> rootNodes = brigadierDispatcher.getRoot().getChildren(); rootNodes.removeAll(nodes); } - public List> getCommodoreCommand(Command command, Authorizer authorizer) { - return getCommodoreCommand(command, false, authorizer); + public List> getBrigadierCommand(Command command, Authorizer authorizer) { + return getBrigadierCommand(command, false, authorizer); } - public List> getCommodoreCommand(Command command, boolean optional, Authorizer authorizer) { - LiteralArgumentBuilder argumentBuilder = LiteralArgumentBuilder.literal(command.getName()) - .requires(new PermissionRequirement(command.getPermission(), authorizer, commodore)); + public List> getBrigadierCommand(Command command, boolean optional, Authorizer authorizer) { + LiteralArgumentBuilder argumentBuilder = LiteralArgumentBuilder.literal(command.getName()) + .requires(new PermissionRequirement<>(command.getPermission(), authorizer, senderMapping)); if (isFirstPartOptional(command.getPart())) { argumentBuilder.executes(context -> 1); } - LiteralCommandNode mainNode = argumentBuilder.build(); + LiteralCommandNode mainNode = argumentBuilder.build(); - CommandNode node = convertToNodes(command, authorizer); + CommandNode node = convertToNodes(command, authorizer); if (node != null) { if (node instanceof LiteralCommandNode && (node.getName().equals("valueFlag") || node.getName().equals("Wrapper"))) { - for (CommandNode child : node.getChildren()) { + for (CommandNode child : node.getChildren()) { mainNode.addChild(child); } } else { @@ -109,15 +107,15 @@ public List> getCommodoreCommand(Command command, boo } - List> argumentBuilders = new ArrayList<>(); + List> argumentBuilders = new ArrayList<>(); argumentBuilders.add(mainNode); for (String alias : command.getAliases()) { - LiteralArgumentBuilder aliasBuilder = LiteralArgumentBuilder - .literal(alias) + LiteralArgumentBuilder aliasBuilder = LiteralArgumentBuilder + .literal(alias) .redirect(mainNode) - .requires(new PermissionRequirement(command.getPermission(), authorizer, commodore)); + .requires(new PermissionRequirement<>(command.getPermission(), authorizer, senderMapping)); if (optional) { aliasBuilder = aliasBuilder.executes(context -> 1); @@ -129,17 +127,17 @@ public List> getCommodoreCommand(Command command, boo return argumentBuilders; } - private CommandNode convertToNodes(Command command, Authorizer authorizer) { - return command.getPart().acceptVisitor(new CommandPartVisitor>() { + private CommandNode convertToNodes(Command command, Authorizer authorizer) { + return command.getPart().acceptVisitor(new CommandPartVisitor>() { @Override - public CommandNode visit(CommandPart part) { + public CommandNode visit(CommandPart part) { if (part instanceof SwitchPart) { SwitchPart switchPart = (SwitchPart) part; - LiteralCommandNode shortName = LiteralArgumentBuilder.literal("-" + switchPart.getShortName()).build(); - LiteralCommandNode fullName = LiteralArgumentBuilder.literal("--" + switchPart.getName()).build(); + LiteralCommandNode shortName = LiteralArgumentBuilder.literal("-" + switchPart.getShortName()).build(); + LiteralCommandNode fullName = LiteralArgumentBuilder.literal("--" + switchPart.getName()).build(); - LiteralArgumentBuilder builder = LiteralArgumentBuilder.literal("valueFlag"); + LiteralArgumentBuilder builder = LiteralArgumentBuilder.literal("valueFlag"); builder.then(shortName); @@ -154,31 +152,31 @@ public CommandNode visit(CommandPart part) { } @Override - public CommandNode visit(ArgumentPart argumentPart) { + public CommandNode visit(ArgumentPart argumentPart) { return CommandBrigadierConverter.this.visit(argumentPart); } @Override - public CommandNode visit(PartsWrapper partsWrapper) { + public CommandNode visit(PartsWrapper partsWrapper) { return CommandBrigadierConverter.this.visit(partsWrapper, this); } @Override - public CommandNode visit(SinglePartWrapper singlePartWrapper) { + public CommandNode visit(SinglePartWrapper singlePartWrapper) { return CommandBrigadierConverter.this.visit(singlePartWrapper, this); } @Override - public CommandNode visit(SubCommandPart subCommand) { + public CommandNode visit(SubCommandPart subCommand) { return CommandBrigadierConverter.this.visit(subCommand, this, authorizer); } }); } - private void handleSimpleWrapperAdd(MultipleHeadNode nodeBuilder, CommandNode node, boolean nextOptional) { + private void handleSimpleWrapperAdd(MultipleHeadNode nodeBuilder, CommandNode node, boolean nextOptional) { if (nextOptional) { - for (CommandNode child : node.getChildren()) { - ArgumentBuilder childBuilder = child.createBuilder(); + for (CommandNode child : node.getChildren()) { + ArgumentBuilder childBuilder = child.createBuilder(); childBuilder.executes(context -> 1); nodeBuilder.addChild(childBuilder.build()); @@ -188,19 +186,19 @@ private void handleSimpleWrapperAdd(MultipleHeadNode nodeBuilder, Comman } } - private boolean handleValueFlagAdd(MultipleHeadNode nodeBuilder, CommandNode node, boolean shouldAddNextToTail) { + private boolean handleValueFlagAdd(MultipleHeadNode nodeBuilder, CommandNode node, boolean shouldAddNextToTail) { nodeBuilder.addChild(node.getChildren()); if (shouldAddNextToTail) { - for (CommandNode child : node.getChildren()) { + for (CommandNode child : node.getChildren()) { nodeBuilder.addTailPointer(child); } } - Iterator> iterator = node.getChildren().iterator(); + Iterator> iterator = node.getChildren().iterator(); // at least one is present - CommandNode mainNode = iterator.next(); + CommandNode mainNode = iterator.next(); shouldAddNextToTail = true; // check if it is a SwitchPart, lol @@ -212,9 +210,9 @@ private boolean handleValueFlagAdd(MultipleHeadNode nodeBuilder, Command return shouldAddNextToTail; } - private boolean handleSimplePartAdding(MultipleHeadNode nodeBuilder, boolean shouldAddNextToTail, CommandNode node, boolean nextOptional) { + private boolean handleSimplePartAdding(MultipleHeadNode nodeBuilder, boolean shouldAddNextToTail, CommandNode node, boolean nextOptional) { if (nextOptional) { - ArgumentBuilder childBuilder = node.createBuilder(); + ArgumentBuilder childBuilder = node.createBuilder(); childBuilder.executes(context -> 1); node = childBuilder.build(); @@ -255,75 +253,30 @@ private boolean isFirstPartOptional(CommandPart part) { return false; } - // Taken from https://github.com/lucko/commodore/blob/master/src/main/java/me/lucko/commodore/file/MinecraftArgumentTypeParser.java#L117 - private static ArgumentType constructMinecraftArgumentType(NamespacedKey key, Class[] argTypes, Object... args) { - try { - final Constructor> constructor = MinecraftArgumentTypes.getClassByKey(key).getDeclaredConstructor(argTypes); - constructor.setAccessible(true); - return constructor.newInstance(args); - } catch (ReflectiveOperationException e) { - throw new RuntimeException(e); - } - } + private CommandNode toArgumentBuilder(ArgumentPart part) { + + return commandNodeMappings.getMapping(part.getClass()) + .map(map -> map.convert(part)).orElse(RequiredArgumentBuilder.argument(part.getName(), StringArgumentType.word()).build()); - private CommandNode toArgumentBuilder(ArgumentPart part) { - if (part instanceof PlayerPart || part instanceof OfflinePlayerPart) { + /*if (part instanceof PlayerPart || part instanceof OfflinePlayerPart) { return RequiredArgumentBuilder.argument(part.getName(), constructMinecraftArgumentType(NamespacedKey.minecraft("entity"), new Class[]{boolean.class, boolean.class}, true, true)).build(); - } else if (part instanceof BooleanPart) { - return RequiredArgumentBuilder.argument(part.getName(), BoolArgumentType.bool()).build(); - } else if (part instanceof IntegerPart) { - return RequiredArgumentBuilder.argument(part.getName(), IntegerArgumentType.integer()).build(); - } else if (part instanceof DoublePart) { - return RequiredArgumentBuilder.argument(part.getName(), DoubleArgumentType.doubleArg()).build(); - } else if (part instanceof LongPart) { - return RequiredArgumentBuilder.argument(part.getName(), LongArgumentType.longArg()).build(); - } else { - if (part instanceof StringPart) { - StringPart stringPart = (StringPart) part; - - if (stringPart.isConsumeAll()) { - return RequiredArgumentBuilder.argument(part.getName(), StringArgumentType.greedyString()).build(); - } else { - return RequiredArgumentBuilder.argument(part.getName(), StringArgumentType.word()).build(); - } - } - - return RequiredArgumentBuilder.argument(part.getName(), StringArgumentType.word()) - .suggests((context, builder) -> { - CommandSender sender = commodore.getBukkitSender(context.getSource()); - - Namespace namespace = Namespace.create(); - namespace.setObject(CommandSender.class, BukkitCommandManager.SENDER_NAMESPACE, sender); - - CommandContext commandContext = new SimpleCommandContext(namespace, new ArrayList<>()); - - List suggestions = part.getSuggestions(commandContext, new SimpleArgumentStack(Collections.singletonList(""))); - - if (suggestions != null) { - for (String suggestion : suggestions) { - builder.suggest(suggestion); - } - } - - return builder.buildFuture(); - }).build(); - } + }*/ } - public CommandNode visit(ArgumentPart argumentPart) { + public CommandNode visit(ArgumentPart argumentPart) { return toArgumentBuilder(argumentPart); } - public CommandNode visit(PartsWrapper partsWrapper, CommandPartVisitor> visitor) { + public CommandNode visit(PartsWrapper partsWrapper, CommandPartVisitor> visitor) { if (partsWrapper instanceof FirstMatchPart) { - LiteralArgumentBuilder builder = LiteralArgumentBuilder.literal("Wrapper"); + LiteralArgumentBuilder builder = LiteralArgumentBuilder.literal("Wrapper"); FirstMatchPart firstMatchPart = (FirstMatchPart) partsWrapper; for (CommandPart part : firstMatchPart.getParts()) { - CommandNode argumentNode = part.acceptVisitor(visitor); + CommandNode argumentNode = part.acceptVisitor(visitor); if (argumentNode == null) { continue; // not available for brigadier completition. @@ -344,7 +297,7 @@ public CommandNode visit(PartsWrapper partsWrapper, CommandPartVisitor nodeBuilder = new MultipleHeadNode<>(); + MultipleHeadNode nodeBuilder = new MultipleHeadNode<>(); boolean shouldAddNextToTail = false; ListIterator partsIterator = partsWrapper.getParts().listIterator(); @@ -352,7 +305,7 @@ public CommandNode visit(PartsWrapper partsWrapper, CommandPartVisitor node = part.acceptVisitor(visitor); + CommandNode node = part.acceptVisitor(visitor); if (node == null) { continue; // ignore this part, it's not available to be completed in brigadier. @@ -378,7 +331,7 @@ public CommandNode visit(PartsWrapper partsWrapper, CommandPartVisitor childBuilder = node.createBuilder(); + ArgumentBuilder childBuilder = node.createBuilder(); childBuilder.executes(context -> 1); node = childBuilder.build(); @@ -403,15 +356,15 @@ public CommandNode visit(PartsWrapper partsWrapper, CommandPartVisitor visit(SinglePartWrapper singlePartWrapper, CommandPartVisitor> visitor) { + public CommandNode visit(SinglePartWrapper singlePartWrapper, CommandPartVisitor> visitor) { if (singlePartWrapper instanceof ValueFlagPart) { ValueFlagPart valueFlagPart = (ValueFlagPart) singlePartWrapper; - CommandNode node = singlePartWrapper.getPart().acceptVisitor(visitor); + CommandNode node = singlePartWrapper.getPart().acceptVisitor(visitor); - LiteralCommandNode shortName = LiteralArgumentBuilder.literal("-" + valueFlagPart.getShortName()).then(node).build(); - LiteralCommandNode fullName = LiteralArgumentBuilder.literal("--" + valueFlagPart.getName()).redirect(shortName).build(); + LiteralCommandNode shortName = LiteralArgumentBuilder.literal("-" + valueFlagPart.getShortName()).then(node).build(); + LiteralCommandNode fullName = LiteralArgumentBuilder.literal("--" + valueFlagPart.getName()).redirect(shortName).build(); - LiteralArgumentBuilder builder = LiteralArgumentBuilder.literal("valueFlag"); + LiteralArgumentBuilder builder = LiteralArgumentBuilder.literal("valueFlag"); builder.then(shortName); @@ -425,21 +378,21 @@ public CommandNode visit(SinglePartWrapper singlePartWrapper, CommandPar return singlePartWrapper.getPart().acceptVisitor(visitor); } - public CommandNode visit(SubCommandPart subCommand, CommandPartVisitor> visitor, Authorizer authorizer) { - LiteralArgumentBuilder builder = LiteralArgumentBuilder.literal("Wrapper"); + public CommandNode visit(SubCommandPart subCommand, CommandPartVisitor> visitor, Authorizer authorizer) { + LiteralArgumentBuilder builder = LiteralArgumentBuilder.literal("Wrapper"); for (Command command : subCommand.getSubCommands()) { - CommandNode node = command.getPart().acceptVisitor(visitor); + CommandNode node = command.getPart().acceptVisitor(visitor); - LiteralArgumentBuilder literalNodeBuilder = LiteralArgumentBuilder.literal(command.getName()); + LiteralArgumentBuilder literalNodeBuilder = LiteralArgumentBuilder.literal(command.getName()); if (command.getPermission() != null) { - literalNodeBuilder.requires(new PermissionRequirement(command.getPermission(), authorizer, commodore)); + literalNodeBuilder.requires(new PermissionRequirement<>(command.getPermission(), authorizer, senderMapping)); } if (node != null) { if (node instanceof LiteralCommandNode && (node.getName().equals("valueFlag") || node.getName().equals("Wrapper"))) { - for (CommandNode child : node.getChildren()) { + for (CommandNode child : node.getChildren()) { literalNodeBuilder.then(child); } } else { @@ -447,12 +400,12 @@ public CommandNode visit(SubCommandPart subCommand, CommandPartVisitor literalNode = literalNodeBuilder.build(); + LiteralCommandNode literalNode = literalNodeBuilder.build(); builder = builder.then(literalNode); for (String alias : command.getAliases()) { - LiteralCommandNode aliasNode = LiteralArgumentBuilder.literal(alias).redirect(literalNode).build(); + LiteralCommandNode aliasNode = LiteralArgumentBuilder.literal(alias).redirect(literalNode).build(); builder = builder.then(aliasNode); } diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/PermissionRequirement.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/PermissionRequirement.java index 21fb4687..33504bd8 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/PermissionRequirement.java +++ b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/PermissionRequirement.java @@ -6,26 +6,28 @@ import me.lucko.commodore.Commodore; import org.bukkit.command.CommandSender; +import java.util.function.Function; import java.util.function.Predicate; -public class PermissionRequirement implements Predicate { +public class PermissionRequirement implements Predicate { private final String permission; private final Authorizer authorizer; - private final Commodore commodore; + private final Function senderMapping; - public PermissionRequirement(String permission, Authorizer authorizer, Commodore commodore) { + public PermissionRequirement(String permission, Authorizer authorizer, Function senderMapping) { this.permission = permission; this.authorizer = authorizer; - this.commodore = commodore; + this.senderMapping = senderMapping; } @Override - public boolean test(Object o) { - CommandSender sender = commodore.getBukkitSender(o); + public boolean test(T o) { + V sender = senderMapping.apply(o); Namespace namespace = Namespace.create(); - namespace.setObject(CommandSender.class, BukkitCommandManager.SENDER_NAMESPACE, sender); + //noinspection unchecked + namespace.setObject((Class) sender.getClass(), "sender", sender); return authorizer.isAuthorized(namespace, permission); } From 4d78b86d0c3a4b814a9021526ad3b2adc260f994 Mon Sep 17 00:00:00 2001 From: Damian G Date: Thu, 4 Jan 2024 02:32:51 -0600 Subject: [PATCH 23/31] refactor: Modularize the brigadier module, allowing for it to work on multiple platforms. --- brigadier/common/pom.xml | 16 ++ .../brigadier/BrigadierCommandManager.java | 218 ++++++++++++++++ .../brigadier/CommandBrigadierConverter.java | 68 ++--- .../brigadier/MultipleHeadNode.java | 0 .../brigadier/MultipleHeadNodeBuilder.java | 0 .../brigadier/PermissionRequirement.java | 3 - .../BrigadierCommandNodeMappings.java | 22 ++ .../BrigadierCommandNodeMappingsImpl.java | 0 .../mappings/CommandNodeMapping.java | 0 .../mappings/defaults/BooleanMapping.java | 0 .../mappings/defaults/DoubleMapping.java | 3 +- .../mappings/defaults/GeneralMapping.java | 15 +- .../mappings/defaults/IntegerMapping.java | 3 +- .../mappings/defaults/LongMapping.java | 3 +- .../mappings/defaults/StringMapping.java | 2 +- brigadier/paper/.gitignore | 38 +++ brigadier/paper/pom.xml | 42 ++++ .../brigadier/BrigaderProvider.java | 78 ++++++ brigadier/pom.xml | 38 ++- .../brigadier/BrigadierCommandManager.java | 236 ------------------ .../brigadier/BrigadierCommandWrapper.java | 27 -- .../BrigadierDefaultTranslationProvider.java | 12 - bukkit/commandmap/pom.xml | 1 + bukkit/common/pom.xml | 2 + bukkit/paper/pom.xml | 1 + bukkit/plugin/pom.xml | 1 + pom.xml | 2 +- 27 files changed, 466 insertions(+), 365 deletions(-) create mode 100644 brigadier/common/pom.xml create mode 100644 brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandManager.java rename brigadier/{ => common}/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java (87%) rename brigadier/{ => common}/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNode.java (100%) rename brigadier/{ => common}/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNodeBuilder.java (100%) rename brigadier/{ => common}/src/main/java/team/unnamed/commandflow/brigadier/PermissionRequirement.java (87%) rename brigadier/{ => common}/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappings.java (59%) rename brigadier/{ => common}/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappingsImpl.java (100%) rename brigadier/{ => common}/src/main/java/team/unnamed/commandflow/brigadier/mappings/CommandNodeMapping.java (100%) rename brigadier/{ => common}/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/BooleanMapping.java (100%) rename brigadier/{ => common}/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/DoubleMapping.java (91%) rename brigadier/{ => common}/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/GeneralMapping.java (78%) rename brigadier/{ => common}/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/IntegerMapping.java (91%) rename brigadier/{ => common}/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/LongMapping.java (91%) rename brigadier/{ => common}/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/StringMapping.java (100%) create mode 100644 brigadier/paper/.gitignore create mode 100644 brigadier/paper/pom.xml create mode 100644 brigadier/paper/src/main/java/team/unnamed/commandflow/brigadier/BrigaderProvider.java delete mode 100644 brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandManager.java delete mode 100644 brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandWrapper.java delete mode 100644 brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierDefaultTranslationProvider.java diff --git a/brigadier/common/pom.xml b/brigadier/common/pom.xml new file mode 100644 index 00000000..8707a62f --- /dev/null +++ b/brigadier/common/pom.xml @@ -0,0 +1,16 @@ + + + 4.0.0 + + team.unnamed + commandflow-brigadier + ${revision} + ../pom.xml + + + commandflow-brigadier-common + jar + + \ No newline at end of file diff --git a/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandManager.java b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandManager.java new file mode 100644 index 00000000..50ff3d83 --- /dev/null +++ b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandManager.java @@ -0,0 +1,218 @@ +package team.unnamed.commandflow.brigadier; + +import com.mojang.brigadier.tree.LiteralCommandNode; +import team.unnamed.commandflow.Authorizer; +import team.unnamed.commandflow.CommandContext; +import team.unnamed.commandflow.CommandManager; +import team.unnamed.commandflow.ErrorHandler; +import team.unnamed.commandflow.Namespace; +import team.unnamed.commandflow.ParseResult; +import team.unnamed.commandflow.command.Command; +import team.unnamed.commandflow.command.modifiers.FallbackCommandModifiers; +import team.unnamed.commandflow.exception.CommandException; +import team.unnamed.commandflow.executor.Executor; +import team.unnamed.commandflow.input.InputTokenizer; +import team.unnamed.commandflow.translator.Translator; +import team.unnamed.commandflow.usage.UsageBuilder; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import java.util.Set; +import java.util.function.BiConsumer; + +public class BrigadierCommandManager implements CommandManager { + private final CommandManager delegate; + private final CommandBrigadierConverter commandBrigadierConverter; + private final BiConsumer>, Command> onRegister; + private final BiConsumer>, Command> onUnregister; + + private final Map>> brigadierNodes; + + public BrigadierCommandManager(CommandManager delegate, + CommandBrigadierConverter commandBrigadierConverter, + BiConsumer>, Command> onRegister, + BiConsumer>, Command> onUnregister + ) { + this.delegate = delegate; + this.commandBrigadierConverter = commandBrigadierConverter; + this.onRegister = onRegister; + this.onUnregister = onUnregister; + + brigadierNodes = new HashMap<>(); + } + + public Map>> getBrigadierNodes() { + return brigadierNodes; + } + + @Override + public void registerCommand(Command command) { + delegate.registerCommand(command); + + List> nodes = commandBrigadierConverter.getBrigadierCommand(command); + brigadierNodes.put(command, nodes); + onRegister.accept(nodes, command); + } + + @Override + public void registerCommand(String label, Command command) { + delegate.registerCommand(label, command); + + List> nodes = commandBrigadierConverter.getBrigadierCommand(command); + brigadierNodes.put(command, nodes); + onRegister.accept(nodes, command); + } + + @Override + public void registerCommands(List commandList) { + for (Command command : commandList) { + registerCommand(command); + } + } + + @Override + public void unregisterCommand(Command command) { + delegate.unregisterCommand(command); + List> nodes = brigadierNodes.get(command); + + if (nodes == null) { + return; + } + + onUnregister.accept(nodes, command); + } + + @Override + public void unregisterCommands(List commands) { + for (Command command : commands) { + unregisterCommand(command); + } + } + + @Override + public void unregisterAll() { + Set commands = new HashSet<>(brigadierNodes.keySet()); + + for (Command command : commands) { + unregisterCommand(command); + } + } + + @Override + public Set getCommands() { + return delegate.getCommands(); + } + + @Override + public boolean exists(String commandName) { + return delegate.exists(commandName); + } + + @Override + public Authorizer getAuthorizer() { + return delegate.getAuthorizer(); + } + + @Override + public void setAuthorizer(Authorizer authorizer) { + delegate.setAuthorizer(authorizer); + } + + @Override + public InputTokenizer getInputTokenizer() { + return delegate.getInputTokenizer(); + } + + @Override + public void setInputTokenizer(InputTokenizer tokenizer) { + delegate.setInputTokenizer(tokenizer); + } + + @Override + public Executor getExecutor() { + return delegate.getExecutor(); + } + + @Override + public void setExecutor(Executor executor) { + delegate.setExecutor(executor); + } + + @Override + public Translator getTranslator() { + return delegate.getTranslator(); + } + + @Override + public void setTranslator(Translator translator) { + delegate.setTranslator(translator); + } + + @Override + public UsageBuilder getUsageBuilder() { + return delegate.getUsageBuilder(); + } + + @Override + public void setUsageBuilder(UsageBuilder usageBuilder) { + delegate.setUsageBuilder(usageBuilder); + } + + @Override + public ErrorHandler getErrorHandler() { + return delegate.getErrorHandler(); + } + + @Override + public void setErrorHandler(ErrorHandler errorHandler) { + delegate.setErrorHandler(errorHandler); + } + + @Override + public FallbackCommandModifiers getCommandModifiers() { + return delegate.getCommandModifiers(); + } + + @Override + public Optional getCommand(String commandName) { + return delegate.getCommand(commandName); + } + + @Override + public boolean execute(CommandContext commandContext) throws CommandException { + return delegate.execute(commandContext); + } + + @Override + public boolean execute(Namespace accessor, List arguments) throws CommandException { + return delegate.execute(accessor, arguments); + } + + @Override + public ParseResult parse(Namespace accessor, List arguments) throws CommandException { + return delegate.parse(accessor, arguments); + } + + @Override + public List getSuggestions(Namespace accessor, List arguments) { + return delegate.getSuggestions(accessor, arguments); + } + + @Override + public boolean execute(Namespace accessor, String line) throws CommandException { + return delegate.execute(accessor, line); + } + + @Override + public List getSuggestions(Namespace accessor, String line) { + return delegate.getSuggestions(accessor, line); + } + + @Override + public ParseResult parse(Namespace accessor, String line) throws CommandException { + return delegate.parse(accessor, line); + } +} diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java similarity index 87% rename from brigadier/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java rename to brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java index 6cc13388..7a6e3946 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java +++ b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java @@ -1,20 +1,12 @@ package team.unnamed.commandflow.brigadier; -import com.mojang.brigadier.CommandDispatcher; -import com.mojang.brigadier.arguments.StringArgumentType; import com.mojang.brigadier.builder.ArgumentBuilder; import com.mojang.brigadier.builder.LiteralArgumentBuilder; -import com.mojang.brigadier.builder.RequiredArgumentBuilder; import com.mojang.brigadier.tree.CommandNode; import com.mojang.brigadier.tree.LiteralCommandNode; -import me.lucko.commodore.Commodore; - -import org.bukkit.entity.Player; -import org.bukkit.event.EventHandler; -import org.bukkit.event.Listener; -import org.bukkit.event.player.PlayerCommandSendEvent; import team.unnamed.commandflow.Authorizer; import team.unnamed.commandflow.brigadier.mappings.BrigadierCommandNodeMappings; +import team.unnamed.commandflow.brigadier.mappings.defaults.GeneralMapping; import team.unnamed.commandflow.command.Command; import team.unnamed.commandflow.part.ArgumentPart; import team.unnamed.commandflow.part.CommandPart; @@ -28,63 +20,30 @@ import team.unnamed.commandflow.part.visitor.CommandPartVisitor; import java.util.ArrayList; -import java.util.Collection; -import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.ListIterator; -import java.util.Set; import java.util.function.Function; -import java.util.function.Predicate; -import java.util.stream.Collectors; public class CommandBrigadierConverter { - private final CommandDispatcher brigadierDispatcher; private final BrigadierCommandNodeMappings commandNodeMappings; private final Authorizer authorizer; - private final Function senderMapping; - public CommandBrigadierConverter(CommandDispatcher dispatcher, - Function senderMapping, + public CommandBrigadierConverter(Function senderMapping, BrigadierCommandNodeMappings commandNodeMappings, Authorizer authorizer) { this.commandNodeMappings = commandNodeMappings; - this.brigadierDispatcher = dispatcher; this.senderMapping = senderMapping; this.authorizer = authorizer; } - public List> registerCommand(Command command) { - List> nodes = getBrigadierCommand(command, authorizer); - - nodes.forEach(this::register); - - // Bukkit.getPluginManager().registerEvents(new CommandDataSendListener(bukkitCommand, bukkitCommand::testPermissionSilent), plugin); - - return nodes; - } - - private void register(LiteralCommandNode node) { - brigadierDispatcher.getRoot().getChildren().removeIf(tCommandNode -> - tCommandNode.getName().equals(node.getName()) - ); // remove the original - - brigadierDispatcher.getRoot().addChild(node); // register - } - - public void unregisterCommand(List> nodes) { - Collection> rootNodes = brigadierDispatcher.getRoot().getChildren(); - - rootNodes.removeAll(nodes); + public List> getBrigadierCommand(Command command) { + return getBrigadierCommand(command, false); } - public List> getBrigadierCommand(Command command, Authorizer authorizer) { - return getBrigadierCommand(command, false, authorizer); - } - - public List> getBrigadierCommand(Command command, boolean optional, Authorizer authorizer) { + public List> getBrigadierCommand(Command command, boolean optional) { LiteralArgumentBuilder argumentBuilder = LiteralArgumentBuilder.literal(command.getName()) .requires(new PermissionRequirement<>(command.getPermission(), authorizer, senderMapping)); @@ -94,7 +53,7 @@ public List> getBrigadierCommand(Command command, boolean LiteralCommandNode mainNode = argumentBuilder.build(); - CommandNode node = convertToNodes(command, authorizer); + CommandNode node = convertToNodes(command); if (node != null) { if (node instanceof LiteralCommandNode && (node.getName().equals("valueFlag") || node.getName().equals("Wrapper"))) { @@ -127,7 +86,7 @@ public List> getBrigadierCommand(Command command, boolean return argumentBuilders; } - private CommandNode convertToNodes(Command command, Authorizer authorizer) { + private CommandNode convertToNodes(Command command) { return command.getPart().acceptVisitor(new CommandPartVisitor>() { @Override public CommandNode visit(CommandPart part) { @@ -168,7 +127,7 @@ public CommandNode visit(SinglePartWrapper singlePartWrapper) { @Override public CommandNode visit(SubCommandPart subCommand) { - return CommandBrigadierConverter.this.visit(subCommand, this, authorizer); + return CommandBrigadierConverter.this.visit(subCommand, this); } }); } @@ -256,7 +215,8 @@ private boolean isFirstPartOptional(CommandPart part) { private CommandNode toArgumentBuilder(ArgumentPart part) { return commandNodeMappings.getMapping(part.getClass()) - .map(map -> map.convert(part)).orElse(RequiredArgumentBuilder.argument(part.getName(), StringArgumentType.word()).build()); + .map(map -> map.convert(part)) + .orElseGet(() -> new GeneralMapping(senderMapping).convert(part)); /*if (part instanceof PlayerPart || part instanceof OfflinePlayerPart) { return RequiredArgumentBuilder.argument(part.getName(), @@ -378,7 +338,7 @@ public CommandNode visit(SinglePartWrapper singlePartWrapper, CommandPartVisi return singlePartWrapper.getPart().acceptVisitor(visitor); } - public CommandNode visit(SubCommandPart subCommand, CommandPartVisitor> visitor, Authorizer authorizer) { + public CommandNode visit(SubCommandPart subCommand, CommandPartVisitor> visitor) { LiteralArgumentBuilder builder = LiteralArgumentBuilder.literal("Wrapper"); for (Command command : subCommand.getSubCommands()) { @@ -414,12 +374,12 @@ public CommandNode visit(SubCommandPart subCommand, CommandPartVisitor aliases; private final Set minecraftPrefixedAliases; @@ -444,5 +404,5 @@ public void onCommandSend(PlayerCommandSendEvent e) { } } - +*/ } diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNode.java b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNode.java similarity index 100% rename from brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNode.java rename to brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNode.java diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNodeBuilder.java b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNodeBuilder.java similarity index 100% rename from brigadier/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNodeBuilder.java rename to brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/MultipleHeadNodeBuilder.java diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/PermissionRequirement.java b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/PermissionRequirement.java similarity index 87% rename from brigadier/src/main/java/team/unnamed/commandflow/brigadier/PermissionRequirement.java rename to brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/PermissionRequirement.java index 33504bd8..c23feec8 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/PermissionRequirement.java +++ b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/PermissionRequirement.java @@ -2,9 +2,6 @@ import team.unnamed.commandflow.Authorizer; import team.unnamed.commandflow.Namespace; -import team.unnamed.commandflow.bukkit.BukkitCommandManager; -import me.lucko.commodore.Commodore; -import org.bukkit.command.CommandSender; import java.util.function.Function; import java.util.function.Predicate; diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappings.java b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappings.java similarity index 59% rename from brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappings.java rename to brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappings.java index b990ee85..b73e3d69 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappings.java +++ b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappings.java @@ -1,9 +1,21 @@ package team.unnamed.commandflow.brigadier.mappings; +import team.unnamed.commandflow.brigadier.mappings.defaults.BooleanMapping; +import team.unnamed.commandflow.brigadier.mappings.defaults.DoubleMapping; +import team.unnamed.commandflow.brigadier.mappings.defaults.IntegerMapping; +import team.unnamed.commandflow.brigadier.mappings.defaults.LongMapping; +import team.unnamed.commandflow.brigadier.mappings.defaults.StringMapping; +import team.unnamed.commandflow.part.defaults.BooleanPart; +import team.unnamed.commandflow.part.defaults.DoublePart; +import team.unnamed.commandflow.part.defaults.IntegerPart; +import team.unnamed.commandflow.part.defaults.LongPart; +import team.unnamed.commandflow.part.defaults.StringPart; + import java.lang.reflect.Type; import java.util.Optional; public interface BrigadierCommandNodeMappings { + /** * Obtains the {@link CommandNodeMapping} for the specified type. * @@ -29,6 +41,16 @@ default Optional> getMapping(Class type) { */ Builder toBuilder(); + static BrigadierCommandNodeMappings.Builder defaultMappings() { + return BrigadierCommandNodeMappings.builder() + .addMapping(BooleanPart.class, new BooleanMapping<>()) + .addMapping(DoublePart.class, new DoubleMapping<>()) + .addMapping(IntegerPart.class, new IntegerMapping<>()) + .addMapping(LongPart.class, new LongMapping<>()) + .addMapping(StringPart.class, new StringMapping<>()); + } + + static Builder builder() { return new BrigadierCommandNodeMappingsImpl.Builder<>(); } diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappingsImpl.java b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappingsImpl.java similarity index 100% rename from brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappingsImpl.java rename to brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappingsImpl.java diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/CommandNodeMapping.java b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/CommandNodeMapping.java similarity index 100% rename from brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/CommandNodeMapping.java rename to brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/CommandNodeMapping.java diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/BooleanMapping.java b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/BooleanMapping.java similarity index 100% rename from brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/BooleanMapping.java rename to brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/BooleanMapping.java diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/DoubleMapping.java b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/DoubleMapping.java similarity index 91% rename from brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/DoubleMapping.java rename to brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/DoubleMapping.java index 1c59c97b..09bae59c 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/DoubleMapping.java +++ b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/DoubleMapping.java @@ -1,10 +1,9 @@ package team.unnamed.commandflow.brigadier.mappings.defaults; +import team.unnamed.commandflow.brigadier.mappings.CommandNodeMapping; import com.mojang.brigadier.arguments.DoubleArgumentType; -import com.mojang.brigadier.arguments.IntegerArgumentType; import com.mojang.brigadier.builder.RequiredArgumentBuilder; import com.mojang.brigadier.tree.CommandNode; -import team.unnamed.commandflow.brigadier.mappings.CommandNodeMapping; import team.unnamed.commandflow.part.ArgumentPart; public class DoubleMapping implements CommandNodeMapping { diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/GeneralMapping.java b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/GeneralMapping.java similarity index 78% rename from brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/GeneralMapping.java rename to brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/GeneralMapping.java index 61055033..33de2045 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/GeneralMapping.java +++ b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/GeneralMapping.java @@ -1,30 +1,37 @@ package team.unnamed.commandflow.brigadier.mappings.defaults; +import team.unnamed.commandflow.brigadier.mappings.CommandNodeMapping; import com.mojang.brigadier.arguments.StringArgumentType; import com.mojang.brigadier.builder.RequiredArgumentBuilder; import com.mojang.brigadier.tree.CommandNode; -import org.bukkit.command.CommandSender; import team.unnamed.commandflow.CommandContext; import team.unnamed.commandflow.Namespace; import team.unnamed.commandflow.SimpleCommandContext; -import team.unnamed.commandflow.brigadier.mappings.CommandNodeMapping; import team.unnamed.commandflow.part.ArgumentPart; import team.unnamed.commandflow.stack.SimpleArgumentStack; import java.util.ArrayList; import java.util.Collections; import java.util.List; +import java.util.function.Function; + +public class GeneralMapping implements CommandNodeMapping { + private final Function senderMapping; + + public GeneralMapping(Function senderMapping) { + this.senderMapping = senderMapping; + } -public class GeneralMapping implements CommandNodeMapping { @Override public CommandNode convert(ArgumentPart part) { return RequiredArgumentBuilder.argument(part.getName(), StringArgumentType.word()) .suggests((context, builder) -> { T sender = context.getSource(); + V platformSender = senderMapping.apply(sender); Namespace namespace = Namespace.create(); //noinspection unchecked - namespace.setObject((Class) sender.getClass(), "sender", sender); + namespace.setObject((Class) platformSender.getClass(), "sender", platformSender); CommandContext commandContext = new SimpleCommandContext(namespace, new ArrayList<>()); diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/IntegerMapping.java b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/IntegerMapping.java similarity index 91% rename from brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/IntegerMapping.java rename to brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/IntegerMapping.java index 7bbbb93d..a1ce3629 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/IntegerMapping.java +++ b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/IntegerMapping.java @@ -1,10 +1,9 @@ package team.unnamed.commandflow.brigadier.mappings.defaults; -import com.mojang.brigadier.arguments.BoolArgumentType; +import team.unnamed.commandflow.brigadier.mappings.CommandNodeMapping; import com.mojang.brigadier.arguments.IntegerArgumentType; import com.mojang.brigadier.builder.RequiredArgumentBuilder; import com.mojang.brigadier.tree.CommandNode; -import team.unnamed.commandflow.brigadier.mappings.CommandNodeMapping; import team.unnamed.commandflow.part.ArgumentPart; public class IntegerMapping implements CommandNodeMapping { diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/LongMapping.java b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/LongMapping.java similarity index 91% rename from brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/LongMapping.java rename to brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/LongMapping.java index 9d0cc559..efc4e82b 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/LongMapping.java +++ b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/LongMapping.java @@ -1,10 +1,9 @@ package team.unnamed.commandflow.brigadier.mappings.defaults; -import com.mojang.brigadier.arguments.DoubleArgumentType; +import team.unnamed.commandflow.brigadier.mappings.CommandNodeMapping; import com.mojang.brigadier.arguments.LongArgumentType; import com.mojang.brigadier.builder.RequiredArgumentBuilder; import com.mojang.brigadier.tree.CommandNode; -import team.unnamed.commandflow.brigadier.mappings.CommandNodeMapping; import team.unnamed.commandflow.part.ArgumentPart; public class LongMapping implements CommandNodeMapping { diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/StringMapping.java b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/StringMapping.java similarity index 100% rename from brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/StringMapping.java rename to brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/StringMapping.java index 95c17925..bd47ee8a 100644 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/StringMapping.java +++ b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/defaults/StringMapping.java @@ -1,9 +1,9 @@ package team.unnamed.commandflow.brigadier.mappings.defaults; +import team.unnamed.commandflow.brigadier.mappings.CommandNodeMapping; import com.mojang.brigadier.arguments.StringArgumentType; import com.mojang.brigadier.builder.RequiredArgumentBuilder; import com.mojang.brigadier.tree.CommandNode; -import team.unnamed.commandflow.brigadier.mappings.CommandNodeMapping; import team.unnamed.commandflow.part.ArgumentPart; import team.unnamed.commandflow.part.defaults.StringPart; diff --git a/brigadier/paper/.gitignore b/brigadier/paper/.gitignore new file mode 100644 index 00000000..5ff6309b --- /dev/null +++ b/brigadier/paper/.gitignore @@ -0,0 +1,38 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### IntelliJ IDEA ### +.idea/modules.xml +.idea/jarRepositories.xml +.idea/compiler.xml +.idea/libraries/ +*.iws +*.iml +*.ipr + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store \ No newline at end of file diff --git a/brigadier/paper/pom.xml b/brigadier/paper/pom.xml new file mode 100644 index 00000000..1d091310 --- /dev/null +++ b/brigadier/paper/pom.xml @@ -0,0 +1,42 @@ + + + 4.0.0 + + team.unnamed + commandflow-brigadier + ${revision} + ../pom.xml + + + commandflow-brigadier-paper + jar + + + + team.unnamed + commandflow-bukkit-common + ${project.version} + provided + + + team.unnamed + commandflow-brigadier-common + ${project.version} + provided + + + io.papermc.paper + paper-api + 1.19.1-R0.1-SNAPSHOT + provided + + + io.papermc.paper + paper-mojangapi + 1.19.1-R0.1-SNAPSHOT + provided + + + \ No newline at end of file diff --git a/brigadier/paper/src/main/java/team/unnamed/commandflow/brigadier/BrigaderProvider.java b/brigadier/paper/src/main/java/team/unnamed/commandflow/brigadier/BrigaderProvider.java new file mode 100644 index 00000000..87221418 --- /dev/null +++ b/brigadier/paper/src/main/java/team/unnamed/commandflow/brigadier/BrigaderProvider.java @@ -0,0 +1,78 @@ +package team.unnamed.commandflow.brigadier; + +import com.destroystokyo.paper.brigadier.BukkitBrigadierCommandSource; +import com.destroystokyo.paper.event.brigadier.AsyncPlayerSendCommandsEvent; +import com.mojang.brigadier.tree.LiteralCommandNode; +import com.mojang.brigadier.tree.RootCommandNode; +import org.bukkit.Bukkit; +import org.bukkit.command.CommandSender; +import org.bukkit.event.EventHandler; +import org.bukkit.event.Listener; +import org.bukkit.plugin.Plugin; +import team.unnamed.commandflow.Authorizer; +import team.unnamed.commandflow.brigadier.mappings.BrigadierCommandNodeMappings; +import team.unnamed.commandflow.bukkit.BukkitCommandManager; +import team.unnamed.commandflow.command.Command; + +import java.util.AbstractMap; +import java.util.List; +import java.util.Map; +import java.util.function.BiConsumer; + + +public abstract class BrigaderProvider { + + public static CommandBrigadierConverter obtain(Authorizer authorizer) { + return new CommandBrigadierConverter<>( + BukkitBrigadierCommandSource::getBukkitSender, + BrigadierCommandNodeMappings.defaultMappings().build(), + authorizer + ); + } + + public static Map.Entry, SendDataListener> obtain( + BukkitCommandManager delegate, + Plugin plugin, + Authorizer authorizer) { + + BiConsumer>, Command> empty = (literalCommandNodes, command) -> { + }; + + BrigadierCommandManager commandManager = + new BrigadierCommandManager<>(delegate, obtain(authorizer), empty, empty); + + SendDataListener listener = new SendDataListener(commandManager); + Bukkit.getPluginManager().registerEvents(listener, plugin); + + return new AbstractMap.SimpleEntry<>(commandManager, listener); + } + + public static class SendDataListener implements Listener { + + private final BrigadierCommandManager commandManager; + + public SendDataListener(BrigadierCommandManager commandManager) { + this.commandManager = commandManager; + } + + @EventHandler + @SuppressWarnings("deprecation") + public void onData(AsyncPlayerSendCommandsEvent event) { + if (event.isAsynchronous() || !event.hasFiredAsync()) { + commandManager.getBrigadierNodes().forEach((command, literalCommandNodes) -> { + for (LiteralCommandNode node : literalCommandNodes) { + register(node, event.getCommandNode()); + } + }); + } + } + + private void register(LiteralCommandNode node, RootCommandNode root) { + root.getChildren().removeIf(tCommandNode -> + tCommandNode.getName().equals(node.getName()) + ); // remove the original + + root.addChild(node); // register + } + } +} diff --git a/brigadier/pom.xml b/brigadier/pom.xml index 8d90fb40..8ebc47e2 100644 --- a/brigadier/pom.xml +++ b/brigadier/pom.xml @@ -7,10 +7,15 @@ team.unnamed commandflow ${revision} - ../pom.xml + commandflow-brigadier - jar + pom + + + common + paper + @@ -21,8 +26,11 @@ spigotmc-repo https://hub.spigotmc.org/nexus/content/repositories/snapshots/ + + papermc-repo + https://repo.papermc.io/repository/maven-public/ + - team.unnamed @@ -31,28 +39,16 @@ compile - team.unnamed - commandflow-bukkit - ${project.version} + com.mojang + brigadier + 1.0.17 compile - org.spigotmc - spigot-api + com.google.guava + guava - - org.spigotmc - spigot-api - 1.13.2-R0.1-SNAPSHOT - provided - - - me.lucko - commodore - 1.10 - compile - - + \ No newline at end of file diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandManager.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandManager.java deleted file mode 100644 index 0e883b3f..00000000 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandManager.java +++ /dev/null @@ -1,236 +0,0 @@ -package team.unnamed.commandflow.brigadier; - -import com.mojang.brigadier.exceptions.CommandSyntaxException; -import com.mojang.brigadier.tree.LiteralCommandNode; -import team.unnamed.commandflow.CommandContext; -import team.unnamed.commandflow.CommandManager; -import team.unnamed.commandflow.Namespace; -import team.unnamed.commandflow.ParseResult; -import team.unnamed.commandflow.bukkit.BukkitCommandManager; -import team.unnamed.commandflow.bukkit.MessageUtils; -import team.unnamed.commandflow.command.Command; -import team.unnamed.commandflow.exception.CommandException; -import team.unnamed.commandflow.exception.CommandUsage; -import me.lucko.commodore.Commodore; -import me.lucko.commodore.CommodoreProvider; -import net.kyori.adventure.text.Component; -import net.md_5.bungee.api.chat.BaseComponent; -import org.bukkit.Bukkit; -import org.bukkit.command.CommandSender; -import org.bukkit.entity.Entity; -import org.bukkit.entity.Player; -import org.bukkit.plugin.Plugin; - -import java.lang.invoke.MethodHandle; -import java.lang.invoke.MethodHandles; -import java.lang.invoke.MethodType; -import java.util.HashMap; -import java.util.List; -import java.util.ListIterator; -import java.util.Map; -import java.util.Optional; -import java.util.logging.Level; -import java.util.stream.Collectors; - -public class BrigadierCommandManager extends BukkitCommandManager { - - private Commodore commodore; - private CommandBrigadierConverter commandBrigadierConverter; - private final Plugin plugin; - - private final Map>> brigadierNodes; - - private MethodHandle selectEntitiesHandle; - - public BrigadierCommandManager(CommandManager commandManager, Plugin plugin) { - super(commandManager, plugin.getName()); - - this.plugin = plugin; - this.brigadierNodes = new HashMap<>(); - - if (isCommodoreSupported()) { - commodore = CommodoreProvider.getCommodore(plugin); - - commandBrigadierConverter = new CommandBrigadierConverter(commodore); - } - - getTranslator().setProvider(new BrigadierDefaultTranslationProvider()); - - try { - selectEntitiesHandle = MethodHandles.lookup().findStatic(Bukkit.class, "selectEntities", - MethodType.methodType(List.class, CommandSender.class, String.class)); - } catch (NoSuchMethodException | IllegalAccessException e) { - plugin.getLogger().log(Level.SEVERE, "Failed to find selectEntities method, consider using Paper for selector functionality on commands"); - } - - } - - public BrigadierCommandManager(Plugin plugin) { - super(plugin.getName()); - - this.plugin = plugin; - this.brigadierNodes = new HashMap<>(); - - if (isCommodoreSupported()) { - commodore = CommodoreProvider.getCommodore(plugin); - - commandBrigadierConverter = new CommandBrigadierConverter(commodore); - } - - getTranslator().setProvider(new BrigadierDefaultTranslationProvider()); - - try { - selectEntitiesHandle = MethodHandles.lookup().findStatic(Bukkit.class, "selectEntities", - MethodType.methodType(List.class, CommandSender.class, String.class)); - } catch (NoSuchMethodException | IllegalAccessException e) { - plugin.getLogger().log(Level.SEVERE, "Failed to find selectEntities method, consider using Paper for selector functionality on commands"); - } - } - - private boolean isCommodoreSupported() { - return CommodoreProvider.isSupported(); - } - - @Override - public void registerCommand(Command command) { - manager.registerCommand(command); - - BrigadierCommandWrapper bukkitCommand = new BrigadierCommandWrapper(command, - this, getTranslator()); - - wrapperMap.put(command.getName(), bukkitCommand); - bukkitCommandMap.register(fallbackPrefix, bukkitCommand); - - if (isCommodoreSupported()) { - brigadierNodes.put(command, commandBrigadierConverter.registerCommand(command, plugin, bukkitCommand)); - } - } - - @Override - public void unregisterCommand(Command command) { - super.unregisterCommand(command); - - if (isCommodoreSupported()) { - List> nodes = brigadierNodes.get(command); - - if (nodes == null) { - return; - } - - commandBrigadierConverter.unregisterCommand(nodes); - } - } - - @Override - public boolean execute(Namespace accessor, List arguments) throws CommandException { - accessor.setObject(CommandManager.class, "commandManager", this); - try { - replaceSelectors(accessor, arguments); - } catch (CommandException throwable) { - try { - return getErrorHandler().handleException(accessor, throwable); - } catch (Throwable ex) { - throwOrWrap(ex); - } - } - - return super.execute(accessor, arguments); - } - - - @Override - public ParseResult parse(Namespace accessor, List arguments) throws CommandException { - try { - replaceSelectors(accessor, arguments); - } catch (CommandException throwable) { - return new ParseResult() { - @Override - public Optional getContext() { - return Optional.empty(); - } - - @Override - public Optional getException() { - return Optional.of(throwable); - } - }; - } - - return super.parse(accessor, arguments); - } - - @Override - public boolean execute(Namespace accessor, String line) throws CommandException { - List tokens = getInputTokenizer().tokenize(line); - - return execute(accessor, tokens); - } - - @Override - public ParseResult parse(Namespace accessor, String line) throws CommandException { - List tokens = getInputTokenizer().tokenize(line); - - return parse(accessor, tokens); - } - - - private void throwOrWrap(Throwable throwable) throws CommandException { - if (throwable instanceof CommandException) { - throw (CommandException) throwable; - } - - throw new CommandException(throwable); - } - - private void replaceSelectors(Namespace accessor, List arguments) throws CommandException { - if (selectEntitiesHandle != null) { - ListIterator iterator = arguments.listIterator(); - - while (iterator.hasNext()) { - String argument = iterator.next(); - - if (!argument.isEmpty() && argument.charAt(0) != '@') { - continue; - } - - CommandSender sender = accessor.getObject(CommandSender.class, BukkitCommandManager.SENDER_NAMESPACE); - try { - @SuppressWarnings("unchecked") - List entities = (List) selectEntitiesHandle.invoke(sender, argument); - - List matchedPlayers = entities.stream() - .filter(entity -> entity instanceof Player) - .map(entity -> ((Player) entity)) - .collect(Collectors.toList()); - - if (matchedPlayers.isEmpty()) { - continue; - } - - if (matchedPlayers.size() > 1) { - Component component = getTranslator().translate(Component.translatable("selector.ambiguous", Component.text(argument)), accessor); - BaseComponent[] components = MessageUtils.kyoriToBungee(component); - - MessageUtils.sendMessage(sender, components); - continue; - } - - iterator.set(matchedPlayers.get(0).getName()); - - } catch (Throwable e) { - String message = e.getMessage(); - - if (e instanceof IllegalArgumentException) { - if (e.getCause() instanceof CommandSyntaxException) { - message = e.getCause().getMessage(); - } - } - - Component component = Component.translatable("selector.parse-error", Component.text(argument), Component.text(message)); - throw new CommandUsage(component); - } - } - } - } - -} diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandWrapper.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandWrapper.java deleted file mode 100644 index 0586732d..00000000 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierCommandWrapper.java +++ /dev/null @@ -1,27 +0,0 @@ -package team.unnamed.commandflow.brigadier; - -import team.unnamed.commandflow.CommandManager; -import team.unnamed.commandflow.bukkit.BukkitCommandWrapper; -import team.unnamed.commandflow.command.Command; -import team.unnamed.commandflow.translator.Translator; -import net.kyori.adventure.text.Component; - -public class BrigadierCommandWrapper extends BukkitCommandWrapper { - - public BrigadierCommandWrapper(Command command, CommandManager dispatcher, Translator translator) { - super(command, dispatcher, translator); - } - - public CommandManager getCommandManager() { - return commandManager; - } - - public Component getPermissionMessageComponent() { - return permissionMessage; - } - - public Translator getTranslator() { - return translator; - } - -} diff --git a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierDefaultTranslationProvider.java b/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierDefaultTranslationProvider.java deleted file mode 100644 index e360053f..00000000 --- a/brigadier/src/main/java/team/unnamed/commandflow/brigadier/BrigadierDefaultTranslationProvider.java +++ /dev/null @@ -1,12 +0,0 @@ -package team.unnamed.commandflow.brigadier; - -import team.unnamed.commandflow.bukkit.BukkitDefaultTranslationProvider; - -public class BrigadierDefaultTranslationProvider extends BukkitDefaultTranslationProvider { - - public BrigadierDefaultTranslationProvider() { - translations.put("selector.parse-error", "Failed to parse selector %s:\n %s"); - translations.put("selector.ambiguous", "The selector %s is ambiguous (more than one player matched), leaving it as is."); - } - -} diff --git a/bukkit/commandmap/pom.xml b/bukkit/commandmap/pom.xml index 108427b8..e966fb73 100644 --- a/bukkit/commandmap/pom.xml +++ b/bukkit/commandmap/pom.xml @@ -11,6 +11,7 @@ commandflow-bukkit-commandmap + jar diff --git a/bukkit/common/pom.xml b/bukkit/common/pom.xml index 4a244989..7ff78360 100644 --- a/bukkit/common/pom.xml +++ b/bukkit/common/pom.xml @@ -11,4 +11,6 @@ commandflow-bukkit-common + jar + \ No newline at end of file diff --git a/bukkit/paper/pom.xml b/bukkit/paper/pom.xml index 049663bc..a816eae1 100644 --- a/bukkit/paper/pom.xml +++ b/bukkit/paper/pom.xml @@ -11,6 +11,7 @@ commandflow-bukkit-paper + jar 17 diff --git a/bukkit/plugin/pom.xml b/bukkit/plugin/pom.xml index 423c8a6b..bc36fd9f 100644 --- a/bukkit/plugin/pom.xml +++ b/bukkit/plugin/pom.xml @@ -11,6 +11,7 @@ commandflow-bukkit-plugin + jar diff --git a/pom.xml b/pom.xml index 9b69da8e..cfd77acf 100644 --- a/pom.xml +++ b/pom.xml @@ -12,8 +12,8 @@ discord bungee velocity - bukkit + brigadier pom From 713bb7a4aa1cafd7a83a7244b16013b1b6a1c53f Mon Sep 17 00:00:00 2001 From: Damian G Date: Thu, 4 Jan 2024 02:34:14 -0600 Subject: [PATCH 24/31] codestyle: Remove commented code. --- .../brigadier/CommandBrigadierConverter.java | 34 +------------------ 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java index 7a6e3946..0dfb1ff5 100644 --- a/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java +++ b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java @@ -216,7 +216,7 @@ private CommandNode toArgumentBuilder(ArgumentPart part) { return commandNodeMappings.getMapping(part.getClass()) .map(map -> map.convert(part)) - .orElseGet(() -> new GeneralMapping(senderMapping).convert(part)); + .orElseGet(() -> new GeneralMapping<>(senderMapping).convert(part)); /*if (part instanceof PlayerPart || part instanceof OfflinePlayerPart) { return RequiredArgumentBuilder.argument(part.getName(), @@ -373,36 +373,4 @@ public CommandNode visit(SubCommandPart subCommand, CommandPartVisitor aliases; - private final Set minecraftPrefixedAliases; - private final Predicate permissionTest; - - CommandDataSendListener(org.bukkit.command.Command pluginCommand, Predicate permissionTest) { - this.aliases = new HashSet<>(Commodore.getAliases(pluginCommand)); - this.minecraftPrefixedAliases = this.aliases.stream().map(alias -> "minecraft:" + alias).collect(Collectors.toSet()); - this.permissionTest = permissionTest; - } - - @EventHandler - public void onCommandSend(PlayerCommandSendEvent e) { - // always remove 'minecraft:' prefixed aliases added by craftbukkit. - // this happens because bukkit thinks our injected commands are vanilla commands. - e.getCommands().removeAll(this.minecraftPrefixedAliases); - - // remove the actual aliases if the player doesn't pass the permission test - if (!this.permissionTest.test(e.getPlayer())) { - e.getCommands().removeAll(this.aliases); - } - } - - } -*/ } From 16e22b4b12e18242e758430b7457cada60729bd0 Mon Sep 17 00:00:00 2001 From: Damian G Date: Thu, 4 Jan 2024 02:35:56 -0600 Subject: [PATCH 25/31] fix: Whoops, forgot to change this constant. --- .../src/main/java/bukkit/BukkitCommandWrapper.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bukkit/commandmap/src/main/java/bukkit/BukkitCommandWrapper.java b/bukkit/commandmap/src/main/java/bukkit/BukkitCommandWrapper.java index fd63c0d1..4404010a 100644 --- a/bukkit/commandmap/src/main/java/bukkit/BukkitCommandWrapper.java +++ b/bukkit/commandmap/src/main/java/bukkit/BukkitCommandWrapper.java @@ -6,6 +6,7 @@ import team.unnamed.commandflow.Namespace; import team.unnamed.commandflow.SimpleCommandContext; import team.unnamed.commandflow.bukkit.BukkitCommandManager; +import team.unnamed.commandflow.bukkit.BukkitCommonConstants; import team.unnamed.commandflow.exception.CommandException; import team.unnamed.commandflow.translator.Translator; import net.kyori.adventure.text.Component; @@ -59,7 +60,7 @@ public boolean execute(CommandSender commandSender, String label, String[] args) Namespace namespace = Namespace.create(); - namespace.setObject(CommandSender.class, BukkitMapCommandManager.SENDER_NAMESPACE, commandSender); + namespace.setObject(CommandSender.class, BukkitCommonConstants.SENDER_NAMESPACE, commandSender); namespace.setObject(String.class, "label", label); @@ -88,7 +89,7 @@ public List tabComplete(CommandSender sender, String alias, String[] arg argumentLine.add(0, alias); Namespace namespace = Namespace.create(); - namespace.setObject(CommandSender.class, BukkitMapCommandManager.SENDER_NAMESPACE, sender); + namespace.setObject(CommandSender.class, BukkitCommonConstants.SENDER_NAMESPACE, sender); return commandManager.getSuggestions(namespace, argumentLine); } @@ -97,7 +98,7 @@ public List tabComplete(CommandSender sender, String alias, String[] arg public boolean testPermission(@NotNull CommandSender target) { if (!testPermissionSilent(target)) { Namespace namespace = Namespace.create(); - namespace.setObject(CommandSender.class, BukkitMapCommandManager.SENDER_NAMESPACE, target); + namespace.setObject(CommandSender.class, BukkitCommonConstants.SENDER_NAMESPACE, target); Component translatedPermissionMessage = translator.translate(permissionMessage, namespace); @@ -115,7 +116,7 @@ public boolean testPermissionSilent(CommandSender target) { Authorizer authorizer = commandManager.getAuthorizer(); Namespace namespace = Namespace.create(); - namespace.setObject(CommandSender.class, BukkitMapCommandManager.SENDER_NAMESPACE, target); + namespace.setObject(CommandSender.class, BukkitCommonConstants.SENDER_NAMESPACE, target); return authorizer.isAuthorized(namespace, getPermission()); } From dc6698036ce9674c511cf460ac6ec399fe3390a5 Mon Sep 17 00:00:00 2001 From: Damian G Date: Thu, 4 Jan 2024 02:39:46 -0600 Subject: [PATCH 26/31] feat: Make the method names more specific. --- .../commandflow/brigadier/BrigaderProvider.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/brigadier/paper/src/main/java/team/unnamed/commandflow/brigadier/BrigaderProvider.java b/brigadier/paper/src/main/java/team/unnamed/commandflow/brigadier/BrigaderProvider.java index 87221418..740390cc 100644 --- a/brigadier/paper/src/main/java/team/unnamed/commandflow/brigadier/BrigaderProvider.java +++ b/brigadier/paper/src/main/java/team/unnamed/commandflow/brigadier/BrigaderProvider.java @@ -32,7 +32,6 @@ public static CommandBrigadierConverter, SendDataListener> obtain( BukkitCommandManager delegate, - Plugin plugin, Authorizer authorizer) { BiConsumer>, Command> empty = (literalCommandNodes, command) -> { @@ -42,11 +41,22 @@ public static Map.Entry(delegate, obtain(authorizer), empty, empty); SendDataListener listener = new SendDataListener(commandManager); - Bukkit.getPluginManager().registerEvents(listener, plugin); return new AbstractMap.SimpleEntry<>(commandManager, listener); } + public static Map.Entry, SendDataListener> obtainAndRegister( + BukkitCommandManager delegate, + Plugin plugin, + Authorizer authorizer) { + + Map.Entry, SendDataListener> entry = obtain(delegate, authorizer); + + Bukkit.getPluginManager().registerEvents(entry.getValue(), plugin); + + return entry; + } + public static class SendDataListener implements Listener { private final BrigadierCommandManager commandManager; From ce91ab3e6d0cdf141c40550695b1efddc5e948bc Mon Sep 17 00:00:00 2001 From: Damian G Date: Thu, 4 Jan 2024 02:39:46 -0600 Subject: [PATCH 27/31] feat: Make the method names more specific. --- .../commandflow/brigadier/BrigaderProvider.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/brigadier/paper/src/main/java/team/unnamed/commandflow/brigadier/BrigaderProvider.java b/brigadier/paper/src/main/java/team/unnamed/commandflow/brigadier/BrigaderProvider.java index 87221418..2624d340 100644 --- a/brigadier/paper/src/main/java/team/unnamed/commandflow/brigadier/BrigaderProvider.java +++ b/brigadier/paper/src/main/java/team/unnamed/commandflow/brigadier/BrigaderProvider.java @@ -32,7 +32,6 @@ public static CommandBrigadierConverter, SendDataListener> obtain( BukkitCommandManager delegate, - Plugin plugin, Authorizer authorizer) { BiConsumer>, Command> empty = (literalCommandNodes, command) -> { @@ -42,11 +41,22 @@ public static Map.Entry(delegate, obtain(authorizer), empty, empty); SendDataListener listener = new SendDataListener(commandManager); - Bukkit.getPluginManager().registerEvents(listener, plugin); return new AbstractMap.SimpleEntry<>(commandManager, listener); } + public static BrigadierCommandManager obtainAndRegister( + BukkitCommandManager delegate, + Plugin plugin, + Authorizer authorizer) { + + Map.Entry, SendDataListener> entry = obtain(delegate, authorizer); + + Bukkit.getPluginManager().registerEvents(entry.getValue(), plugin); + + return entry.getKey(); + } + public static class SendDataListener implements Listener { private final BrigadierCommandManager commandManager; From 9300913f4a18e4ac3980a81ce68c1974dabc9289 Mon Sep 17 00:00:00 2001 From: Damian G Date: Thu, 4 Jan 2024 02:59:40 -0600 Subject: [PATCH 28/31] fix: Fix infinite recursion. --- .../brigadier/mappings/BrigadierCommandNodeMappings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappings.java b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappings.java index b73e3d69..6437b4cc 100644 --- a/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappings.java +++ b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappings.java @@ -23,7 +23,7 @@ public interface BrigadierCommandNodeMappings { * @return A {@link CommandNodeMapping}, if it exists, suitable for converting a {@linkplain team.unnamed.commandflow.part.ArgumentPart} of the specified type. */ default Optional> getMapping(Class type) { - return getMapping(type); + return getMapping((Type) type); } /** From a887d4011df09bfe58b0148c259f649eca11ce4f Mon Sep 17 00:00:00 2001 From: Damian G Date: Thu, 4 Jan 2024 17:56:29 -0600 Subject: [PATCH 29/31] build: Fix transitive dependencies. --- api/pom.xml | 2 +- brigadier/common/pom.xml | 2 +- brigadier/paper/pom.xml | 2 +- brigadier/pom.xml | 5 +++-- bukkit/commandmap/pom.xml | 2 +- bukkit/common/pom.xml | 2 +- bukkit/paper/pom.xml | 2 +- bukkit/plugin/pom.xml | 2 +- bukkit/pom.xml | 2 +- bungee/pom.xml | 2 +- discord/pom.xml | 2 +- pom.xml | 2 +- velocity/pom.xml | 2 +- 13 files changed, 15 insertions(+), 14 deletions(-) diff --git a/api/pom.xml b/api/pom.xml index 1f749263..d6a9edd8 100644 --- a/api/pom.xml +++ b/api/pom.xml @@ -6,7 +6,7 @@ team.unnamed commandflow - ${revision} + 0.7.0 ../pom.xml commandflow-api diff --git a/brigadier/common/pom.xml b/brigadier/common/pom.xml index 8707a62f..b14b7aa3 100644 --- a/brigadier/common/pom.xml +++ b/brigadier/common/pom.xml @@ -6,7 +6,7 @@ team.unnamed commandflow-brigadier - ${revision} + 0.7.0 ../pom.xml diff --git a/brigadier/paper/pom.xml b/brigadier/paper/pom.xml index 1d091310..15456c19 100644 --- a/brigadier/paper/pom.xml +++ b/brigadier/paper/pom.xml @@ -6,7 +6,7 @@ team.unnamed commandflow-brigadier - ${revision} + 0.7.0 ../pom.xml diff --git a/brigadier/pom.xml b/brigadier/pom.xml index 8ebc47e2..20663038 100644 --- a/brigadier/pom.xml +++ b/brigadier/pom.xml @@ -6,7 +6,8 @@ team.unnamed commandflow - ${revision} + 0.7.0 + ../pom.xml commandflow-brigadier @@ -35,7 +36,7 @@ team.unnamed commandflow-api - ${revision} + ${project.version} compile diff --git a/bukkit/commandmap/pom.xml b/bukkit/commandmap/pom.xml index e966fb73..60748d18 100644 --- a/bukkit/commandmap/pom.xml +++ b/bukkit/commandmap/pom.xml @@ -6,7 +6,7 @@ team.unnamed commandflow-bukkit - ${revision} + 0.7.0 ../pom.xml diff --git a/bukkit/common/pom.xml b/bukkit/common/pom.xml index 7ff78360..c0e5ff50 100644 --- a/bukkit/common/pom.xml +++ b/bukkit/common/pom.xml @@ -6,7 +6,7 @@ team.unnamed commandflow-bukkit - ${revision} + 0.7.0 ../pom.xml diff --git a/bukkit/paper/pom.xml b/bukkit/paper/pom.xml index a816eae1..5ca6b266 100644 --- a/bukkit/paper/pom.xml +++ b/bukkit/paper/pom.xml @@ -6,7 +6,7 @@ team.unnamed commandflow-bukkit - ${revision} + 0.7.0 ../pom.xml diff --git a/bukkit/plugin/pom.xml b/bukkit/plugin/pom.xml index bc36fd9f..ec4d7128 100644 --- a/bukkit/plugin/pom.xml +++ b/bukkit/plugin/pom.xml @@ -6,7 +6,7 @@ team.unnamed commandflow-bukkit - ${revision} + 0.7.0 ../pom.xml diff --git a/bukkit/pom.xml b/bukkit/pom.xml index f1b4e6f7..38b030e6 100644 --- a/bukkit/pom.xml +++ b/bukkit/pom.xml @@ -6,7 +6,7 @@ team.unnamed commandflow - ${revision} + 0.7.0 ../pom.xml diff --git a/bungee/pom.xml b/bungee/pom.xml index 53e3e006..84c13f5a 100644 --- a/bungee/pom.xml +++ b/bungee/pom.xml @@ -6,7 +6,7 @@ team.unnamed commandflow - ${revision} + 0.7.0 commandflow-bungee diff --git a/discord/pom.xml b/discord/pom.xml index 5068163a..efeb7d7e 100644 --- a/discord/pom.xml +++ b/discord/pom.xml @@ -6,7 +6,7 @@ team.unnamed commandflow - ${revision} + 0.7.0 ../pom.xml commandflow-discord diff --git a/pom.xml b/pom.xml index cfd77acf..2724a8ad 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ team.unnamed commandflow - ${revision} + 0.7.0 api discord diff --git a/velocity/pom.xml b/velocity/pom.xml index 927a722e..c3a41267 100644 --- a/velocity/pom.xml +++ b/velocity/pom.xml @@ -6,7 +6,7 @@ team.unnamed commandflow - ${revision} + 0.7.0 ../pom.xml commandflow-velocity From ed1fdb4dffbf8b44bb60746f476ff393064caef5 Mon Sep 17 00:00:00 2001 From: Damian G Date: Thu, 4 Jan 2024 17:56:49 -0600 Subject: [PATCH 30/31] fix: Actually fix the transitive dependencies. --- .../brigadier/CommandBrigadierConverter.java | 2 +- .../mappings/BrigadierCommandNodeMappings.java | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java index 0dfb1ff5..96ed65e1 100644 --- a/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java +++ b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/CommandBrigadierConverter.java @@ -214,7 +214,7 @@ private boolean isFirstPartOptional(CommandPart part) { private CommandNode toArgumentBuilder(ArgumentPart part) { - return commandNodeMappings.getMapping(part.getClass()) + return commandNodeMappings.getMappingByClass(part.getClass()) .map(map -> map.convert(part)) .orElseGet(() -> new GeneralMapping<>(senderMapping).convert(part)); diff --git a/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappings.java b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappings.java index 6437b4cc..d18670b8 100644 --- a/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappings.java +++ b/brigadier/common/src/main/java/team/unnamed/commandflow/brigadier/mappings/BrigadierCommandNodeMappings.java @@ -22,8 +22,8 @@ public interface BrigadierCommandNodeMappings { * @param type The type to get a conversion mapping for. * @return A {@link CommandNodeMapping}, if it exists, suitable for converting a {@linkplain team.unnamed.commandflow.part.ArgumentPart} of the specified type. */ - default Optional> getMapping(Class type) { - return getMapping((Type) type); + default Optional> getMappingByClass(Class type) { + return getMapping(type); } /** @@ -43,11 +43,11 @@ default Optional> getMapping(Class type) { static BrigadierCommandNodeMappings.Builder defaultMappings() { return BrigadierCommandNodeMappings.builder() - .addMapping(BooleanPart.class, new BooleanMapping<>()) - .addMapping(DoublePart.class, new DoubleMapping<>()) - .addMapping(IntegerPart.class, new IntegerMapping<>()) - .addMapping(LongPart.class, new LongMapping<>()) - .addMapping(StringPart.class, new StringMapping<>()); + .addMappingByClass(BooleanPart.class, new BooleanMapping<>()) + .addMappingByClass(DoublePart.class, new DoubleMapping<>()) + .addMappingByClass(IntegerPart.class, new IntegerMapping<>()) + .addMappingByClass(LongPart.class, new LongMapping<>()) + .addMappingByClass(StringPart.class, new StringMapping<>()); } @@ -56,7 +56,7 @@ static Builder builder() { } interface Builder { - default Builder addMapping(Class type, CommandNodeMapping mapping) { + default Builder addMappingByClass(Class type, CommandNodeMapping mapping) { return addMapping(type, mapping); } From 150d65d0cfdc8d15fe84db4d908236592cf3526d Mon Sep 17 00:00:00 2001 From: Damian G Date: Sat, 6 Jan 2024 14:56:10 -0600 Subject: [PATCH 31/31] fix: Add support for PluginIdentifiableCommands. --- .../java/bukkit/BukkitMapCommandManager.java | 27 ++++++++++++++++--- .../bukkit/PluginBukkitCommandWrapper.java | 26 ++++++++++++++++++ 2 files changed, 50 insertions(+), 3 deletions(-) create mode 100644 bukkit/commandmap/src/main/java/bukkit/PluginBukkitCommandWrapper.java diff --git a/bukkit/commandmap/src/main/java/bukkit/BukkitMapCommandManager.java b/bukkit/commandmap/src/main/java/bukkit/BukkitMapCommandManager.java index 71891f8f..8cec3c2e 100644 --- a/bukkit/commandmap/src/main/java/bukkit/BukkitMapCommandManager.java +++ b/bukkit/commandmap/src/main/java/bukkit/BukkitMapCommandManager.java @@ -1,5 +1,7 @@ package bukkit; +import org.bukkit.plugin.Plugin; +import org.jetbrains.annotations.NotNull; import team.unnamed.commandflow.CommandManager; import team.unnamed.commandflow.SimpleCommandManager; import team.unnamed.commandflow.bukkit.BukkitAuthorizer; @@ -18,11 +20,23 @@ public class BukkitMapCommandManager extends BukkitCommandManager { protected CommandMap bukkitCommandMap; + @NotNull protected final String fallbackPrefix; + protected Plugin plugin; + + protected boolean usePluginCommands = false; + protected final Map wrapperMap; - public BukkitMapCommandManager(CommandManager delegate, String fallbackPrefix) { + public BukkitMapCommandManager(CommandManager delegate, Plugin plugin) { + this(delegate, plugin.getName()); + + this.plugin = plugin; + usePluginCommands = true; + } + + public BukkitMapCommandManager(CommandManager delegate, @NotNull String fallbackPrefix) { super(delegate); this.fallbackPrefix = fallbackPrefix; wrapperMap = new HashMap<>(); @@ -35,9 +49,15 @@ public BukkitMapCommandManager(CommandManager delegate, String fallbackPrefix) { } catch (NoSuchFieldException | IllegalAccessException ex) { Bukkit.getLogger().log(Level.SEVERE, "Failed to get command map: ", ex); } + } + public BukkitMapCommandManager(Plugin plugin) { + this(plugin.getName()); + this.plugin = plugin; + this.usePluginCommands = true; } + public BukkitMapCommandManager(String fallbackPrefix) { this(new SimpleCommandManager(), fallbackPrefix); @@ -48,8 +68,9 @@ public BukkitMapCommandManager(String fallbackPrefix) { @Override protected void _register(Command command) { - BukkitCommandWrapper bukkitCommand = new BukkitCommandWrapper(command, - this, getTranslator()); + BukkitCommandWrapper bukkitCommand = usePluginCommands ? + new PluginBukkitCommandWrapper(command, this, getTranslator(), plugin) : + new BukkitCommandWrapper(command, this, getTranslator()); for (String alias : command.getAliases()) { registerCommand(fallbackPrefix + ":" + alias, command); diff --git a/bukkit/commandmap/src/main/java/bukkit/PluginBukkitCommandWrapper.java b/bukkit/commandmap/src/main/java/bukkit/PluginBukkitCommandWrapper.java new file mode 100644 index 00000000..c8c3dc12 --- /dev/null +++ b/bukkit/commandmap/src/main/java/bukkit/PluginBukkitCommandWrapper.java @@ -0,0 +1,26 @@ +package bukkit; + +import org.bukkit.command.PluginIdentifiableCommand; +import org.bukkit.plugin.Plugin; +import team.unnamed.commandflow.bukkit.BukkitCommandManager; +import team.unnamed.commandflow.command.Command; +import team.unnamed.commandflow.translator.Translator; + +public class PluginBukkitCommandWrapper extends BukkitCommandWrapper implements PluginIdentifiableCommand { + + private final Plugin plugin; + + public PluginBukkitCommandWrapper(Command command, + BukkitCommandManager dispatcher, + Translator translator, + Plugin plugin) { + super(command, dispatcher, translator); + + this.plugin = plugin; + } + + @Override + public Plugin getPlugin() { + return plugin; + } +}