Skip to content

Instantly share code, notes, and snippets.

@whilb
Created June 25, 2014 16:23
Show Gist options
  • Save whilb/7539a728b44d0c3df019 to your computer and use it in GitHub Desktop.
Save whilb/7539a728b44d0c3df019 to your computer and use it in GitHub Desktop.
For you, wesley
public List<UUID> masters;
private void createMasterList() {
this.masters = new ArrayList<UUID>();
}
private List<UUID> getMasters() {
return this.masters;
}
public void addMaster(UUID player) {
getMasters().add(player);
}
public boolean isMaster(UUID player) {
return getMasters().contains(player);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment