disabled infobars join restore
This commit is contained in:
parent
6475a7b825
commit
2f1aeb71ee
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user