Skip to content

Commit

Permalink
BIG OOF
Browse files Browse the repository at this point in the history
  • Loading branch information
joker-119 committed Jan 17, 2020
1 parent e216ab3 commit 01782ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions EXILED_Events/Events.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public static void InvokePlayerHurt(PlayerStats stats, ref PlayerStats.HitInfo i
PlayerHurt playerHurt = PlayerHurtEvent;
PlayerHurtEvent ev = new PlayerHurtEvent()
{
Player = Plugin.GetPlayer(stats.gameObject),
Attacker = Plugin.GetPlayer(obj),
Attacker = Plugin.GetPlayer(stats.gameObject),
Player = Plugin.GetPlayer(obj),
Info = info
};
playerHurt?.Invoke(ref ev);
Expand Down Expand Up @@ -87,8 +87,8 @@ public static void InvokePlayerDeath(PlayerStats stats, ref PlayerStats.HitInfo
PlayerDeath playerDeath = PlayerDeathEvent;
PlayerDeathEvent ev = new PlayerDeathEvent()
{
Player = Plugin.GetPlayer(stats.gameObject),
Killer = Plugin.GetPlayer(obj),
Killer = Plugin.GetPlayer(stats.gameObject),
Player = Plugin.GetPlayer(obj),
Info = info
};
playerDeath?.Invoke(ref ev);
Expand Down
3 changes: 1 addition & 2 deletions EXILED_Main/PluginManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,12 @@ public static void ReloadPlugins()
{
try
{
Plugin.Info($"Reloading Plugins..");
OnDisable();
OnReload();

_plugins.Clear();

Timing.RunCoroutine(LoadPlugins());
OnEnable();
}
catch (Exception e)
{
Expand Down

0 comments on commit 01782ad

Please sign in to comment.