Search in sources :

Example 1 with SoliniaGroup

use of com.solinia.solinia.Models.SoliniaGroup in project solinia3-core by mixxit.

the class CoreState method createNewGroup.

public ISoliniaGroup createNewGroup(Player leader) {
    UUID newgroupid = UUID.randomUUID();
    SoliniaGroup group = new SoliniaGroup();
    group.setId(newgroupid);
    group.setOwner(leader.getUniqueId());
    group.getMembers().add(leader.getUniqueId());
    groups.put(newgroupid, group);
    return groups.get(newgroupid);
}
Also used : SoliniaGroup(com.solinia.solinia.Models.SoliniaGroup) ISoliniaGroup(com.solinia.solinia.Interfaces.ISoliniaGroup) UUID(java.util.UUID)

Aggregations

ISoliniaGroup (com.solinia.solinia.Interfaces.ISoliniaGroup)1 SoliniaGroup (com.solinia.solinia.Models.SoliniaGroup)1 UUID (java.util.UUID)1