Do a check like event.getProjectile().getSource() instanceof Player and then do Player player = (Player) event.getProjectile().getSource(); and then if (player.hasPermission("blah") { //Do your stuff here }
Player player = (Player) event.getEntity().getShooter();
if(Player.hasPermission("dathoe.smite")) { hitBlock.getWorld().strikeLightning(hitBlock.getLocation());
}
Comments on Profile Post by 1Achmed1