Merge pull request #9 from BlazingGames/fix/quit-resource-packs-enabled

make sure resource packs are enabled before rebuilding them
This commit is contained in:
Ivy Collective 2025-01-19 18:26:02 -05:00 committed by GitHub
commit 9fd6a72e0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,7 +29,7 @@ public class QuitEventListener implements Listener {
public void join(PlayerQuitEvent event) {
DiscordApp.send(DiscordNotification.playerLeave(event.getPlayer()));
if (Bukkit.getOnlinePlayers().size() == 1) {
if (Bukkit.getOnlinePlayers().size() == 1 && BlazingGames.get().getPackConfig() != null) {
BlazingGames.get().rebuildPack();
}
}