mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2025-09-03 11:46:58 +00:00
22
src/test/java/pw/yumc/YumCore/mc/ServerPingTest.java
Normal file
22
src/test/java/pw/yumc/YumCore/mc/ServerPingTest.java
Normal file
@ -0,0 +1,22 @@
|
||||
package pw.yumc.YumCore.mc;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import lombok.val;
|
||||
import pw.yumc.YumCore.bukkit.Log;
|
||||
|
||||
/**
|
||||
* Created with IntelliJ IDEA
|
||||
*
|
||||
* @author 喵♂呜
|
||||
* Created on 2017/9/29 13:05.
|
||||
*/
|
||||
public class ServerPingTest {
|
||||
@Test
|
||||
public void test() {
|
||||
val ping = new ServerPing("server.yumc.pw");
|
||||
ping.fetchData();
|
||||
Log.i("version: %s max: %s online: %s motd: %s",
|
||||
ping.getVersionName(), ping.getPlayersMax(), ping.getPlayersOnline(), ping.getMotd());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user