function Mode() {
    this.ID = -1;
    this.name = "Blank";
    this.decayMod = 1.0; // Modifier for decay rate (Multiplier)
    this.packetLB = 49; // Packet id for leaderboard packet (48 = Text List, 49 = List, 50 = Pie chart)
    this.haveTeams = false; // True = gamemode uses teams, false = gamemode doesnt use teams
    this.specByLeaderboard = false; // false = spectate from player list instead of leaderboard
}

module.exports = Mode;

// Override these

Mode.prototype.onServerInit = function (gameServer) {
    // Called when the server starts
    gameServer.run = true;
};

Mode.prototype.onTick = function (gameServer) {
    // Called on every game tick 
};

Mode.prototype.onPlayerInit = function (player) {
    // Called after a player object is constructed
};

Mode.prototype.onPlayerSpawn = function (gameServer, player) {
    // Called when a player is spawned
    player.setColor(gameServer.getRandomColor()); // Random color
    gameServer.spawnPlayer(player, gameServer.randomPos());
};

Mode.prototype.onCellAdd = function (cell) {
    // Called when a player cell is added
};

Mode.prototype.onCellRemove = function (cell) {
    // Called when a player cell is removed
};

Mode.prototype.onCellMove = function (cell, gameServer) {
    // Called when a player cell is moved
};

Mode.prototype.updateLB = function (gameServer) {
    // Called when the leaderboard update function is called
    gameServer.leaderboardType = this.packetLB;
};

@@ -419,16 +419,51 @@
 rboard%0D%0A
+    this.lastmanStanding = false;%0D%0A
 %7D%0D%0A%0D%0Amod
@@ -627,16 +627,797 @@
  true;%0D%0A
+       if (gameServer.config.lastManStanding == 1) %7B%0D%0A        var short = 15 * 60000; // 15 Minutes%0D%0A        var long = 60 * 60000; // 60 Minutes%0D%0A        var time = Math.floor((Math.random() * (long - short)) + short);%0D%0A        var shortreset = 15;%0D%0A        var longreset = 30;%0D%0A        var resetTime = (Math.floor((Math.random() * (longreset - shortreset)) + shortreset)) + time;%0D%0A        var startInt = setInterval(function() %7Bself.lastManStandingstart()%7D, time);%0D%0A        var endInt = setInterval(function() %7Bself.lastManStandingend()%7D, resetTime);%0D%0A     %7D%0D%0A%7D;%0D%0A%0D%0AMode.prototype.lastManStandingstart = function(gameServer) %7B%0D%0A     this.lastManStandingStart = true;%0D%0A %7D;%0D%0A %0D%0A Mode.prototype.lastManStandingend = function(gameServer) %7B%0D%0A     this.lastManStandingStart = false;%0D%0A 
 %7D;%0D%0A%0D%0AMo
@@ -1713,24 +1713,57 @@
 is spawned%0D%0A
+    if (!this.lastmanstanding)%7B%0D%0A
     player.s
@@ -1878,16 +1878,27 @@
 os());%0D%0A
+    %7D%0D%0A    
 %7D;%0D%0A%0D%0AMo

Update Mode.js