Use offline player on quit, fixes #2199

This commit is contained in:
PikaMug 2024-04-17 04:21:24 -04:00
parent c58e591e43
commit 605e63d2a4

View File

@ -898,10 +898,10 @@ public class BukkitQuester implements Quester {
}
hardQuit(quest);
if (plugin.getConfigSettings().getConsoleLogging() > 1) {
plugin.getLogger().info(getPlayer().getUniqueId() + " quit quest " + quest.getName());
plugin.getLogger().info(getOfflinePlayer().getUniqueId() + " quit quest " + quest.getName());
}
for (final String message : messages) {
if (message != null && !message.equals("") && getPlayer().isOnline()) {
if (message != null && !message.equals("") && getOfflinePlayer().isOnline()) {
sendMessage(message);
}
}