Changed the who's playing JSON file path.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user