2022-03-06 01:25:34 +00:00
|
|
|
package dev.plex.command;
|
|
|
|
|
|
|
|
import dev.plex.command.annotation.CommandParameters;
|
|
|
|
import dev.plex.command.annotation.CommandPermissions;
|
|
|
|
import net.kyori.adventure.text.Component;
|
|
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
import org.bukkit.entity.Player;
|
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
|
2022-03-06 06:39:02 +00:00
|
|
|
@CommandParameters(name = "examplemodule", description = "An example command provided by Plex's example module")
|
2023-09-08 23:53:25 +00:00
|
|
|
@CommandPermissions(permission = "plex.module.command")
|
2022-03-06 01:25:34 +00:00
|
|
|
public class ExampleCommand extends PlexCommand
|
|
|
|
{
|
|
|
|
@Override
|
2022-03-06 06:39:02 +00:00
|
|
|
protected Component execute(@NotNull CommandSender commandSender, @Nullable Player player, @NotNull String[] strings)
|
|
|
|
{
|
2022-03-06 01:25:34 +00:00
|
|
|
return Component.text("Example module command");
|
|
|
|
}
|
|
|
|
}
|