mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-28 12:07:38 +01:00
Cancel location lookup taskg
This commit is contained in:
parent
36feecdc2b
commit
fa5cdb9211
@ -403,7 +403,7 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
|
||||
}
|
||||
|
||||
locationLookup = new LocationLookup();
|
||||
Bukkit.getScheduler().scheduleSyncRepeatingTask(this, locationLookup, 0, 5);
|
||||
locationLookup.runTaskTimer(CitizensAPI.getPlugin(), 0, 5);
|
||||
|
||||
speechFactory = new CitizensSpeechFactory();
|
||||
npcRegistry = new CitizensNPCRegistry(saves, "citizens");
|
||||
@ -484,8 +484,9 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
|
||||
shops.loadFromDisk();
|
||||
shops.load();
|
||||
|
||||
locationLookup.cancel();
|
||||
locationLookup = new LocationLookup();
|
||||
Bukkit.getScheduler().scheduleSyncRepeatingTask(this, locationLookup, 0, 5);
|
||||
locationLookup.runTaskTimer(CitizensAPI.getPlugin(), 0, 5);
|
||||
Template.shutdown();
|
||||
|
||||
getServer().getPluginManager().callEvent(new CitizensReloadEvent());
|
||||
|
Loading…
Reference in New Issue
Block a user