mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-01 07:03:55 +01:00
Remove unused work
This commit is contained in:
parent
f31730ce73
commit
cb2a6f31a2
@ -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
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user