summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLogan Fick <logaldeveloper@protonmail.com>2017-08-22 16:11:43 -0400
committerLogan Fick <logaldeveloper@protonmail.com>2017-08-22 16:11:43 -0400
commit07b96a0c2dc39867eae88e845caf37db6cfb0a62 (patch)
tree4794c56146e80f65c81282562e79a7213dae727f
parent5f17385343a357ab8beb2546bd7eee55b1e84567 (diff)
Changed the who's playing JSON file path.
-rw-r--r--app/controllers/statics_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/statics_controller.rb b/app/controllers/statics_controller.rb
index 4b0c911..08dceef 100644
--- a/app/controllers/statics_controller.rb
+++ b/app/controllers/statics_controller.rb
@@ -17,7 +17,7 @@ class StaticsController < ApplicationController
end
def online
- json = JSON.parse(File.read("/etc/minecraft/redstoner/plugins/JavaUtils/players.json"))
+ json = JSON.parse(File.read("/etc/minecraft/redstoner/plugins/ModuleLoader/players.json"))
@players = json["players"].collect!{ |p| User.find_by(uuid: p["UUID"].tr("-", "")) or User.new(name: p["name"], ign: p["name"], uuid: p["UUID"].tr("-", ""), role: Role.get("normal"), badge: Badge.get("none"), confirmed: true) }.sort_by!(&:role).reverse!
@count = json["amount"]
end