summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLogan Fick <logaldeveloper@protonmail.com>2018-07-26 11:53:37 -0400
committerLogan Fick <logaldeveloper@protonmail.com>2018-07-26 11:53:37 -0400
commitf3908410c8203ea3399467a19477cffdcb7f13b0 (patch)
tree7a4de455ab31f5081501d07d7798b9ffa8e7927f
parent5054ec209d9e635b5613f17b11851fcfbcb517ae (diff)
Updated paths for online players and banned players JSON files.
-rw-r--r--app/controllers/statics_controller.rb2
-rw-r--r--app/controllers/users_controller.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/statics_controller.rb b/app/controllers/statics_controller.rb
index 0d42fa9..a68d7b3 100644
--- a/app/controllers/statics_controller.rb
+++ b/app/controllers/statics_controller.rb
@@ -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
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index 4ad9d59..18497fc 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -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