Better legacy component support, removes SignListener (#81)

* Better legacy component support, removes SignListener

* Removes unused imports
This commit is contained in:
Video
2024-01-26 16:12:17 -07:00
committed by GitHub
parent 912dff0ec9
commit fbd36161d4
7 changed files with 30 additions and 38 deletions

View File

@ -82,8 +82,8 @@ public class VaultHook
if (vaultPrefix == null || vaultPrefix.isEmpty()) {
return Component.empty();
}
PlexLog.debug("prefix: {0}", PlexUtils.legacyToMiniString(vaultPrefix).replace("<", "\\<"));
return SafeMiniMessage.mmDeserializeWithoutEvents(PlexUtils.legacyToMiniString(vaultPrefix));
PlexLog.debug("prefix: {0}", SafeMiniMessage.mmSerializeWithoutEvents(PlexUtils.stringToComponent(vaultPrefix)).replace("<", "\\<"));
return PlexUtils.stringToComponent(vaultPrefix);
}
public static Permission getPermission()