Fix outdated Essentials

This commit is contained in:
Telesphoreo 2024-06-15 19:08:06 -05:00
parent 9dc7bb29e6
commit 4f5cb1874e
3 changed files with 15 additions and 11 deletions

View File

@ -12,23 +12,27 @@ repositories {
url = uri("https://nexus.telesphoreo.me/repository/plex/")
}
maven {
url = uri("https://repo.essentialsx.net/snapshots/")
}
mavenCentral()
}
dependencies {
compileOnly("org.projectlombok:lombok:1.18.30")
annotationProcessor("org.projectlombok:lombok:1.18.30")
compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT")
compileOnly("dev.plex:server:1.4-SNAPSHOT")
compileOnly("net.essentialsx:EssentialsX:2.21.0-SNAPSHOT")
compileOnly("org.projectlombok:lombok:1.18.32")
annotationProcessor("org.projectlombok:lombok:1.18.32")
compileOnly("io.papermc.paper:paper-api:1.20.6-R0.1-SNAPSHOT")
compileOnly("dev.plex:server:1.5-SNAPSHOT")
compileOnly("net.essentialsx:EssentialsX:2.21.0-20240602.233624-67")
}
group = "dev.plex"
version = "1.4-SNAPSHOT"
version = "1.4"
description = "Module-NickMiniMessage"
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}
publishing {

View File

@ -46,7 +46,7 @@ public class NickMMCommand extends PlexCommand
if (plain.length() > NickMiniMessageModule.getEssentials().getSettings().getMaxNickLength()
&& !commandSender.hasPermission("plex.nickmm.ignore_length_limit"))
{
return legacyComponent.deserialize(I18n.tl("nickTooLong"));
return legacyComponent.deserialize(I18n.tlLiteral("nickTooLong"));
}
if (!commandSender.hasPermission("plex.nickmm.ignore_matching"))
@ -57,7 +57,7 @@ public class NickMMCommand extends PlexCommand
if (name.equalsIgnoreCase(plain) && !user.getUUID().equals(player.getUniqueId()))
{
return legacyComponent.deserialize(I18n.tl("nickInUse"));
return legacyComponent.deserialize(I18n.tlLiteral("nickInUse"));
}
}
}
@ -65,7 +65,7 @@ public class NickMMCommand extends PlexCommand
final String legacy = legacyComponent.serialize(nick);
NickMiniMessageModule.getEssentials().getUser(player).setNickname(legacy);
return legacyComponent.deserialize(I18n.tl("nickSet", legacy));
return legacyComponent.deserialize(I18n.tlLiteral("nickSet", legacy));
}
@Override

View File

@ -1,4 +1,4 @@
name: Module-NickMiniMessage
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.4-SNAPSHOT
version: 1.4