This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum -y update | |
sudo yum -y groupinstall "Development Tools" | |
sudo yum -y install git libcurl-devel libcurl | |
# jansson C json library | |
wget ftp://fr2.rpmfind.net/linux/epel/testing/6/x86_64/jansson-2.6-1.el6.x86_64.rpm | |
wget ftp://fr2.rpmfind.net/linux/epel/testing/6/x86_64/jansson-devel-2.6-1.el6.x86_64.rpm | |
sudo yum -y install jansson-2.6-1.el6.x86_64.rpm | |
sudo yum -y install jansson-devel-2.6-1.el6.x86_64.rpm | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Json API いちらん | |
Base URLは | |
"https://pvp.minecraft.jp" または "http://api.minecraft.jp/pvp" です | |
"/servers.json" | |
サーバーの情報をいい感じに取得できます | |
"/servers/online.json" | |
現在オンラインのプレイヤー数(サイトの右上のやつ)を取得できます | |