mirror of
https://github.com/plexusorg/Module-NickMiniMessage.git
synced 2025-07-02 02:16:40 +00:00
Fix outdated Essentials
This commit is contained in:
@ -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
|
Reference in New Issue
Block a user