13.3_DEV
This commit is contained in:
@@ -16,11 +16,12 @@ public class T2CminiMessage {
|
||||
public static void sendMiniMessage(String msg) {
|
||||
T2CodeLibMain.adventure().console().sendMessage(replace(msg));
|
||||
}
|
||||
public static void miniMessage(String msg, Player player){
|
||||
|
||||
public static void miniMessage(String msg, Player player) {
|
||||
T2CodeLibMain.adventure().player(player).sendMessage(replace(msg));
|
||||
}
|
||||
|
||||
protected static Component replace(String text){
|
||||
protected static Component replace(String text) {
|
||||
return MiniMessage.miniMessage().deserialize(T2Creplace.convertColorCode(text));
|
||||
}
|
||||
}
|
||||
|
@@ -159,6 +159,7 @@ public final class T2CodeLibMain extends JavaPlugin {
|
||||
if (adventure == null) {
|
||||
throw new IllegalStateException("Tried to access Adventure when the plugin was disabled!");
|
||||
}
|
||||
Bukkit.getConsoleSender().sendMessage(Util.getPrefix() + " Adventure load");
|
||||
return adventure;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user