Archived
Fixed the who's playing page error message staying for an extra request.
This commit is contained in:
@@ -20,7 +20,7 @@ class StaticsController < ApplicationController
|
|||||||
begin
|
begin
|
||||||
json = JSON.parse(File.read("/etc/minecraft/redstoner/plugins/ModuleLoader/players.json"))
|
json = JSON.parse(File.read("/etc/minecraft/redstoner/plugins/ModuleLoader/players.json"))
|
||||||
rescue
|
rescue
|
||||||
flash[:alert] = "The server is currently offline."
|
flash.now[:alert] = "The server is currently offline."
|
||||||
@players = {}
|
@players = {}
|
||||||
@count = 0
|
@count = 0
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user