/** @EVENTS **/
@EventHandler
public void tirarhuevo(PlayerEggThrowEvent e){
if (e.isHatching()){
Location loc = e.getPlayer().getLocation();
for(int i = 0; i <360; i+=5) {
Location particleloc = loc;
particleloc.setZ(particleloc.getZ() + Math.cos(i) * 0.6);
particleloc.setX(particleloc.getX() + Math.sin(i) * 0.5);
particleloc.setY(particleloc.getY() + 0.05);
loc.getWorld().playEffect(particleloc, Effect.valueOf(plugin.particle), 51);
}
Location location = e.getPlayer().getLocation();
e.getPlayer().playSound(location, Sound.valueOf(plugin.sound), 1, 1);
}
}
l.java 文件源码
java
阅读 35
收藏 0
点赞 0
评论 0
项目:AmazingEgss
作者:
评论列表
文章目录