add messageComponent that takes a component parameter

This commit is contained in:
Taah 2022-05-07 17:37:47 -07:00
parent 5e1475dfb5
commit 9557737915

View File

@ -518,6 +518,18 @@ public abstract class PlexCommand extends Command implements PluginIdentifiableC
return PlexUtils.messageComponent(s, objects); return PlexUtils.messageComponent(s, objects);
} }
/**
* Converts a message entry from the "messages.yml" to a Component
*
* @param s The message entry
* @param objects Any objects to replace in order
* @return A Kyori Component
*/
protected Component messageComponent(String s, Component... objects)
{
return PlexUtils.messageComponent(s, objects);
}
/** /**
* Converts a message entry from the "messages.yml" to a String * Converts a message entry from the "messages.yml" to a String
* *