diff --git a/src/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java b/src/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java index 449dcdac..6654fd94 100644 --- a/src/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java +++ b/src/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java @@ -27,6 +27,7 @@ import com.sk89q.worldguard.bukkit.commands.CommandHandler.InsufficientPermissionsException; import com.sk89q.worldguard.protection.TimedFlagsTimer; import com.sk89q.worldguard.protection.regionmanager.GlobalRegionManager; +import com.sk89q.worldguard.protection.regions.flags.Flags; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; @@ -52,6 +53,7 @@ public class WorldGuardPlugin extends JavaPlugin { */ public void onEnable() { getDataFolder().mkdirs(); + Flags.Init(); globalRegionManager.onEnable(); // Register events diff --git a/src/com/sk89q/worldguard/protection/regions/flags/Flags.java b/src/com/sk89q/worldguard/protection/regions/flags/Flags.java index ca05bff5..1b3b703a 100644 --- a/src/com/sk89q/worldguard/protection/regions/flags/Flags.java +++ b/src/com/sk89q/worldguard/protection/regions/flags/Flags.java @@ -75,4 +75,10 @@ public enum FlagType { public static RegionGroupRegionFlagInfo TELE_PERM = new RegionGroupRegionFlagInfo("teleperm", FlagType.TELE_PERM); public static RegionGroupRegionFlagInfo SPAWN_PERM = new RegionGroupRegionFlagInfo("spawnperm", FlagType.SPAWN_PERM); + + private static int initCount = 0; + + static public void Init() { + initCount++; + } }