Skip to content

Garsooon/ZCore-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZCoreAPI

A Bukkit plugin that exposes ZCore player statistics over HTTP.

Built for Minecraft Beta 1.7.3 servers running Tsunami and ZCore.

Endpoints

Endpoint Description
GET /api/server Server status, player count, total economy, total playtime
GET /api/players/online List of online players with stats
GET /api/leaderboard All players with stats
GET /api/players/:name Single player lookup with full stats and balance

Player fields

name, kills, deaths, playtime, playtime_ms, blocks_placed, blocks_broken, mobs_killed, damage_dealt, damage_taken, blocks_traveled, first_join, last_join, online, rank, prefix, balance (player lookup only)

Requirements

Building

  1. Run mvn package
  2. Output JAR is in target/ZCoreAPI-1.0.0.jar

Installation

  1. Drop the built JAR into your server's plugins/ folder
  2. Start the server
  3. A config.properties file is generated in plugins/BMC-WebStats/

Configuration

plugins/BMC-WebStats/config.properties:

port=6465
cors-origin=*
Option Description Default
port HTTP server port 6465
cors-origin Allowed CORS origin (* for any, or a specific domain) *

About

Simple Java HTTP Server to serve ZCore Player stats for Server Owners & Developers that use ZCore.

Resources

License

Stars

Watchers

Forks

Contributors

Languages