mirror of
https://github.com/plexusorg/Module-NickMiniMessage.git
synced 2024-12-22 09:17:38 +00:00
Fix outdated Essentials
This commit is contained in:
parent
9dc7bb29e6
commit
4f5cb1874e
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user