mirror of
https://github.com/YouHaveTrouble/PreventStabby.git
synced 2026-05-12 05:16:55 +00:00
Applied protection to all pets
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user