Update ChestsPlusPlus.java

Remove all armour stands on reload if not enabled.
This commit is contained in:
James Peters 2020-10-09 19:58:11 +01:00
parent 60e7596c69
commit 94bd3d9ead

View File

@ -28,6 +28,7 @@ import fr.minuskube.inv.InventoryManager;
import org.bstats.bukkit.Metrics;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Chunk;
import org.bukkit.configuration.serialization.ConfigurationSerialization;
import org.bukkit.permissions.PermissionDefault;
import org.bukkit.plugin.java.JavaPlugin;
@ -127,6 +128,9 @@ public class ChestsPlusPlus extends JavaPlugin {
new Config();
getLogger().info("Chests++ Successfully Loaded Config and Recipes");
// Remove armour stands if disabled
Utils.fixEntities();
//Register event listeners
getServer().getPluginManager().registerEvents(new StorageListener(), this);
getServer().getPluginManager().registerEvents(new InventoryListener(), this);