private static void OnReady() { if (WorldEditHack.Ready != null) { WorldEditHack.Ready(); } }
public static void Initialize() { if (Kernel32.GetModuleHandle("worldedit.exe") == IntPtr.Zero) { throw new Exception("Attempted to initialize " + typeof(WorldEditHack).Name + " before 'worldedit.exe' has been loaded."); } WorldEditHack.IsReady = true; WorldEditHack.OnReady(); }