summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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