Forego permission check on login, fixes #1908

This commit is contained in:
PikaMug 2022-03-26 00:46:12 -04:00
parent 609eb183bd
commit d1875ae377

View File

@ -856,7 +856,7 @@ public class PlayerListener implements Listener {
@EventHandler @EventHandler
public void onPlayerLogin(final PlayerLoginEvent evt) { public void onPlayerLogin(final PlayerLoginEvent evt) {
final Player player = evt.getPlayer(); final Player player = evt.getPlayer();
if (plugin.canUseQuests(player.getUniqueId())) { // Cannot check Quests#canUseQuests until PlayerJoinEvent
final IQuester noobCheck = new Quester(plugin, player.getUniqueId()); final IQuester noobCheck = new Quester(plugin, player.getUniqueId());
if (plugin.getSettings().canGenFilesOnJoin() && !noobCheck.hasData()) { if (plugin.getSettings().canGenFilesOnJoin() && !noobCheck.hasData()) {
noobCheck.saveData(); noobCheck.saveData();
@ -897,7 +897,6 @@ public class PlayerListener implements Listener {
} }
}); });
} }
}
@EventHandler @EventHandler
public void onPlayerJoin(final PlayerJoinEvent evt) { public void onPlayerJoin(final PlayerJoinEvent evt) {