mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-22 21:19:46 +00:00
Remove unofficial port message from login nag
This commit is contained in:
2 files changed
+1
-13
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user