initial commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package io.github.axolotsh.pluginutils;
|
||||
|
||||
import io.github.axolotsh.localizationlib.abstraction.ILocalizationService;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.minimessage.MiniMessage;
|
||||
|
||||
public class ComponentUtils {
|
||||
private static final MiniMessage mm = MiniMessage.miniMessage();
|
||||
|
||||
public static Component component(ILocalizationService service, String key) {
|
||||
return mm.deserialize(service.translate(key));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user