public static void Register(Player.OnSpritChange 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 OnPlayerSprintEvent(method, priority, plugin)); Organize(); }
internal OnPlayerSprintEvent(Player.OnSpritChange method, Priority priority, Plugin plugin) { this.plugin = plugin; this.priority = priority; this.method = method; }