feat: added remember player join time
This commit is contained in:
parent
f5696d6078
commit
ea4eee4fa1
@ -1,17 +1,20 @@
|
||||
package ru.dragonestia.msb3.api.player;
|
||||
|
||||
import lombok.Getter;
|
||||
import net.minestom.server.entity.Player;
|
||||
import net.minestom.server.network.player.GameProfile;
|
||||
import net.minestom.server.network.player.PlayerConnection;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import ru.dragonestia.msb3.api.util.UncheckedRunnable;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class MsbPlayer extends Player {
|
||||
|
||||
private final Map<String, PlayerContext> contexts = new HashMap<>();
|
||||
@Getter private final Instant startSessionTime = Instant.now();
|
||||
|
||||
public MsbPlayer(@NotNull PlayerConnection playerConnection, @NotNull GameProfile gameProfile) {
|
||||
super(playerConnection, gameProfile);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user