Dieser Commit ist enthalten in:
Ursprung
dbd9f977fd
Commit
40d10b5e39
@ -19,14 +19,17 @@
|
||||
|
||||
package de.steamwar.bungeecore.listeners;
|
||||
|
||||
import de.steamwar.bungeecore.BungeeCore;
|
||||
import de.steamwar.bungeecore.Message;
|
||||
import de.steamwar.bungeecore.commands.CalendarCommand;
|
||||
import net.md_5.bungee.BungeeCord;
|
||||
import net.md_5.bungee.api.chat.ClickEvent;
|
||||
import net.md_5.bungee.api.event.PostLoginEvent;
|
||||
import net.md_5.bungee.event.EventHandler;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.Month;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
public class CalendarListener extends BasicListener {
|
||||
|
||||
@ -44,6 +47,8 @@ public class CalendarListener extends BasicListener {
|
||||
return;
|
||||
}
|
||||
|
||||
Message.send("ADVENT_CALENDAR_MESSAGE", event.getPlayer(), null, new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/calendar"));
|
||||
BungeeCord.getInstance().getScheduler().schedule(BungeeCore.get(), () -> {
|
||||
Message.send("ADVENT_CALENDAR_MESSAGE", event.getPlayer(), Message.parse("ADVENT_CALENDAR_MESSAGE_HOVER", event.getPlayer()), new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/calendar"));
|
||||
}, 2, TimeUnit.SECONDS);
|
||||
}
|
||||
}
|
||||
|
@ -653,4 +653,5 @@ BUILDERCLOUD_VERSION=§cUnknown version.
|
||||
# Advent Calendar
|
||||
ADVENT_CALENDAR_TITLE=§eAdvent Calendar
|
||||
ADVENT_CALENDAR_DAY=§7Day§8: §e{0}
|
||||
ADVENT_CALENDAR_MESSAGE=§7Did you already open your advent calendar?
|
||||
ADVENT_CALENDAR_MESSAGE=§eDid you already open your advent calendar?
|
||||
ADVENT_CALENDAR_MESSAGE_HOVER=§eClick to open!
|
@ -631,4 +631,5 @@ BUILDERCLOUD_VERSION=§cUnbekannte Version.
|
||||
# Advent Calendar
|
||||
ADVENT_CALENDAR_TITLE=§eAdventskalender
|
||||
ADVENT_CALENDAR_DAY=§7Tag§8: §e{0}
|
||||
ADVENT_CALENDAR_MESSAGE=§7Hast du heute schon dein Geschenk geholt?
|
||||
ADVENT_CALENDAR_MESSAGE=§eHast du heute schon dein Geschenk geholt?
|
||||
ADVENT_CALENDAR_MESSAGE_HOVER=§eKlicken zum öffnen!
|
In neuem Issue referenzieren
Einen Benutzer sperren