Fixed the who's playing page error message staying for an extra request.

This commit is contained in:
Logan Fick
2017-10-22 16:40:06 -04:00
parent 61c1f36b50
commit f66d6e9f13

View File

@@ -20,7 +20,7 @@ class StaticsController < ApplicationController
begin
json = JSON.parse(File.read("/etc/minecraft/redstoner/plugins/ModuleLoader/players.json"))
rescue
flash[:alert] = "The server is currently offline."
flash.now[:alert] = "The server is currently offline."
@players = {}
@count = 0
else