Merge pull request #8 from Apehum/patch-1
"fire.disable-unknown: false" cancels BlockIgniteEvent
This commit is contained in:
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"));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user