Not yet. In theory, would it work?
I'm trying to get pseudo-fov which angle is 180 degrees.
Ok, if I check if angle between vector of sight and vector between player and victim less than 90, it'll work? Vector dir =...
float yaw1 = vp.getLocation().getYaw() % 360; // vp is victim player (damaged) float yaw2 = p.getLocation().getYaw() % 360; // p is player...
How can I summon Evoker Fangs like does it Evoker, not one fang (line trajectory). My current code: EvokerFangs ef =...
Create, launch snowball and set max velocity to it.
Solved, wrong check (valid: if hit block null - hit entity is target, else block is target). Just be careful about ProjectileHitEvent.
this.skpl.perkUse(ARCHER_PERK_CS, plug); public void perkUse(int needperk, Plugin plug) { switch(this.skillid) {...
Solved: https://bukkit.org/threads/disable-players-shield.490818/
When I'm try to create effect cloud when arrow hits ground or entity - nothing changes... Creating cloud: public void perkCurseShot() {...
Solved, just check if entity LivingEntity or Player (you can't get Entity armor or health because armorstands and frames are entity too), and...
>.... [14:32:41 ERROR]: Could not pass event EntityDamageByEntityEvent to SkillTest v1.2 java.lang.NullPointerException: null at...
I know that this comparison pointless, but it's just groundwork for system, which I'll write later (comparison if player has necessary class), but...
When player strike another player - these errors output to the console: [15:56:24] [Server thread/ERROR]: Could not pass event...
You know that you can bypass (break) enemy's shield for 5 second by axe. How can i do it from server side? I can't find method which can hide...
Separate names with a comma.