From c15f08b066f6940b88d8e3eb85e724353f1f6c12 Mon Sep 17 00:00:00 2001 From: Vincent Lee Date: Tue, 7 Jun 2016 20:18:05 -0500 Subject: [PATCH] Remove unofficial port message from login nag --- src/main/java/vazkii/botania/common/Botania.java | 13 +------------ src/main/resources/assets/botania/lang/en_US.lang | 1 - 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/main/java/vazkii/botania/common/Botania.java b/src/main/java/vazkii/botania/common/Botania.java index 7cdb9d536..fc1f41556 100644 --- a/src/main/java/vazkii/botania/common/Botania.java +++ b/src/main/java/vazkii/botania/common/Botania.java @@ -83,22 +83,11 @@ public class Botania { } @SubscribeEvent - public void nagUnofficial(PlayerEvent.PlayerLoggedInEvent evt) { + public void nagRemoval(PlayerEvent.PlayerLoggedInEvent evt) { EntityPlayer player = evt.player; - ITextComponent message = new TextComponentTranslation("botaniamisc.unofficial.warnRemove"); message.setStyle(new Style().setColor(TextFormatting.RED)); - - ITextComponent message2 = new TextComponentTranslation("botaniamisc.unofficial.report"); - message2.setStyle(new Style().setColor(TextFormatting.YELLOW)); - - ITextComponent url = new TextComponentString(" https://github.com/williewillus/Botania/issues"); - url.getStyle().setClickEvent(new ClickEvent(ClickEvent.Action.OPEN_URL, "https://github.com/williewillus/Botania/issues")); - url.getStyle().setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new TextComponentString("CLICK"))); - player.addChatComponentMessage(message); - - player.addChatComponentMessage(message2.appendSibling(url)); } @EventHandler diff --git a/src/main/resources/assets/botania/lang/en_US.lang b/src/main/resources/assets/botania/lang/en_US.lang index 4340afbfa..53543ca1e 100644 --- a/src/main/resources/assets/botania/lang/en_US.lang +++ b/src/main/resources/assets/botania/lang/en_US.lang @@ -16,7 +16,6 @@ generator.botania-skyblock.info=Not recommended for botania newcomers botaniamisc.noloc=botaniamisc.noloc botaniamisc.unofficial.warnRemove=[Botania] Warning: Some decorative blocks are being removed, please migrate to either the vanilla or Quark versions. -botaniamisc.unofficial.report=[Botania] This port is unofficial! Report issues to the porter HERE: botaniamisc.nextPage=Next Page botaniamisc.prevPage=Previous Page