Start WaitExecutor and fix typo in dependency check

This commit is contained in:
DroppingAnvil 2020-02-29 20:41:19 -06:00 committed by droppinganvil
parent 2c13204294
commit a086f8db7a

View File

@ -27,6 +27,7 @@ import com.massivecraft.factions.struct.Role;
import com.massivecraft.factions.util.*; import com.massivecraft.factions.util.*;
import com.massivecraft.factions.util.Particles.ReflectionUtils; import com.massivecraft.factions.util.Particles.ReflectionUtils;
import com.massivecraft.factions.util.Sync.SyncExecutor; import com.massivecraft.factions.util.Sync.SyncExecutor;
import com.massivecraft.factions.util.Wait.WaitExecutor;
import com.massivecraft.factions.zcore.CommandVisibility; import com.massivecraft.factions.zcore.CommandVisibility;
import com.massivecraft.factions.zcore.MPlugin; import com.massivecraft.factions.zcore.MPlugin;
import com.massivecraft.factions.zcore.fperms.Access; import com.massivecraft.factions.zcore.fperms.Access;
@ -184,6 +185,8 @@ public class FactionsPlugin extends MPlugin {
} }
//Start synctask //Start synctask
SyncExecutor.startTask(); SyncExecutor.startTask();
//Start wait task executor
WaitExecutor.startTask();
//Attempt to generate a permission list //Attempt to generate a permission list
PermissionList.generateFile(); PermissionList.generateFile();
// Load Conf from disk // Load Conf from disk
@ -193,7 +196,7 @@ public class FactionsPlugin extends MPlugin {
if (Conf.dependencyCheck && (!Bukkit.getPluginManager().isPluginEnabled("Vault"))) { if (Conf.dependencyCheck && (!Bukkit.getPluginManager().isPluginEnabled("Vault"))) {
divider(); divider();
System.out.println("You are missing dependencies!"); System.out.println("You are missing dependencies!");
System.out.println("Please verify and Vault are installed!"); System.out.println("Please verify Vault is installed!");
Conf.save(); Conf.save();
Bukkit.getPluginManager().disablePlugin(instance); Bukkit.getPluginManager().disablePlugin(instance);
divider(); divider();