From b19c027a0f4457d12a30b7157f00ccb3d40326f5 Mon Sep 17 00:00:00 2001 From: Telesphoreo Date: Fri, 25 Aug 2023 19:37:40 -0500 Subject: [PATCH] Fix compile errors --- build.gradle.kts | 8 ++++---- .../plex/module}/nickmm/NickMiniMessageModule.java | 6 +++--- .../plex/module}/nickmm/command/NickMMCommand.java | 5 ++--- src/main/resources/module.yml | 4 ++-- 4 files changed, 11 insertions(+), 12 deletions(-) rename src/main/java/{me/videogamesm12 => dev/plex/module}/nickmm/NickMiniMessageModule.java (72%) rename src/main/java/{me/videogamesm12 => dev/plex/module}/nickmm/command/NickMMCommand.java (95%) diff --git a/build.gradle.kts b/build.gradle.kts index 2de866b..308a76b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -19,12 +19,12 @@ dependencies { compileOnly("org.projectlombok:lombok:1.18.28") annotationProcessor("org.projectlombok:lombok:1.18.28") compileOnly("io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT") - compileOnly("dev.plex:server:1.3") - compileOnly(files("libs/EssentialsX.jar")) + compileOnly("dev.plex:server:1.4-SNAPSHOT") + compileOnly("net.essentialsx:EssentialsX:2.21.0-SNAPSHOT") } -group = "me.videogamesm12" -version = "1.0" +group = "dev.plex" +version = "1.4-SNAPSHOT" description = "Module-NickMiniMessage" java { diff --git a/src/main/java/me/videogamesm12/nickmm/NickMiniMessageModule.java b/src/main/java/dev/plex/module/nickmm/NickMiniMessageModule.java similarity index 72% rename from src/main/java/me/videogamesm12/nickmm/NickMiniMessageModule.java rename to src/main/java/dev/plex/module/nickmm/NickMiniMessageModule.java index 7a3c9dd..e79bfde 100644 --- a/src/main/java/me/videogamesm12/nickmm/NickMiniMessageModule.java +++ b/src/main/java/dev/plex/module/nickmm/NickMiniMessageModule.java @@ -1,8 +1,8 @@ -package me.videogamesm12.nickmm; +package dev.plex.module.nickmm; import com.earth2me.essentials.Essentials; import dev.plex.module.PlexModule; -import me.videogamesm12.nickmm.command.NickMMCommand; +import dev.plex.module.nickmm.command.NickMMCommand; import org.bukkit.Bukkit; public class NickMiniMessageModule extends PlexModule @@ -12,7 +12,7 @@ public class NickMiniMessageModule extends PlexModule { if (!Bukkit.getPluginManager().isPluginEnabled("Essentials")) { - throw new IllegalStateException("We need Essentials for this module to work!"); + throw new IllegalStateException("EssentialsX is required for this module to work!"); } registerCommand(new NickMMCommand()); diff --git a/src/main/java/me/videogamesm12/nickmm/command/NickMMCommand.java b/src/main/java/dev/plex/module/nickmm/command/NickMMCommand.java similarity index 95% rename from src/main/java/me/videogamesm12/nickmm/command/NickMMCommand.java rename to src/main/java/dev/plex/module/nickmm/command/NickMMCommand.java index f359edb..c59c287 100644 --- a/src/main/java/me/videogamesm12/nickmm/command/NickMMCommand.java +++ b/src/main/java/dev/plex/module/nickmm/command/NickMMCommand.java @@ -1,4 +1,4 @@ -package me.videogamesm12.nickmm.command; +package dev.plex.module.nickmm.command; import com.earth2me.essentials.I18n; import com.earth2me.essentials.User; @@ -6,9 +6,8 @@ import dev.plex.command.PlexCommand; import dev.plex.command.annotation.CommandParameters; import dev.plex.command.annotation.CommandPermissions; import dev.plex.command.source.RequiredCommandSource; -import dev.plex.util.PlexUtils; +import dev.plex.module.nickmm.NickMiniMessageModule; import dev.plex.util.minimessage.SafeMiniMessage; -import me.videogamesm12.nickmm.NickMiniMessageModule; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.format.NamedTextColor; import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer; diff --git a/src/main/resources/module.yml b/src/main/resources/module.yml index 295bfb3..be86f1b 100644 --- a/src/main/resources/module.yml +++ b/src/main/resources/module.yml @@ -1,4 +1,4 @@ name: Module-NickMiniMessage -main: me.videogamesm12.nickmm.NickMiniMessageModule +main: dev.plex.module.nickmm.NickMiniMessageModule description: Module for Plex that adds a command allowing for Essentials nicknames to be created with MiniMessage -version: 1.0 \ No newline at end of file +version: 1.4-SNAPSHOT \ No newline at end of file