@EventHandler
public void ArmorStandGreef(PlayerArmorStandManipulateEvent e){
if(e.getRightClicked() instanceof ArmorStand){
ArmorStand clickedA = (ArmorStand) e.getRightClicked();
if(clickedA.getPassenger() == null){
ArrayList<ArmorStand> all_main_seats = new ArrayList<ArmorStand>();
for(Rollercoaster att : Main.r.Attracties.values()){
all_main_seats.addAll(att.getMainSeats());
}
if(all_main_seats.contains(clickedA)){
e.setCancelled(true);
}
}
}
}
EntityClick_Listener.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:Achtbaan
作者:
评论列表
文章目录