Hey guys, I'm attempting to rotate a player in a random direction once the event is fired, but when I try to do Code:java int randomyaw = (int) (Math.random() * 360); p.getLocation().setYaw(randomyaw); It won't work, yet all the other events fire.
you need to teleport the player : int randomyaw = (int) (Math.random() * 360); p.teleport(p.getLocation.setYaw(randomyaw));
Create a location variable and set the yaw. You should actually read and understand the code instead of just pasting it in and complaining when it doesn't work.