Merge pull request #8 from Apehum/patch-1

"fire.disable-unknown: false" cancels BlockIgniteEvent
This commit is contained in:
Ghost_chu authored and GitHub committed 2022-07-22 20:59:23 +08:00
commit 2b433774e3
1 file changed
+2 -2
@@ -339,7 +339,7 @@ public class Main extends JavaPlugin implements Listener {
ConfigurationSection section = Util.bakeConfigSection(getConfig(), "fire");
if (!section.getBoolean("enable", true))
return;
if (!section.getBoolean("disable-unknown", true))
if (section.getBoolean("disable-unknown", true))
e.setCancelled(true);
}
@@ -511,4 +511,4 @@ public class Main extends JavaPlugin implements Listener {
Util.broadcastNearPlayers(entity.getLocation(), section.getString("alert"));
}
}
}
}