mirror of
https://github.com/YouHaveTrouble/PreventStabby.git
synced 2026-05-12 13:26:56 +00:00
add worldguard flag for force pvp
This commit is contained in:
@@ -7,11 +7,12 @@ import java.util.UUID;
|
||||
|
||||
public class PlayerData {
|
||||
|
||||
private UUID playerUuid;
|
||||
private final UUID playerUuid;
|
||||
private long cachetime, combattime, loginTimestamp, teleportTimestamp;
|
||||
private boolean pvpEnabled, lastCombatCheck, inCombat;
|
||||
|
||||
public PlayerData(boolean pvpEnabled) {
|
||||
public PlayerData(UUID playerUuid, boolean pvpEnabled) {
|
||||
this.playerUuid = playerUuid;
|
||||
this.pvpEnabled = pvpEnabled;
|
||||
this.combattime = Instant.now().getEpochSecond()-1;
|
||||
this.loginTimestamp = Instant.now().getEpochSecond()-1;
|
||||
|
||||
Reference in New Issue
Block a user