mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-22 17:17:37 +00:00
add messageComponent that takes a component parameter
This commit is contained in:
parent
5e1475dfb5
commit
9557737915
@ -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
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user