mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-22 18:45:27 +01:00
Forego permission check on login, fixes #1908
This commit is contained in:
parent
609eb183bd
commit
d1875ae377
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user