mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-22 17:17:38 +01:00
Attempt at /quests top again
This commit is contained in:
parent
19e9ff021a
commit
69152d7061
@ -1683,8 +1683,6 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener,
|
|||||||
}
|
}
|
||||||
|
|
||||||
String name = f.getName().substring(0, (f.getName().indexOf(".")));
|
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"));
|
questPoints.put(name, data.getInt("quest-points"));
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1699,6 +1697,9 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener,
|
|||||||
for (String s : sortedMap.keySet()) {
|
for (String s : sortedMap.keySet()) {
|
||||||
|
|
||||||
int i = (Integer) sortedMap.get(s);
|
int i = (Integer) sortedMap.get(s);
|
||||||
|
s = s.trim();
|
||||||
|
UUID id = UUID.fromString(s);
|
||||||
|
s = Bukkit.getOfflinePlayer(id).getName();
|
||||||
numPrinted++;
|
numPrinted++;
|
||||||
cs.sendMessage(YELLOW + String.valueOf(numPrinted) + ". " + s + " - " + PURPLE + i + YELLOW + " " + Lang.get("questPoints"));
|
cs.sendMessage(YELLOW + String.valueOf(numPrinted) + ". " + s + " - " + PURPLE + i + YELLOW + " " + Lang.get("questPoints"));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user