Skip to content

Commit

Permalink
Revert "Changed group"
Browse files Browse the repository at this point in the history
This reverts commit ef0d4b7.
  • Loading branch information
Mqzn committed Sep 17, 2024
1 parent e518a8f commit 6435d79
Show file tree
Hide file tree
Showing 266 changed files with 1,113 additions and 1,103 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dependencies {
```xml

<dependency>
<groupId>dev.velix</groupId>
<groupId>dev.velix.imperat</groupId>
<artifactId>Imperat-PLATFORM</artifactId>
<version>VERSION</version>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package dev.velix.adventure;
package dev.velix.imperat.adventure;

import dev.velix.context.Source;
import dev.velix.imperat.context.Source;
import net.kyori.adventure.audience.Audience;
import net.kyori.adventure.text.ComponentLike;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.velix.adventure;
package dev.velix.imperat.adventure;

import net.kyori.adventure.audience.Audience;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package dev.velix.adventure;
package dev.velix.imperat.adventure;

import dev.velix.context.Source;
import dev.velix.imperat.context.Source;
import net.kyori.adventure.audience.Audience;
import net.kyori.adventure.text.ComponentLike;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package dev.velix;
package dev.velix.imperat;

import com.mojang.brigadier.arguments.ArgumentType;
import dev.velix.command.parameters.CommandParameter;
import dev.velix.util.TypeWrap;
import dev.velix.imperat.command.parameters.CommandParameter;
import dev.velix.imperat.util.TypeWrap;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package dev.velix;
package dev.velix.imperat;

import com.mojang.brigadier.arguments.ArgumentType;
import dev.velix.command.Command;
import dev.velix.command.parameters.CommandParameter;
import dev.velix.context.Source;
import dev.velix.imperat.command.Command;
import dev.velix.imperat.command.parameters.CommandParameter;
import dev.velix.imperat.context.Source;
import org.jetbrains.annotations.NotNull;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package dev.velix;
package dev.velix.imperat;

import com.mojang.brigadier.Command;
import com.mojang.brigadier.builder.ArgumentBuilder;
import com.mojang.brigadier.suggestion.SuggestionProvider;
import com.mojang.brigadier.tree.ArgumentCommandNode;
import com.mojang.brigadier.tree.CommandNode;
import dev.velix.context.Source;
import dev.velix.imperat.context.Source;

import java.util.function.Predicate;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.velix;
package dev.velix.imperat;

import com.mojang.brigadier.Command;
import com.mojang.brigadier.suggestion.SuggestionProvider;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package dev.velix;
package dev.velix.imperat;

import dev.velix.command.Command;
import dev.velix.imperat.command.Command;

public interface BukkitCommand {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package dev.velix;
package dev.velix.imperat;

import dev.velix.command.ContextResolverFactory;
import dev.velix.imperat.command.ContextResolverFactory;

public interface BukkitContextResolverFactory extends ContextResolverFactory<BukkitSource> {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
package dev.velix;
package dev.velix.imperat;

import dev.velix.adventure.AdventureProvider;
import dev.velix.adventure.BukkitAdventure;
import dev.velix.adventure.CastingAdventure;
import dev.velix.adventure.EmptyAdventure;
import dev.velix.brigadier.BukkitBrigadierManager;
import dev.velix.command.BaseImperat;
import dev.velix.command.Command;
import dev.velix.exception.InvalidUUIDException;
import dev.velix.exception.UnknownOfflinePlayerException;
import dev.velix.exception.UnknownPlayerException;
import dev.velix.exception.UnknownWorldException;
import dev.velix.resolvers.BukkitPermissionResolver;
import dev.velix.resolvers.PermissionResolver;
import dev.velix.util.ImperatDebugger;
import dev.velix.util.Preconditions;
import dev.velix.util.TypeUtility;
import dev.velix.util.reflection.Reflections;
import dev.velix.imperat.adventure.AdventureProvider;
import dev.velix.imperat.adventure.BukkitAdventure;
import dev.velix.imperat.adventure.CastingAdventure;
import dev.velix.imperat.adventure.EmptyAdventure;
import dev.velix.imperat.brigadier.BukkitBrigadierManager;
import dev.velix.imperat.command.BaseImperat;
import dev.velix.imperat.command.Command;
import dev.velix.imperat.exception.InvalidUUIDException;
import dev.velix.imperat.exception.UnknownOfflinePlayerException;
import dev.velix.imperat.exception.UnknownPlayerException;
import dev.velix.imperat.exception.UnknownWorldException;
import dev.velix.imperat.resolvers.BukkitPermissionResolver;
import dev.velix.imperat.resolvers.PermissionResolver;
import dev.velix.imperat.util.ImperatDebugger;
import dev.velix.imperat.util.Preconditions;
import dev.velix.imperat.util.TypeUtility;
import dev.velix.imperat.util.reflection.Reflections;
import net.kyori.adventure.audience.Audience;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package dev.velix;
package dev.velix.imperat;

import dev.velix.adventure.AdventureProvider;
import dev.velix.context.Source;
import dev.velix.imperat.adventure.AdventureProvider;
import dev.velix.imperat.context.Source;
import net.kyori.adventure.text.ComponentLike;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package dev.velix;
package dev.velix.imperat;


import dev.velix.command.parameters.CommandParameter;
import dev.velix.context.SuggestionContext;
import dev.velix.resolvers.BukkitSuggestionResolver;
import dev.velix.util.TypeWrap;
import dev.velix.imperat.command.parameters.CommandParameter;
import dev.velix.imperat.context.SuggestionContext;
import dev.velix.imperat.resolvers.BukkitSuggestionResolver;
import dev.velix.imperat.util.TypeWrap;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
import org.bukkit.entity.Player;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package dev.velix;
package dev.velix.imperat;

import dev.velix.command.CommandUsage;
import dev.velix.imperat.command.CommandUsage;

public interface BukkitUsage {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package dev.velix;
package dev.velix.imperat;

import dev.velix.util.ImperatDebugger;
import dev.velix.util.reflection.FieldAccessor;
import dev.velix.util.reflection.Reflections;
import dev.velix.imperat.util.ImperatDebugger;
import dev.velix.imperat.util.reflection.FieldAccessor;
import dev.velix.imperat.util.reflection.Reflections;
import org.bukkit.Bukkit;
import org.bukkit.command.CommandMap;
import org.bukkit.command.SimpleCommandMap;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package dev.velix;
package dev.velix.imperat;

import dev.velix.command.Command;
import dev.velix.command.CommandUsage;
import dev.velix.util.ImperatDebugger;
import dev.velix.imperat.command.Command;
import dev.velix.imperat.command.CommandUsage;
import dev.velix.imperat.util.ImperatDebugger;
import org.bukkit.command.CommandSender;
import org.bukkit.command.PluginIdentifiableCommand;
import org.bukkit.plugin.Plugin;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.velix.adventure;
package dev.velix.imperat.adventure;

import net.kyori.adventure.audience.Audience;
import net.kyori.adventure.platform.bukkit.BukkitAudiences;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
package dev.velix.brigadier;
package dev.velix.imperat.brigadier;

import com.mojang.brigadier.LiteralMessage;
import com.mojang.brigadier.Message;
import com.mojang.brigadier.arguments.ArgumentType;
import com.mojang.brigadier.arguments.StringArgumentType;
import com.mojang.brigadier.suggestion.SuggestionProvider;
import dev.velix.*;
import dev.velix.command.Command;
import dev.velix.command.CommandUsage;
import dev.velix.command.Description;
import dev.velix.command.parameters.CommandParameter;
import dev.velix.command.parameters.FlagParameter;
import dev.velix.command.suggestions.CompletionArg;
import dev.velix.commodore.Commodore;
import dev.velix.commodore.CommodoreProvider;
import dev.velix.context.ArgumentQueue;
import dev.velix.context.CommandFlag;
import dev.velix.context.SuggestionContext;
import dev.velix.resolvers.SuggestionResolver;
import dev.velix.imperat.*;
import dev.velix.imperat.command.Command;
import dev.velix.imperat.command.CommandUsage;
import dev.velix.imperat.command.Description;
import dev.velix.imperat.command.parameters.CommandParameter;
import dev.velix.imperat.command.parameters.FlagParameter;
import dev.velix.imperat.command.suggestions.CompletionArg;
import dev.velix.imperat.commodore.Commodore;
import dev.velix.imperat.commodore.CommodoreProvider;
import dev.velix.imperat.context.ArgumentQueue;
import dev.velix.imperat.context.CommandFlag;
import dev.velix.imperat.context.SuggestionContext;
import dev.velix.imperat.resolvers.SuggestionResolver;
import org.bukkit.OfflinePlayer;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
Expand All @@ -27,7 +27,7 @@

import static com.mojang.brigadier.builder.LiteralArgumentBuilder.literal;
import static com.mojang.brigadier.builder.RequiredArgumentBuilder.argument;
import static dev.velix.commodore.CommodoreProvider.isSupported;
import static dev.velix.imperat.commodore.CommodoreProvider.isSupported;

public final class BukkitBrigadierManager implements BrigadierManager<BukkitSource> {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package dev.velix.brigadier;
package dev.velix.imperat.brigadier;

import com.mojang.brigadier.arguments.*;
import dev.velix.ArgumentTypeResolver;
import dev.velix.command.parameters.NumericRange;
import dev.velix.util.TypeUtility;
import dev.velix.imperat.ArgumentTypeResolver;
import dev.velix.imperat.command.parameters.NumericRange;
import dev.velix.imperat.util.TypeUtility;
import org.jetbrains.annotations.Nullable;

import java.lang.reflect.Type;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package dev.velix.brigadier;
package dev.velix.imperat.brigadier;

import com.mojang.brigadier.arguments.ArgumentType;
import dev.velix.BukkitUtil;
import dev.velix.imperat.BukkitUtil;
import lombok.SneakyThrows;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
* SOFTWARE.
*/

package dev.velix.commodore;
package dev.velix.imperat.commodore;

import com.mojang.brigadier.suggestion.SuggestionProvider;
import com.mojang.brigadier.tree.ArgumentCommandNode;
import com.mojang.brigadier.tree.CommandNode;
import com.mojang.brigadier.tree.LiteralCommandNode;
import com.mojang.brigadier.tree.RootCommandNode;
import dev.velix.BukkitUtil;
import dev.velix.util.Preconditions;
import dev.velix.imperat.BukkitUtil;
import dev.velix.imperat.util.Preconditions;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.command.PluginCommand;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* SOFTWARE.
*/

package dev.velix.commodore;
package dev.velix.imperat.commodore;

/**
* Exception thrown when the server does not support Brigadier.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* SOFTWARE.
*/

package dev.velix.commodore;
package dev.velix.imperat.commodore;

import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
* SOFTWARE.
*/

package dev.velix.commodore;
package dev.velix.imperat.commodore;

import dev.velix.util.ImperatDebugger;
import dev.velix.imperat.util.ImperatDebugger;
import org.bukkit.plugin.Plugin;
import org.jetbrains.annotations.Nullable;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* SOFTWARE.
*/

package dev.velix.commodore;
package dev.velix.imperat.commodore;

import com.destroystokyo.paper.event.brigadier.AsyncPlayerSendCommandsEvent;
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
* SOFTWARE.
*/

package dev.velix.commodore;
package dev.velix.imperat.commodore;

import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
import com.mojang.brigadier.suggestion.SuggestionProvider;
import com.mojang.brigadier.tree.LiteralCommandNode;
import com.mojang.brigadier.tree.RootCommandNode;
import dev.velix.BukkitUtil;
import dev.velix.imperat.BukkitUtil;
import org.bukkit.Bukkit;
import org.bukkit.command.Command;
import org.bukkit.entity.Player;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package dev.velix.exception;
package dev.velix.imperat.exception;

import lombok.Getter;

@Getter
public class InvalidUUIDException extends ImperatException {

private final String raw;

public InvalidUUIDException(final String raw) {
this.raw = raw;
}


public String getRaw() {
return raw;
}

}
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package dev.velix.exception;
package dev.velix.imperat.exception;

import lombok.Getter;

@Getter
public class UnknownOfflinePlayerException extends ImperatException {

private final String name;

public UnknownOfflinePlayerException(final String name) {
this.name = name;
}


public String getName() {
return name;
}

}
Loading

0 comments on commit 6435d79

Please sign in to comment.