mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2025-01-06 00:17:52 +01:00
Redundant if statements were fixed
This commit is contained in:
parent
b1bb410e27
commit
8e6a0fca4d
@ -421,10 +421,10 @@ public class ChestSortPlugin extends JavaPlugin {
|
||||
}
|
||||
|
||||
setHookCrackShot(getConfig().getBoolean("hook-crackshot")
|
||||
&& Bukkit.getPluginManager().getPlugin("CrackShot") instanceof Plugin);
|
||||
&& Bukkit.getPluginManager().getPlugin("CrackShot") != null);
|
||||
|
||||
setHookInventoryPages(getConfig().getBoolean("hook-inventorypages")
|
||||
&& Bukkit.getPluginManager().getPlugin("InventoryPages") instanceof Plugin);
|
||||
&& Bukkit.getPluginManager().getPlugin("InventoryPages") != null);
|
||||
|
||||
setHookMinepacks(getConfig().getBoolean("hook-minepacks")
|
||||
&& Bukkit.getPluginManager().getPlugin("Minepacks") instanceof MinepacksPlugin);
|
||||
|
Loading…
Reference in New Issue
Block a user