diff --git a/Client/src/main/java/de/com/baseband/client/BaseBand.java b/Client/src/main/java/de/com/baseband/client/BaseBand.java index 73c55f5..644c624 100644 --- a/Client/src/main/java/de/com/baseband/client/BaseBand.java +++ b/Client/src/main/java/de/com/baseband/client/BaseBand.java @@ -110,9 +110,13 @@ public class BaseBand { } public static void notify(String text) { + notify(text, 10000); + } + + public static void notify(String text, int time) { Client c = Features.getFeature(Client.class); if(Features.isFeatureEnabled(HUD.class) && c.notificationDest != Client.NotificationDest.Chat) { - HUD.notifs.add(new NotificationRender.Notification(text)); + HUD.notifs.add(new NotificationRender.Notification(text, time)); if(c.notificationDest == Client.NotificationDest.Both) Chat.print(text); else @@ -122,8 +126,12 @@ public class BaseBand { } public static void notifyAll(String text) { + notifyAll(text, 10000); + } + + public static void notifyAll(String text, int time) { if(Features.isFeatureEnabled(HUD.class)) { - HUD.notifs.add(new NotificationRender.Notification(text)); + HUD.notifs.add(new NotificationRender.Notification(text, time)); } Chat.print(text); } diff --git a/Client/src/main/java/de/com/baseband/client/util/net/WebServiceClient.java b/Client/src/main/java/de/com/baseband/client/util/net/WebServiceClient.java index e53818f..0abef56 100644 --- a/Client/src/main/java/de/com/baseband/client/util/net/WebServiceClient.java +++ b/Client/src/main/java/de/com/baseband/client/util/net/WebServiceClient.java @@ -80,7 +80,7 @@ public class WebServiceClient { BaseBand.LOGGER.info("Connected to BaseBand server"); if(!packet.getString("commit").equals(GitHash.GIT_HASH) && !outdated) { outdated = true; - BaseBand.notify("§d§lBaseBand has updated. To update, restart Minecraft."); + BaseBand.notifyAll("§d§lBaseBand has updated. To update, restart Minecraft.", 30000); } } }