diff --git a/server/src/main/java/dev/plex/command/PlexBrigadierCommand.java b/server/src/main/java/dev/plex/command/PlexBrigadierCommand.java index 476f76f..d02cc1f 100644 --- a/server/src/main/java/dev/plex/command/PlexBrigadierCommand.java +++ b/server/src/main/java/dev/plex/command/PlexBrigadierCommand.java @@ -34,7 +34,6 @@ import java.util.*; /** * @author Taah - * @project Plex * @since 2:27 PM [07-07-2023] */ public abstract class PlexBrigadierCommand diff --git a/server/src/main/java/dev/plex/command/annotation/Argument.java b/server/src/main/java/dev/plex/command/annotation/Argument.java index aa99ef3..99695ec 100644 --- a/server/src/main/java/dev/plex/command/annotation/Argument.java +++ b/server/src/main/java/dev/plex/command/annotation/Argument.java @@ -9,7 +9,6 @@ import java.lang.annotation.Target; /** * @author Taah - * @project Plex * @since 4:31 AM [08-07-2023] */ @Retention(RetentionPolicy.RUNTIME) diff --git a/server/src/main/java/dev/plex/command/annotation/CommandName.java b/server/src/main/java/dev/plex/command/annotation/CommandName.java index 470d877..9f66103 100644 --- a/server/src/main/java/dev/plex/command/annotation/CommandName.java +++ b/server/src/main/java/dev/plex/command/annotation/CommandName.java @@ -7,7 +7,6 @@ import java.lang.annotation.Target; /** * @author Taah - * @project Plex * @since 4:54 PM [07-07-2023] */ diff --git a/server/src/main/java/dev/plex/command/annotation/CommandPermission.java b/server/src/main/java/dev/plex/command/annotation/CommandPermission.java index c5c0212..cfa65d6 100644 --- a/server/src/main/java/dev/plex/command/annotation/CommandPermission.java +++ b/server/src/main/java/dev/plex/command/annotation/CommandPermission.java @@ -7,7 +7,6 @@ import java.lang.annotation.Target; /** * @author Taah - * @project Plex * @since 4:54 PM [07-07-2023] */ diff --git a/server/src/main/java/dev/plex/command/annotation/CommandSource.java b/server/src/main/java/dev/plex/command/annotation/CommandSource.java index 93fdd74..fb590f1 100644 --- a/server/src/main/java/dev/plex/command/annotation/CommandSource.java +++ b/server/src/main/java/dev/plex/command/annotation/CommandSource.java @@ -9,7 +9,6 @@ import java.lang.annotation.Target; /** * @author Taah - * @project Plex * @since 7:08 AM [09-07-2023] */ @Retention(RetentionPolicy.RUNTIME) diff --git a/server/src/main/java/dev/plex/command/annotation/Default.java b/server/src/main/java/dev/plex/command/annotation/Default.java index edfa9c5..094f767 100644 --- a/server/src/main/java/dev/plex/command/annotation/Default.java +++ b/server/src/main/java/dev/plex/command/annotation/Default.java @@ -7,7 +7,6 @@ import java.lang.annotation.Target; /** * @author Taah - * @project Plex * @since 4:54 PM [07-07-2023] */ diff --git a/server/src/main/java/dev/plex/command/annotation/SubCommand.java b/server/src/main/java/dev/plex/command/annotation/SubCommand.java index f6a93c9..bf9a3b7 100644 --- a/server/src/main/java/dev/plex/command/annotation/SubCommand.java +++ b/server/src/main/java/dev/plex/command/annotation/SubCommand.java @@ -7,7 +7,6 @@ import java.lang.annotation.Target; /** * @author Taah - * @project Plex * @since 4:46 PM [07-07-2023] */ diff --git a/server/src/main/java/dev/plex/command/impl/brigadier/AdminChatCMD.java b/server/src/main/java/dev/plex/command/impl/brigadier/AdminChatCMD.java index d3e9cea..36034b1 100644 --- a/server/src/main/java/dev/plex/command/impl/brigadier/AdminChatCMD.java +++ b/server/src/main/java/dev/plex/command/impl/brigadier/AdminChatCMD.java @@ -9,14 +9,12 @@ import dev.plex.command.annotation.Default; import dev.plex.command.source.RequiredCommandSource; import dev.plex.player.PlexPlayer; import org.apache.commons.lang3.BooleanUtils; -import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import static dev.plex.util.PlexUtils.messageComponent; /** * @author Taah - * @project Plex * @since 6:54 AM [09-07-2023] */ @CommandName({"adminchat", "o", "sc", "ac", "staffchat"}) diff --git a/server/src/main/java/dev/plex/command/impl/brigadier/PlexBrigadierCMD.java b/server/src/main/java/dev/plex/command/impl/brigadier/PlexBrigadierCMD.java index 544a718..e4bf539 100644 --- a/server/src/main/java/dev/plex/command/impl/brigadier/PlexBrigadierCMD.java +++ b/server/src/main/java/dev/plex/command/impl/brigadier/PlexBrigadierCMD.java @@ -1,5 +1,6 @@ package dev.plex.command.impl.brigadier; +import com.mojang.brigadier.arguments.StringArgumentType; import dev.plex.command.PlexBrigadierCommand; import dev.plex.command.annotation.*; import dev.plex.command.exception.CommandFailException; @@ -14,7 +15,6 @@ import java.util.stream.Collectors; /** * @author Taah - * @project Plex * @since 3:46 PM [07-07-2023] */ @CommandName({"plex", "pplexx"}) @@ -48,13 +48,13 @@ public class PlexBrigadierCMD extends PlexBrigadierCommand send(sender, "Plex successfully reloaded."); } - /*@SubCommand("test yourmom") + @SubCommand("test yourmom") @CommandPermission("plex.test") - public void testPlex(CommandSender sender, @Argument(value = "test", min = 0, max = 100) int i, @Argument(value = "test2", min = 0, max = 100) int j*//*, @Argument(value = "param", argumentType = StringArgumentType.StringType.GREEDY_PHRASE) String param*//*) { -// send(sender, String.valueOf(i)); + public void testPlex(CommandSender sender, @Argument(value = "test", min = 0, max = 100) int i, @Argument(value = "test2", min = 0, max = 100) int j, @Argument(value = "param", argumentType = StringArgumentType.StringType.GREEDY_PHRASE) String param) { + send(sender, String.valueOf(i)); send(sender, String.valueOf(j)); // send(sender, param); - }*/ + } @SubCommand("redis") @CommandPermission("plex.redis") @@ -85,14 +85,14 @@ public class PlexBrigadierCMD extends PlexBrigadierCommand send(sender, mmString("All modules reloaded!")); } - /*@SubCommand("modules testing more args") + @SubCommand("modules testing more args") @CommandPermission("plex.modules.reload") - public void viewViewModules(CommandSender sender) + public void stupidTesting(CommandSender sender) { send(sender, "leave me alone"); // send(sender, mmString("Modules (" + plugin.getModuleManager().getModules().size() + "): " + StringUtils.join(plugin.getModuleManager().getModules().stream().map(PlexModule::getPlexModuleFile).map(PlexModuleFile::getName).collect(Collectors.toList()), ", "))); - }*/ + } @Default public void defaultCommand(CommandSender sender)