diff --git a/Admin/plugins/SimpleStatsPlugin.dll b/Admin/plugins/SimpleStatsPlugin.dll index 356cfd76..1b7646a4 100644 Binary files a/Admin/plugins/SimpleStatsPlugin.dll and b/Admin/plugins/SimpleStatsPlugin.dll differ diff --git a/Admin/plugins/WebfrontPlugin.dll b/Admin/plugins/WebfrontPlugin.dll index 44d3896a..6d31dbe7 100644 Binary files a/Admin/plugins/WebfrontPlugin.dll and b/Admin/plugins/WebfrontPlugin.dll differ diff --git a/Admin/version.txt b/Admin/version.txt index 87444900..11c36203 100644 --- a/Admin/version.txt +++ b/Admin/version.txt @@ -1,6 +1,8 @@ VERSION 0.9.5 -Major refactoring to support plugins -*web front redux* +-lots of little fixes and stability improvements +-temporary removal of stats plugin as I perfect it VERSION 0.9.2 CHANGELOG: diff --git a/Stats Plugin/Main.cs b/Stats Plugin/Main.cs index 94733b56..03ff50a3 100644 --- a/Stats Plugin/Main.cs +++ b/Stats Plugin/Main.cs @@ -13,8 +13,21 @@ namespace StatsPlugin public override void Execute(Event E) { - PlayerStats pStats = Stats.playerStats.getStats(E.Origin); - String statLine = String.Format("^5{0} ^7KILLS | ^5{1} ^7DEATHS | ^5{2} ^7KDR | ^5{3} ^7SKILL", pStats.Kills, pStats.Deaths, pStats.KDR, pStats.Skill); + String statLine; + PlayerStats pStats; + + if (E.Target != null) + { + pStats = Stats.playerStats.getStats(E.Target); + statLine = String.Format("^5{0} ^7KILLS | ^5{1} ^7DEATHS | ^5{2} ^7KDR | ^5{3} ^7SKILL", pStats.Kills, pStats.Deaths, pStats.KDR, pStats.Skill); + } + + else + { + pStats = Stats.playerStats.getStats(E.Origin); + statLine = String.Format("^5{0} ^7KILLS | ^5{1} ^7DEATHS | ^5{2} ^7KDR | ^5{3} ^7SKILL", pStats.Kills, pStats.Deaths, pStats.KDR, pStats.Skill); + } + E.Origin.Tell(statLine); } } diff --git a/Webfront Plugin/Framework.cs b/Webfront Plugin/Framework.cs index 58f98c7b..401d1d42 100644 --- a/Webfront Plugin/Framework.cs +++ b/Webfront Plugin/Framework.cs @@ -169,7 +169,6 @@ namespace Webfront_Plugin