#!/usr/bin/php 1) && ($argv[1] == 'config')) { print("graph_title Bukkit / JSONAPI - ticks per second (TPS) graph_category bukkit_jsonapi graph_vlabel ticks per second graph_args --base 1000 -l 0 tps.type GAUGE tps.label TPS "); exit(); } // Include JSONAPI.php require($apisdk); // Prepare API call $api = new JSONAPI($hostname, $port, $username, $password, $salt); $result = $api->call("system.getServerClockDebug"); // Check for success if ($result['result'] == 'success'){ // Print values print('tps.value ' . round($result['success']['clockRate'], 2) . "\n"); } ?>