Fix compile errors

This commit is contained in:
Telesphoreo 2023-08-25 19:37:40 -05:00
parent 83a76e380d
commit b19c027a0f
4 changed files with 11 additions and 12 deletions

View File

@ -19,12 +19,12 @@ dependencies {
compileOnly("org.projectlombok:lombok:1.18.28") compileOnly("org.projectlombok:lombok:1.18.28")
annotationProcessor("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("io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT")
compileOnly("dev.plex:server:1.3") compileOnly("dev.plex:server:1.4-SNAPSHOT")
compileOnly(files("libs/EssentialsX.jar")) compileOnly("net.essentialsx:EssentialsX:2.21.0-SNAPSHOT")
} }
group = "me.videogamesm12" group = "dev.plex"
version = "1.0" version = "1.4-SNAPSHOT"
description = "Module-NickMiniMessage" description = "Module-NickMiniMessage"
java { java {

View File

@ -1,8 +1,8 @@
package me.videogamesm12.nickmm; package dev.plex.module.nickmm;
import com.earth2me.essentials.Essentials; import com.earth2me.essentials.Essentials;
import dev.plex.module.PlexModule; import dev.plex.module.PlexModule;
import me.videogamesm12.nickmm.command.NickMMCommand; import dev.plex.module.nickmm.command.NickMMCommand;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
public class NickMiniMessageModule extends PlexModule public class NickMiniMessageModule extends PlexModule
@ -12,7 +12,7 @@ public class NickMiniMessageModule extends PlexModule
{ {
if (!Bukkit.getPluginManager().isPluginEnabled("Essentials")) 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()); registerCommand(new NickMMCommand());

View File

@ -1,4 +1,4 @@
package me.videogamesm12.nickmm.command; package dev.plex.module.nickmm.command;
import com.earth2me.essentials.I18n; import com.earth2me.essentials.I18n;
import com.earth2me.essentials.User; 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.CommandParameters;
import dev.plex.command.annotation.CommandPermissions; import dev.plex.command.annotation.CommandPermissions;
import dev.plex.command.source.RequiredCommandSource; import dev.plex.command.source.RequiredCommandSource;
import dev.plex.util.PlexUtils; import dev.plex.module.nickmm.NickMiniMessageModule;
import dev.plex.util.minimessage.SafeMiniMessage; import dev.plex.util.minimessage.SafeMiniMessage;
import me.videogamesm12.nickmm.NickMiniMessageModule;
import net.kyori.adventure.text.Component; import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.format.NamedTextColor; import net.kyori.adventure.text.format.NamedTextColor;
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer; import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;

View File

@ -1,4 +1,4 @@
name: Module-NickMiniMessage 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 description: Module for Plex that adds a command allowing for Essentials nicknames to be created with MiniMessage
version: 1.0 version: 1.4-SNAPSHOT