mirror of
https://github.com/BlazingGames/blazing-games-plugin.git
synced 2025-02-03 21:26:41 -05:00
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:
commit
9fd6a72e0c
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue