Refresh locationLookup on /citizens reload

This commit is contained in:
fullwall 2023-01-01 20:01:44 +08:00
parent 9103823ebb
commit c706b17848
1 changed files with 2 additions and 0 deletions

View File

@ -484,6 +484,8 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
shops.loadFromDisk();
shops.load();
locationLookup = new LocationLookup();
Bukkit.getScheduler().scheduleSyncRepeatingTask(this, locationLookup, 0, 5);
Template.shutdown();
getServer().getPluginManager().callEvent(new CitizensReloadEvent());