1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-11 15:52:25 -05:00

Added IManager parameter to IPlugin.OnLoadAsync

This commit is contained in:
RaidMax
2017-10-16 22:47:41 -05:00
parent 4c813b18d6
commit c19d6e98f5
13 changed files with 23 additions and 32 deletions

View File

@ -85,7 +85,7 @@ namespace IW4MAdmin
{
try
{
Plugin.OnLoadAsync();
Plugin.OnLoadAsync(this);
}
catch (Exception e)

Binary file not shown.

View File

@ -2,7 +2,7 @@
function getPlayerHistoryChart(playerHistory, i) {
///////////////////////////////////////
// thanks to cnavas js :(
// thanks to canvasjs :(
playerHistory.forEach(function(item, i) {
playerHistory[i].x = new Date(playerHistory[i].x);

View File

@ -1,6 +1,6 @@
<div id="stats">
<div id="stats-info">
<input type="range" min="1" max="1000" value="100" class="slider" id="KillEventCount">
<input type="range" min="1" max="2500" value="100" class="slider" id="KillEventCount">
<label for="KillEventCount">Showing 100 Kills</label>
</div>
</div>
@ -135,8 +135,8 @@
$(document).ready(function () {
$('#KillEventCount').on('input change', function () {
$(this).next().text('Showing ' + $(this).val() + ' Kills');
if ($(this).val() > 300)
refreshInterval = 500;
if ($(this).val() > 999)
refreshInterval = 5000;
else
refreshInterval = 250;
});