Applied protection to all pets

This commit is contained in:
YouHaveTrouble
2021-02-21 04:22:49 +01:00
parent 3efd1d4288
commit c0edc64fd8
26 changed files with 448 additions and 451 deletions
@@ -21,6 +21,7 @@ public final class TogglePvp extends JavaPlugin {
private ConfigCache configCache;
private PlayerManager playerManager;
private DatabaseSQLite sqLite;
private SmartCache smartCache;
@Override
public void onEnable() {
@@ -36,8 +37,8 @@ public final class TogglePvp extends JavaPlugin {
return;
}
playerManager = new PlayerManager();
SmartCache.runSmartCache();
smartCache = new SmartCache();
smartCache.runSmartCache();
// Register listeners
Reflections reflections = new Reflections(new String[]{"eu.endermite.togglepvp"});
@@ -81,4 +82,7 @@ public final class TogglePvp extends JavaPlugin {
public DatabaseSQLite getSqLite() {return sqLite;}
public SmartCache getSmartCache() {
return smartCache;
}
}