Official version 0.9.5
This commit is contained in:
parent
995334796e
commit
ea1ffeeb4a
Binary file not shown.
Binary file not shown.
@ -1,6 +1,8 @@
|
|||||||
VERSION 0.9.5
|
VERSION 0.9.5
|
||||||
-Major refactoring to support plugins
|
-Major refactoring to support plugins
|
||||||
-*web front redux*
|
-*web front redux*
|
||||||
|
-lots of little fixes and stability improvements
|
||||||
|
-temporary removal of stats plugin as I perfect it
|
||||||
|
|
||||||
VERSION 0.9.2
|
VERSION 0.9.2
|
||||||
CHANGELOG:
|
CHANGELOG:
|
||||||
|
@ -13,8 +13,21 @@ namespace StatsPlugin
|
|||||||
|
|
||||||
public override void Execute(Event E)
|
public override void Execute(Event E)
|
||||||
{
|
{
|
||||||
PlayerStats pStats = Stats.playerStats.getStats(E.Origin);
|
String statLine;
|
||||||
String statLine = String.Format("^5{0} ^7KILLS | ^5{1} ^7DEATHS | ^5{2} ^7KDR | ^5{3} ^7SKILL", pStats.Kills, pStats.Deaths, pStats.KDR, pStats.Skill);
|
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);
|
E.Origin.Tell(statLine);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -169,7 +169,6 @@ namespace Webfront_Plugin
|
|||||||
<th class=server_map><span>{1}</span></th>
|
<th class=server_map><span>{1}</span></th>
|
||||||
<th class=server_players><span>{2}</span></th>
|
<th class=server_players><span>{2}</span></th>
|
||||||
<th class=server_gametype><span>{3}</span></th>
|
<th class=server_gametype><span>{3}</span></th>
|
||||||
<th><a href=/stats>Stats</a></th>
|
|
||||||
<th><a href=/bans>Bans</a></th>
|
<th><a href=/bans>Bans</a></th>
|
||||||
<th><a class='history' href='/graph?server={4}'>History</a></th>
|
<th><a class='history' href='/graph?server={4}'>History</a></th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -13,12 +13,12 @@ namespace Webfront_Plugin
|
|||||||
if (E.Type == Event.GType.Start)
|
if (E.Type == Event.GType.Start)
|
||||||
{
|
{
|
||||||
Manager.webFront.addServer(E.Owner);
|
Manager.webFront.addServer(E.Owner);
|
||||||
E.Owner.Log.Write("Webfront now has access to server on port " + E.Owner.getPort(), Log.Level.Production);
|
E.Owner.Log.Write("Webfront now listening", Log.Level.Production);
|
||||||
}
|
}
|
||||||
if (E.Type == Event.GType.Stop)
|
if (E.Type == Event.GType.Stop)
|
||||||
{
|
{
|
||||||
Manager.webFront.removeServer(E.Owner);
|
Manager.webFront.removeServer(E.Owner);
|
||||||
E.Owner.Log.Write("Webfront has lost access to server on port " + E.Owner.getPort(), Log.Level.Production);
|
E.Owner.Log.Write("Webfront has lost access to server", Log.Level.Production);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user