/// <summary>
 /// Register this event
 /// </summary>
 /// <param name="method">This is the delegate that will get called when this event occurs</param>
 /// <param name="priority">The priority (imporantce) of this call</param>
 /// <param name="plugin">The plugin object that is registering the event</param>
 public static void Register(Player.OnPlayerDeath 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 OnPlayerDeathEvent(method, priority, plugin));
     Organize();
 }
Example #2
0
 internal OnPlayerDeathEvent(Player.OnPlayerDeath method, Priority priority, Plugin plugin)
 {
     this.plugin = plugin; this.priority = priority; this.method = method;
 }
 internal OnPlayerDeathEvent(Player.OnPlayerDeath method, Priority priority, Plugin plugin)
 {
     this.plugin = plugin; this.priority = priority; this.method = method;
 }