disabled infobars join restore

This commit is contained in:
Elias Müller 2024-12-25 00:13:54 +01:00
parent 6475a7b825
commit 2f1aeb71ee
2 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,6 @@ import org.bukkit.event.player.PlayerJoinEvent;
public class ShowPreviousBarsListener extends ApplianceListener<InfoBars> { public class ShowPreviousBarsListener extends ApplianceListener<InfoBars> {
@EventHandler @EventHandler
public void onJoin(PlayerJoinEvent event) { public void onJoin(PlayerJoinEvent event) {
this.getAppliance().showAll(event.getPlayer()); // this.getAppliance().showAll(event.getPlayer());
} }
} }

View File

@ -36,6 +36,8 @@ public class Whitelist extends Appliance {
? new WhitelistRepository.UserData(player.getUniqueId(), player.getName(), "", "", 0L, 0L) ? new WhitelistRepository.UserData(player.getUniqueId(), player.getName(), "", "", 0L, 0L)
: this.fetchUserData(player.getUniqueId()); : this.fetchUserData(player.getUniqueId());
Main.logger().info(String.format("got userdata %s", user.toString()));
if(this.timestampRelevant(user.banned_until())) { if(this.timestampRelevant(user.banned_until())) {
Instant bannedDate = new Date(user.banned_until() * 1000L) Instant bannedDate = new Date(user.banned_until() * 1000L)
.toInstant() .toInstant()