mirror of
https://github.com/JamesPeters98/ChestsPlusPlus.git
synced 2025-01-25 01:31:33 +01:00
Update ChestsPlusPlus.java
Remove all armour stands on reload if not enabled.
This commit is contained in:
parent
60e7596c69
commit
94bd3d9ead
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user