20 lines
411 B
Java
20 lines
411 B
Java
|
|
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);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|