Add IslandPlayer.java
This commit is contained in:
parent
fdd5c3d58a
commit
f13003c38c
|
|
@ -0,0 +1,21 @@
|
||||||
|
package com.alttd.cometskyblock.island;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
import org.bukkit.Bukkit;
|
||||||
|
import org.bukkit.entity.Player;
|
||||||
|
import org.spongepowered.configurate.objectmapping.ConfigSerializable;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@ConfigSerializable
|
||||||
|
public class IslandPlayer {
|
||||||
|
private UUID playerId;
|
||||||
|
private final int islandId = 0;
|
||||||
|
private final boolean isOwner = false;
|
||||||
|
|
||||||
|
public Player getPlayer() {
|
||||||
|
return playerId != null ? Bukkit.getPlayer(playerId) : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user