mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-22 10:36:09 +01:00
Fixed /quests top (I think) and a possible quester issue
This commit is contained in:
parent
a80b1085bd
commit
4a9b8009c9
@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -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"));
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user