Updated paths for online players and banned players JSON files.

This commit is contained in:
Logan Fick
2018-07-26 11:53:37 -04:00
parent 5054ec209d
commit f3908410c8
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -17,7 +17,7 @@ class UsersController < ApplicationController
def show
begin
@ban_json = JSON.parse(File.read("/etc/minecraft/redstoner/banned-players.json")).detect {|u| u["uuid"].tr("-", "") == @user.uuid}
@ban_json = JSON.parse(File.read("/etc/minecraft/info/banned-players.json")).detect {|u| u["uuid"].tr("-", "") == @user.uuid}
rescue
flash.now[:alert] = "An error occured while checking if this user is banned from the server!"
@ban_json = nil