Fixed /quests top (I think) and a possible quester issue

This commit is contained in:
Valar_Dev 2014-11-05 20:43:08 -06:00
parent a80b1085bd
commit 4a9b8009c9
2 changed files with 5 additions and 1 deletions

View File

@ -793,7 +793,8 @@ public class Quester {
for (Location l2 : getQuestData(quest).locationsReached) {
if (l.equals(l2)) {
if(getQuestData(quest).locationsReached.size() > 0)
{
if (getQuestData(quest).hasReached.contains(getQuestData(quest).locationsReached.indexOf(l2)) == false) {
String obj = Lang.get("goTo");
@ -807,6 +808,7 @@ public class Quester {
finishedObjectives.add(ChatColor.GRAY + obj);
}
}
}

View File

@ -1683,6 +1683,8 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener,
}
String name = f.getName().substring(0, (f.getName().indexOf(".")));
UUID id = UUID.fromString(name);
name = Bukkit.getOfflinePlayer(id).getName();
questPoints.put(name, data.getInt("quest-points"));
}