public static void Register(Player.OnCrouchChange method, Priority priority, Plugin plugin) { if (Find(plugin) != null) { throw new Exception("The user tried to register 2 of the same event!"); } events.Add(new OnCrouchChangeEvent(method, priority, plugin)); Organize(); }
internal OnCrouchChangeEvent(Player.OnCrouchChange method, Priority priority, Plugin plugin) { this.plugin = plugin; this.priority = priority; this.method = method; }