Add option to delete essentials homes when players are kicked from Factions. Adds #1089.

This option is set to true by default in the config.yml for new users, users that are updating need to add delete-ess-homes: true to their config.yml to get this new option enabled.
This commit is contained in:
Trent Hensler
2018-03-18 14:11:42 -07:00
parent 1e2a6b34b4
commit 587182478b
4 changed files with 69 additions and 3 deletions

View File

@@ -14,11 +14,14 @@ public class Essentials {
private static IEssentials essentials;
public static void setup() {
public static IEssentials setup() {
Plugin ess = Bukkit.getPluginManager().getPlugin("Essentials");
if (ess != null) {
essentials = (IEssentials) ess;
return essentials;
}
return null;
}
// return false if feature is disabled or Essentials isn't available