mirror of
https://github.com/plexusorg/Plex.git
synced 2025-01-09 00:47:36 +00:00
fix autowiping
so it can work with reloads
This commit is contained in:
parent
34d1eafaaf
commit
21bef1280d
@ -20,7 +20,7 @@ public class ServiceManager
|
||||
registerService(new BanService());
|
||||
registerService(new GameRuleService());
|
||||
registerService(new UpdateCheckerService());
|
||||
if (Plex.get().config.getBoolean("autowipe.enabled")) registerService(new AutoWipeService());
|
||||
registerService(new AutoWipeService());
|
||||
}
|
||||
|
||||
public void startServices()
|
||||
|
@ -1,5 +1,6 @@
|
||||
package dev.plex.services.impl;
|
||||
|
||||
import dev.plex.Plex;
|
||||
import dev.plex.services.AbstractService;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.World;
|
||||
@ -17,6 +18,8 @@ public class AutoWipeService extends AbstractService
|
||||
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
if (Plex.get().config.getBoolean("autowipe.enabled"))
|
||||
{
|
||||
List<String> entities = plugin.config.getStringList("autowipe.entities");
|
||||
|
||||
@ -31,6 +34,7 @@ public class AutoWipeService extends AbstractService
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int repeatInSeconds()
|
||||
|
Loading…
Reference in New Issue
Block a user