(String message, Object... args)
| 43 | } |
| 44 | |
| 45 | public static Feedback info(String message, Object... args) { |
| 46 | return Feedback.builder() |
| 47 | .message(infoText(message, args)) |
| 48 | .sound(SoundFeedback.builder().sound(Sound.ITEM_ARMOR_EQUIP_LEATHER).pitch(1.1f).volume(1f).build()) |
| 49 | .build(); |
| 50 | } |
| 51 | |
| 52 | public static TextComponent errorText(String message, Object... args) { |
| 53 | return Component.text(message.formatted(args)).color(TextColor.color(FConst.COLOR_ERROR.getRGB())); |