PlaceBreakListener.java 文件源码

java
阅读 31 收藏 0 点赞 0 评论 0

项目:CommunityDrivenPlugin 作者:
public void onFill(PlayerBucketFillEvent e) {
    Player p = e.getPlayer();
    int prot = plugin.getSettings().getProtectedSpawnRadius();
    if (p.getWorld().getSpawnLocation().distance(p.getLocation()) < prot) {
        e.setCancelled(true);
        p.sendMessage(ColoringUtil.colorText("&cNie mozesz ingerowac w bloki na spawnie!"));
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号