add island struct
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user