KajetansTextCoreMod.java 690 B

1234567891011121314151617181920
  1. package me.ktcm;
  2. import net.minecraft.util.text.StringTextComponent;
  3. import net.minecraftforge.event.ServerChatEvent;
  4. import net.minecraftforge.eventbus.api.SubscribeEvent;
  5. import net.minecraftforge.fml.common.Mod;
  6. @Mod.EventBusSubscriber
  7. @Mod("ktcm")
  8. public class KajetansTextCoreMod
  9. {
  10. @SubscribeEvent
  11. public static void beforeStart(ServerChatEvent e)
  12. {
  13. e.setComponent(new StringTextComponent(
  14. e.getMessage().replace("&", "§") +
  15. "§0█§1█§2█§3█§4█§5█§6█§7█§8█§9█§a█§b█§c█§d█§e█§f█" +
  16. "§g█§h█§i█§j█§p█§q█§s█§t█§u█§v█§w█§x█§y█§z█"));
  17. }
  18. }