use of com.alessiodp.parties.storage.DatabaseData in project Parties by AlessioDP.
the class FileDispatcher method loadEntireData.
@Override
public DatabaseData loadEntireData() {
// Players
Map<UUID, PartyPlayer> players = new HashMap<UUID, PartyPlayer>();
for (PartyPlayer pp : getAllPlayers()) players.put(pp.getPlayerUUID(), pp);
// Parties
Map<String, Party> parties = new HashMap<String, Party>();
for (Party p : getAllParties()) parties.put(p.getName(), p);
return new DatabaseData(players, parties);
}
use of com.alessiodp.parties.storage.DatabaseData in project Parties by AlessioDP.
the class SQLDispatcher method loadEntireData.
@Override
public DatabaseData loadEntireData() {
// Players
Map<UUID, PartyPlayer> players = new HashMap<UUID, PartyPlayer>();
for (PartyPlayer pp : getAllPlayers()) players.put(pp.getPlayerUUID(), pp);
// Parties
Map<String, Party> parties = new HashMap<String, Party>();
for (Party p : getAllParties()) parties.put(p.getName(), p);
return new DatabaseData(players, parties);
}
Aggregations