add island struct
This commit is contained in:
parent
6cc92b4a36
commit
d8b9a96355
|
|
@ -0,0 +1,19 @@
|
||||||
|
package com.alttd.cometskyblock.island;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
public class Island {
|
||||||
|
|
||||||
|
private String worldName;
|
||||||
|
private String islandName;
|
||||||
|
private int level;
|
||||||
|
private UUID owner;
|
||||||
|
private List<UUID> members = new ArrayList<>();
|
||||||
|
|
||||||
|
public boolean canBuild(UUID uuid) {
|
||||||
|
return owner.equals(uuid) || members.contains(uuid);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user