- Tham gia
- 03/08/2018
- Bài viết
- 381
[API] uSkyBlock
Dành cho ai đang code plugin tạo khoáng sản
Plugin: OREGEN3
Dành cho ai đang code plugin tạo khoáng sản
Plugin: OREGEN3
Mã:
Set<Location> set = new HashSet();
set.add(loc);
UUID uuid = null;
// kiểm tra plugin uSkyBlock
if (Bukkit.getServer().getPluginManager().isPluginEnabled("uSkyBlock")) {
//xác định ngu?i choi
String player = uSkyBlock.getInstance().getIslandInfo(loc).getLeader();
//lấy uuid player
if (Bukkit.getPlayer(player) != null && Bukkit.getPlayer(player).getUniqueId() != null) {
uuid = Bukkit.getPlayer(player).getUniqueId();
}
}

