Remove unused work

This commit is contained in:
PikaMug 2019-09-16 22:38:01 -04:00
parent f31730ce73
commit cb2a6f31a2

View File

@ -3312,72 +3312,6 @@ public class Quester {
} }
} }
/**
* Get a map of fellow Questers in a party or group
*
* @return empty if no linked plugins, or party/group is null
*/
/*public Map<Quester, MultiplayerType> getMultiplayerQuesters() {
Map<Quester, MultiplayerType> ret = new LinkedHashMap<>();
if (plugin.getDependencies().getPartiesApi() != null) {
Party party = plugin.getDependencies().getPartiesApi().getParty(plugin.getDependencies().getPartiesApi().getPartyPlayer(getUUID()).getPartyName());
if (party != null) {
for (UUID id : party.getMembers()) {
if (!id.equals(getUUID())) {
ret.put(plugin.getQuester(id), new MultiplayerType(true, false));
}
}
}
}
if (plugin.getDependencies().getDungeonsApi() != null) {
DGroup group = DGroup.getByPlayer(getPlayer());
if (group != null) {
for (UUID id : group.getPlayers()) {
if (!id.equals(getUUID())) {
Quester q = plugin.getQuester(id);
if (ret.containsKey(plugin.getQuester(id)))
ret.get(q).dungeonxl = true;
else
ret.put(q, new MultiplayerType(false, true));
}
}
}
}
return ret;
}*/
/**
* Get a map of fellow Questers in a party or group
* that are doing the given quest
*
* @param quest the quest to check
* @return empty if no linked plugins, or party/group is null
*/
/*public List<Quester> getMultiplayerQuestersByQuest(Quest quest) {
List<Quester> ret = new LinkedList<>();
Map<Quester, MultiplayerType> mq = getMultiplayerQuesters();
for (Entry<Quester, MultiplayerType> q : mq.entrySet()) {
if (q.getKey().getCurrentQuests().containsKey(quest)) {
if ((quest.getOptions().getUsePartiesPlugin() && q.getValue().parties)
|| (quest.getOptions().getUseDungeonsXLPlugin() && q.getValue().dungeonxl)) {
ret.add(q.getKey());
}
}
}
return ret;
}*/
/*public class MultiplayerType {
public boolean parties;
public boolean dungeonxl;
public MultiplayerType(boolean parties, boolean dungeonxl) {
this.parties = parties;
this.dungeonxl = dungeonxl;
}
}*/
/** /**
* Get a list of follow Questers in a party or group * Get a list of follow Questers in a party or group
* *