@EventHandler
	//Captures when a player dies
	public void onDeath(PlayerDeathEvent e){
		Player player = e.getEntity();
		if(player.hasPermission("explosionman.deathlightning")){
			Location pLocation = player.getLocation();
			World world = player.getWorld();
			world.strikeLightningEffect(pLocation);
		}
		if(player.hasPermission("explosionman.deathexplode")){
			@SuppressWarnings("unused")
			boolean willdie = MainClass.getConfig().getBoolean("death");
			if(willdie = true){
				Location pLocation = player.getLocation();
				double pX = pLocation.getX();
				double pY = pLocation.getY();
				double pZ = pLocation.getZ();
				World world = player.getWorld();
				world.createExplosion(pX, pY, pZ, MainClass.getConfig().getInt("deathpower") ,MainClass.getConfig().getBoolean("deathfire"), MainClass.getConfig().getBoolean("deathblocks") );
				}
			
		}
	}